Page 1 of 1

Static members not supported??

Posted: 13 May 2018, 17:09
by horeaper
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?

Re: Static members not supported??

Posted: 16 May 2018, 18:18
by antsonthetree
I also would like to see support for this.

Re: Static members not supported??

Posted: 16 May 2018, 22:52
by sfernandez
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?

Re: Static members not supported??

Posted: 27 May 2018, 00:22
by horeaper
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

Re: Static members not supported??

Posted: 30 May 2018, 20:01
by sfernandez
Thanks for the report.

Re: Static members not supported??

Posted: 21 Sep 2025, 22:34
by raze
Any updates on this?

EDIT: I found a workaround by using a custom MarkupExtension instead.

Re: Static members not supported??

Posted: 24 Sep 2025, 13:13
by jsantos
Supported scenarios are documented here.

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