What is the difference between dynamicresource and staticresource?
Answer / Chandra Shekhar Singh
Both staticresource and dynamicresource are used to reference a resource in XAML. However, the main difference lies in their lifetime: 1) StaticResource retrieves the resource when it encounters it during compile-time and uses the same instance throughout the application unless the resource is changed. 2) DynamicResource retrieves the resource at run-time whenever the binding expression is evaluated, which allows the resource to change without affecting other usages of the same resource.
| Is This Answer Correct ? | 0 Yes | 0 No |
What is a form based application?
What are two common properties on all the shape classes?
Explain Routed events in WPF?
What is mvvm?
How to get automation ids of items in a itemscontrol?
Which is the base class of all the user-interactive elements in WPF ?
1 Answers Sans Pareil IT Services,
What is the class hierarchy in windows presentation foundation?
Explain the difference between static and dynamicresource?
What is a wpf form?
What does BAML mean in WPF?
What is Difference between Page and Window Controls in WPF?
What do you understand by a routed event and what are its types?
Visual Basic (800)
C Sharp (3816)
ASP.NET (3180)
VB.NET (461)
COM+ (79)
ADO.NET (717)
IIS (369)
MTS (11)
Crystal Reports (81)
BizTalk (89)
Dot Net (2435)
Exchange Server (362)
SharePoint (720)
WCF (340)
MS Office Microsoft (6963)
LINQ Language-Integrated Query (317)
WPF (371)
TypeScript (144)
Microsoft Related AllOther (311)