Skip to content

Commit

Permalink
add: nav bar background
Browse files Browse the repository at this point in the history
  • Loading branch information
Vladislav Konopelko committed Sep 18, 2024
1 parent d275ad1 commit e828f3d
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 0 deletions.
Binary file added Source/StaX.Desktop/Assets/StaX.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions Source/StaX.Desktop/StaX.Desktop.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@

<ItemGroup>
<None Remove="Assets\StaX.ico" />
<None Remove="Assets\StaX.jpg" />
</ItemGroup>

<ItemGroup>
Expand Down
21 changes: 21 additions & 0 deletions Source/StaX.Desktop/Views/MainWindow.axaml
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,26 @@
MenuItemsSource="{Binding AvailableStates}"
PaneDisplayMode="LeftCompact"
SelectedItem="{Binding SelectedState}">
<ui:NavigationView.Resources>
<VisualBrush x:Key="ViewBack" Stretch="UniformToFill">
<VisualBrush.Visual>
<Image
Opacity="0.2"
Source="/Assets/StaX.jpg"
Stretch="UniformToFill">
<Image.Effect>
<BlurEffect Radius="10" />
</Image.Effect>
</Image>
</VisualBrush.Visual>
</VisualBrush>
</ui:NavigationView.Resources>

<ui:NavigationView.Styles>
<Style Selector="ContentPresenter#PART_PanePresenter">
<Setter Property="Background" Value="{DynamicResource ViewBack}" />
</Style>
</ui:NavigationView.Styles>
<ui:NavigationView.MenuItemTemplate>
<DataTemplate>
<ui:NavigationViewItem
Expand All @@ -83,6 +103,7 @@
</DataTemplate>
</ui:NavigationView.MenuItemTemplate>
</ui:NavigationView>

<Button
MinWidth="27"
MinHeight="27"
Expand Down

0 comments on commit e828f3d

Please sign in to comment.