User avatar
horeaper
Topic Author
Posts: 34
Joined: 22 Sep 2014, 12:50

Static members not supported??

13 May 2018, 17:09

Trying to bind a static property with:
<Button Content="{x:Static loginScreen:Guest.Text}" Click="ButtonGuest_OnClick" />
Result in exception:
NoesisException: Assets/Xaml/LoginWindow.xaml(63): Static members not supported. Can't use 'TextResources.LoginScreen.Guest.Text'.
Is this a Noesis limitation, or did I do something wrong?
 
antsonthetree
Posts: 44
Joined: 09 Jan 2018, 15:56

Re: Static members not supported??

16 May 2018, 18:18

I also would like to see support for this.
 
User avatar
sfernandez
Site Admin
Posts: 3363
Joined: 22 Dec 2011, 19:20

Re: Static members not supported??

16 May 2018, 22:52

Static members are not supported in Noesis.

{x:Static } markup extension only works for enum values, for example:
<Setter Property="Visibility" Value="{x:Static Visibility.Visible}"/>
Can you please create a ticket about adding support for static members in our bugtracker?
 
User avatar
horeaper
Topic Author
Posts: 34
Joined: 22 Sep 2014, 12:50

Re: Static members not supported??

27 May 2018, 00:22

Static members are not supported in Noesis.

{x:Static } markup extension only works for enum values, for example:
<Setter Property="Visibility" Value="{x:Static Visibility.Visible}"/>
Can you please create a ticket about adding support for static members in our bugtracker?
Done: https://www.noesisengine.com/bugs/view.php?id=1305
 
User avatar
sfernandez
Site Admin
Posts: 3363
Joined: 22 Dec 2011, 19:20

Re: Static members not supported??

30 May 2018, 20:01

Thanks for the report.
 
raze
Posts: 6
Joined: 05 Jun 2025, 22:36

Re: Static members not supported??

21 Sep 2025, 22:34

Any updates on this?

EDIT: I found a workaround by using a custom MarkupExtension instead.
 
User avatar
jsantos
Site Admin
Posts: 4823
Joined: 20 Jan 2012, 17:18
Contact:

Re: Static members not supported??

24 Sep 2025, 13:13

Supported scenarios are documented here.

This must be fixed to be 100% compatible with WPF, but for now this is low priority.

Who is online

Users browsing this forum: No registered users and 3 guests