Question : Dynamic and Static Resources in Silverlight

I am trying to transition from a ASP.NET 1.1 mindset into a Silverlight and WPF mindset.  Can someone explain to me how the Dynamic and Static Resources work in Silverlight?  Is this the way I can easily bind datasets from a SQL Server database to silverlight controls?  Any help is appreciated.  I thank you in advance for your help and code snippets.

Answer : Dynamic and Static Resources in Silverlight

http://msdn.microsoft.com/en-us/library/ms750950.aspx
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.
http://msdn.microsoft.com/en-us/library/ms748942.aspx

controls like listbox, datagird... will have "itemsource" property through which you can bind your data easily
Random Solutions  
 
programming4us programming4us