Quantcast
Channel: Recent Threads — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 204402

How to define boolean key in app.xaml?

$
0
0

How to define a global resource dictionary boolean key, ShowMyMenu, and use it to show or hide myMenu

<local:myMenu x:Name="myMenu" HorizontalOptions="FillAndExpand" VerticalOptions="Start" IsVisible="{StaticResource ShowMyMenu}" />

I tried same different ways in App.xaml file, but they can't be executed:

<x:bool x:key="ShowMyMenu">True</x:bool>

<x:Boolean x:key="ShowMyMenu">True</x:Boolean>

<Boolean x:key="ShowMyMenu">True</Boolean>

Thanks for your help


Viewing all articles
Browse latest Browse all 204402


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>