Skip to content

Commit

Permalink
Remove the resize border also from the top of the window. Move BoolTo…
Browse files Browse the repository at this point in the history
…Vis converter to App.xaml as it will be needed application wide.
  • Loading branch information
krzysztof-lorenc committed Apr 26, 2019
1 parent 888d465 commit 2413e42
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 deletions.
10 changes: 10 additions & 0 deletions src/Soloplan.WhatsON.GUI/App.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,17 @@
<ResourceDictionary Source="pack://application:,,,/MaterialDesignThemes.Wpf;component/Themes/MaterialDesignTheme.Defaults.xaml" />
<ResourceDictionary Source="pack://application:,,,/MaterialDesignColors;component/Themes/Recommended/Primary/MaterialDesignColor.Indigo.xaml" />
<ResourceDictionary Source="pack://application:,,,/MaterialDesignColors;component/Themes/Recommended/Accent/MaterialDesignColor.Pink.xaml" />
<ResourceDictionary>
<Style x:Key="BorderLessWindowStyle" TargetType="{x:Type Window}">
<Setter Property="WindowChrome.WindowChrome">
<Setter.Value>
<WindowChrome CaptionHeight="0" GlassFrameThickness="10" NonClientFrameEdges="None" ResizeBorderThickness="5" />
</Setter.Value>
</Setter>
</Style>
</ResourceDictionary>
</ResourceDictionary.MergedDictionaries>
<BooleanToVisibilityConverter x:Key="BoolToVis"/>
</ResourceDictionary>
</Application.Resources>
</Application>
7 changes: 2 additions & 5 deletions src/Soloplan.WhatsON.GUI/MainWindow.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,8 @@
TextElement.FontSize="14"
TextElement.FontWeight="Medium"
TextElement.Foreground="{DynamicResource MaterialDesignBody}"
WindowStyle="None"
mc:Ignorable="d">
<Window.Resources>
<BooleanToVisibilityConverter x:Key="BoolToVis" />
</Window.Resources>
mc:Ignorable="d"
Style="{StaticResource BorderLessWindowStyle}">
<DockPanel>
<materialDesign:ColorZone Margin="0"
Padding="6"
Expand Down

0 comments on commit 2413e42

Please sign in to comment.