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: 2991
- 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: 2991
- Joined:
Re: Static members not supported??
Thanks for the report.
Who is online
Users browsing this forum: Bing [Bot] and 48 guests