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: 2991
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: 2991
Joined: 22 Dec 2011, 19:20

Re: Static members not supported??

30 May 2018, 20:01

Thanks for the report.

Who is online

Users browsing this forum: Bing [Bot] and 48 guests