Visibility as StaticResource
Hi
I want to use the application dictionary to adjust the visibility of interface elements
and get error
I wrapped Visibility in a component and use
Its worked.
How are system classes implemented: sys:String, sys:Double, sys::Boolean?
I want to use the application dictionary to adjust the visibility of interface elements
Code: Select all
xmlns:sys="clr-namespace:System;assembly=mscorlib"
<Application.Resources>
<ResourceDictionary>
<sys:String x:Key="LayoutName">LayoutConfigurationName</sys:String>
<sys:Boolean x:Key="IsPlatform">False</sys:Boolean>
<Visibility x:Key="Visibility.Text">Hidden</Visibility>
</ResourceDictionary>
</Application.Resources>
Code: Select all
Enum node can't have attributes.
Code: Select all
<ResourceDictionary>
<VisibilityBoxed x:Key="Visibility.Text" Value="Hidden"/>
</ResourceDictionary>
...
<Grid Visibility={Binding Source={StaticResource Visibility.Text}, Path=Value}/>
How are system classes implemented: sys:String, sys:Double, sys::Boolean?
-
sfernandez
Site Admin
- Posts: 3112
- Joined:
Re: Visibility as StaticResource
Defining enum values as resources was not working before 3.2.4 version, but it should be fine now, what version are you using?
Re: Visibility as StaticResource
We are using version 3.2.2Defining enum values as resources was not working before 3.2.4 version, but it should be fine now, what version are you using?
Who is online
Users browsing this forum: Bing [Bot] and 1 guest