Skip to main content
Home Forums Silverlight Programming Programming with .NET - General binding | static class
3 replies. Latest Post by Maud on July 19, 2009.
(0)
schakal242
Member
18 points
55 Posts
07-12-2009 5:57 PM |
Hello,
why ist it not possible to bind to a static class?
Maud
Contributor
3276 points
453 Posts
07-17-2009 3:53 AM |
a workaround for x:static binding
http://stackoverflow.com/questions/640154/using-static-objects-in-xaml-that-were-created-in-code-in-silverlight
07-17-2009 8:48 PM |
Thanks for your answer :-)
But i want to define some global static variables on an easy way im my application.
I just do it in WPF a few days before. And i am wondering why it isnt possible in Silverlight...
The workaround-class define only static properties.
07-19-2009 11:18 PM |
Silverlight binding is not strong enough as Wpf. silverlight doesn't support dynamic binding, and may lack other ability.
In my opinion, they remove x:static to simplify the binding complexity