Skip to main content

Microsoft Silverlight

Answered Question binding | static classRSS Feed

(0)

schakal242
schakal242

Member

Member

18 points

55 Posts

binding | static class

Hello,

 why ist it not possible to bind to a static class?

Maud
Maud

Contributor

Contributor

3276 points

453 Posts

Re: binding | static class

a workaround for x:static binding

http://stackoverflow.com/questions/640154/using-static-objects-in-xaml-that-were-created-in-code-in-silverlight

Maud

schakal242
schakal242

Member

Member

18 points

55 Posts

Re: binding | static class

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.

 

Maud
Maud

Contributor

Contributor

3276 points

453 Posts

Answered Question

Re: binding | static class

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

Maud
  • Unanswered Question
  • Answered Question
  • Announcement
Microsoft Communities