Skip to content

Commit

Permalink
disable non used flyout items
Browse files Browse the repository at this point in the history
  • Loading branch information
gwalus committed Jun 5, 2024
1 parent d3d1aee commit 2349d14
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/Dollet.Presentation/Maui/AppShell.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -151,8 +151,9 @@
</FlyoutItem>

<FlyoutItem
Title="Inwestments"
Route="InwestmentsPage">
Title="Wallets"
Route="InwestmentsPage"
IsEnabled="False">

<FlyoutItem.FlyoutIcon>
<FontImageSource
Expand All @@ -162,13 +163,14 @@
</FlyoutItem.FlyoutIcon>

<ShellContent
Title="Inwestments"
Title="Wallets"
ContentTemplate="{DataTemplate pages:InwestmentsPage}" />
</FlyoutItem>

<FlyoutItem
Title="Settings"
Route="SettingsPage">
Route="SettingsPage"
IsEnabled="False">

<FlyoutItem.FlyoutIcon>
<FontImageSource
Expand Down
6 changes: 6 additions & 0 deletions src/Dollet.Presentation/Maui/Resources/Styles/Styles.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,12 @@
<Style TargetType="Label" Class="FlyoutItemLabelStyle">
<Setter Property="FontSize" Value="16" />
<Setter Property="FontFamily" Value="VactorySansRegular" />

<Style.Triggers>
<DataTrigger TargetType="Label" Binding="{Binding IsEnabled}" Value="False">
<Setter Property="Opacity" Value="0.5"/>
</DataTrigger>
</Style.Triggers>
</Style>

<Style TargetType="ListView">
Expand Down

0 comments on commit 2349d14

Please sign in to comment.