Sends for the fellow dear visitors:
Welcome to DongPad!
A StaticResource will be resolved and assigned to the property during the loading of the XAML which occurs before the application is actually run. It will only be assigned once and any changes to resource dictionary ignored.
A DynamicResource assigns an Expression object to the property during loading but does not actually lookup the resource until runtime when the Expression object is asked for the value. This defers looking up the resource until it is needed at runtime. A good example would be a forward reference to a resource defined later on in the XAML. Another example is a resource that will not even exist until runtime. It will update the target if the source resource dictionary is changed.
from stackoverflow.com by Phil Wright
Powered By DongPad CopyRight 2008-2011, xhtml | css
Processed in 0.046 seconds(s) , 沪ICP备08111450号