Static members not supported??
Trying to bind a static property with:
Result in exception:
Is this a Noesis limitation, or did I do something wrong?
Code: Select all
<Button Content="{x:Static loginScreen:Guest.Text}" Click="ButtonGuest_OnClick" />Code: Select all
NoesisException: Assets/Xaml/LoginWindow.xaml(63): Static members not supported. Can't use 'TextResources.LoginScreen.Guest.Text'.-
- antsonthetree
- Posts: 44
- Joined:
Re: Static members not supported??
I also would like to see support for this.
-
-
sfernandez
Site Admin
- Posts: 3363
- Joined:
Re: Static members not supported??
Static members are not supported in Noesis.
{x:Static } markup extension only works for enum values, for example:
Can you please create a ticket about adding support for static members in our bugtracker?
{x:Static } markup extension only works for enum values, for example:
Code: Select all
<Setter Property="Visibility" Value="{x:Static Visibility.Visible}"/>Re: Static members not supported??
Done: https://www.noesisengine.com/bugs/view.php?id=1305Static members are not supported in Noesis.
{x:Static } markup extension only works for enum values, for example:Can you please create a ticket about adding support for static members in our bugtracker?Code: Select all<Setter Property="Visibility" Value="{x:Static Visibility.Visible}"/>
-
-
sfernandez
Site Admin
- Posts: 3363
- Joined:
Re: Static members not supported??
Thanks for the report.
Re: Static members not supported??
Any updates on this?
EDIT: I found a workaround by using a custom MarkupExtension instead.
EDIT: I found a workaround by using a custom MarkupExtension instead.
Re: Static members not supported??
Supported scenarios are documented here.
This must be fixed to be 100% compatible with WPF, but for now this is low priority.
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