|
33 | 33 | <Grid> |
34 | 34 | <DockPanel> |
35 | 35 | <materialDesign:ColorZone x:Name="TitleColorZone" |
36 | | - Height="64" |
37 | | - Padding="8" |
| 36 | + Height="48" |
38 | 37 | materialDesign:ShadowAssist.ShadowDepth="Depth0" |
39 | 38 | DockPanel.Dock="Top" |
40 | 39 | Mode="PrimaryMid"> |
41 | | - <DockPanel> |
| 40 | + <DockPanel Margin="8,0,0,0"> |
42 | 41 | <Grid> |
43 | 42 | <ToggleButton Width="32" |
| 43 | + WindowChrome.IsHitTestVisibleInChrome="True" |
44 | 44 | IsChecked="{Binding Navigator.CurrentPage.IsInEditMode, Mode=OneWay}" |
45 | 45 | Visibility="{Binding Navigator.CurrentPage.IsInEditMode, Mode=OneWay, Converter={StaticResource BooleanToVisibilityConverter}}"> |
46 | 46 | <i:Interaction.Triggers> |
|
62 | 62 | <Button VerticalAlignment="Center" |
63 | 63 | Command="{Binding ToggleMenuCommand}" |
64 | 64 | DockPanel.Dock="Left" |
| 65 | + WindowChrome.IsHitTestVisibleInChrome="True" |
65 | 66 | Style="{DynamicResource MaterialDesignToolForegroundButton}" |
66 | 67 | Visibility="{Binding Navigator.CurrentPage.IsInEditMode, Mode=OneWay, Converter={StaticResource InverseBooleanToVisibilityConverter}}"> |
67 | 68 | <materialDesign:PackIcon Width="32" |
|
72 | 73 |
|
73 | 74 | </Grid> |
74 | 75 |
|
75 | | - <Ellipse Width="32" |
76 | | - Height="32" |
77 | | - DockPanel.Dock="Right" |
78 | | - Visibility="{Binding ProfilePicture, Converter={StaticResource NullToVisibilityConverter}}"> |
79 | | - <Ellipse.Fill> |
80 | | - <ImageBrush ImageSource="{Binding ProfilePicture}" Stretch="UniformToFill" /> |
81 | | - </Ellipse.Fill> |
82 | | - </Ellipse> |
| 76 | + <Button Width="44" |
| 77 | + Height="48" |
| 78 | + DockPanel.Dock="Right" |
| 79 | + WindowChrome.IsHitTestVisibleInChrome="True" |
| 80 | + Command="{Binding CloseCommand}"> |
| 81 | + <materialDesign:PackIcon Kind="Close" |
| 82 | + Width="24" |
| 83 | + Height="24"/> |
| 84 | + <Button.Style> |
| 85 | + <Style TargetType="{x:Type Button}"> |
| 86 | + <Setter Property="Background" Value="Transparent"/> |
| 87 | + <Setter Property="Foreground" Value="White" /> |
| 88 | + <Setter Property="Template"> |
| 89 | + <Setter.Value> |
| 90 | + <ControlTemplate TargetType="{x:Type Button}"> |
| 91 | + <Border Background="{TemplateBinding Background}"> |
| 92 | + <ContentPresenter VerticalAlignment="Center" |
| 93 | + HorizontalAlignment="Center"/> |
| 94 | + </Border> |
| 95 | + </ControlTemplate> |
| 96 | + </Setter.Value> |
| 97 | + </Setter> |
| 98 | + <Style.Triggers> |
| 99 | + <Trigger Property="IsMouseOver" Value="True"> |
| 100 | + <Setter Property="Background" Value="#FFE6002B"/> |
| 101 | + </Trigger> |
| 102 | + <DataTrigger Binding="{Binding Navigator.CurrentPage.IsInEditMode, Mode=OneWay}" Value="True"> |
| 103 | + <Setter Property="Foreground" Value="{DynamicResource MaterialDesignBody}" /> |
| 104 | + </DataTrigger> |
| 105 | + </Style.Triggers> |
| 106 | + </Style> |
| 107 | + </Button.Style> |
| 108 | + </Button> |
| 109 | + |
| 110 | + <Button Width="44" |
| 111 | + Height="48" |
| 112 | + DockPanel.Dock="Right" |
| 113 | + WindowChrome.IsHitTestVisibleInChrome="True" |
| 114 | + Command="{Binding ToggleMaxMinCommand}"> |
| 115 | + <materialDesign:PackIcon Kind="WindowMaximize" |
| 116 | + Width="24" |
| 117 | + Height="24"/> |
| 118 | + <Button.Style> |
| 119 | + <Style TargetType="{x:Type Button}"> |
| 120 | + <Setter Property="Background" Value="Transparent"/> |
| 121 | + <Setter Property="Foreground" Value="White" /> |
| 122 | + <Setter Property="Template"> |
| 123 | + <Setter.Value> |
| 124 | + <ControlTemplate TargetType="{x:Type Button}"> |
| 125 | + <Grid> |
| 126 | + <Border Background="{TemplateBinding Background}"/> |
| 127 | + <ContentPresenter VerticalAlignment="Center" |
| 128 | + HorizontalAlignment="Center"/> |
| 129 | + </Grid> |
| 130 | + </ControlTemplate> |
| 131 | + </Setter.Value> |
| 132 | + </Setter> |
| 133 | + <Style.Triggers> |
| 134 | + <Trigger Property="IsMouseOver" Value="True"> |
| 135 | + <Setter Property="Background" Value="#33000000"/> |
| 136 | + </Trigger> |
| 137 | + <DataTrigger Binding="{Binding Navigator.CurrentPage.IsInEditMode, Mode=OneWay}" Value="True"> |
| 138 | + <Setter Property="Foreground" Value="{DynamicResource MaterialDesignBody}" /> |
| 139 | + </DataTrigger> |
| 140 | + </Style.Triggers> |
| 141 | + </Style> |
| 142 | + </Button.Style> |
| 143 | + </Button> |
| 144 | + |
| 145 | + <Button Width="44" |
| 146 | + Height="48" |
| 147 | + DockPanel.Dock="Right" |
| 148 | + WindowChrome.IsHitTestVisibleInChrome="True" |
| 149 | + Command="{Binding MinimizeCommand}"> |
| 150 | + <materialDesign:PackIcon Kind="WindowMinimize" |
| 151 | + Width="24" |
| 152 | + Height="24"/> |
| 153 | + <Button.Style> |
| 154 | + <Style TargetType="{x:Type Button}"> |
| 155 | + <Setter Property="Background" Value="Transparent"/> |
| 156 | + <Setter Property="Foreground" Value="White" /> |
| 157 | + <Setter Property="Template"> |
| 158 | + <Setter.Value> |
| 159 | + <ControlTemplate TargetType="{x:Type Button}"> |
| 160 | + <Grid> |
| 161 | + <Border Background="{TemplateBinding Background}"/> |
| 162 | + <ContentPresenter VerticalAlignment="Center" |
| 163 | + HorizontalAlignment="Center"/> |
| 164 | + </Grid> |
| 165 | + </ControlTemplate> |
| 166 | + </Setter.Value> |
| 167 | + </Setter> |
| 168 | + <Style.Triggers> |
| 169 | + <Trigger Property="IsMouseOver" Value="True"> |
| 170 | + <Setter Property="Background" Value="#33000000"/> |
| 171 | + </Trigger> |
| 172 | + <DataTrigger Binding="{Binding Navigator.CurrentPage.IsInEditMode, Mode=OneWay}" Value="True"> |
| 173 | + <Setter Property="Foreground" Value="{DynamicResource MaterialDesignBody}" /> |
| 174 | + </DataTrigger> |
| 175 | + </Style.Triggers> |
| 176 | + </Style> |
| 177 | + </Button.Style> |
| 178 | + </Button> |
83 | 179 |
|
84 | 180 | <materialDesign:PopupBox DockPanel.Dock="Right" |
85 | 181 | PlacementMode="BottomAndAlignRightEdges" |
86 | | - StaysOpen="False"> |
| 182 | + StaysOpen="False" |
| 183 | + WindowChrome.IsHitTestVisibleInChrome="True"> |
87 | 184 | <materialDesign:PopupBox.Style> |
88 | 185 | <Style BasedOn="{StaticResource {x:Type materialDesign:PopupBox}}" TargetType="{x:Type materialDesign:PopupBox}"> |
89 | 186 | <Style.Triggers> |
|
99 | 196 | </StackPanel> |
100 | 197 | </materialDesign:PopupBox> |
101 | 198 |
|
| 199 | + <Ellipse Width="32" |
| 200 | + Height="32" |
| 201 | + DockPanel.Dock="Right" |
| 202 | + Visibility="{Binding ProfilePicture, Converter={StaticResource NullToVisibilityConverter}}"> |
| 203 | + <Ellipse.Fill> |
| 204 | + <ImageBrush ImageSource="{Binding ProfilePicture}" Stretch="UniformToFill" /> |
| 205 | + </Ellipse.Fill> |
| 206 | + </Ellipse> |
| 207 | + |
102 | 208 | <Button VerticalAlignment="Center" |
| 209 | + WindowChrome.IsHitTestVisibleInChrome="True" |
103 | 210 | Command="{Binding Navigator.CurrentPage.ToolBar.Refresh.Command}" |
104 | 211 | DockPanel.Dock="Right" |
105 | 212 | Style="{DynamicResource MaterialDesignToolForegroundButton}" |
|
110 | 217 | </Button> |
111 | 218 |
|
112 | 219 | <Button VerticalAlignment="Center" |
| 220 | + WindowChrome.IsHitTestVisibleInChrome="True" |
113 | 221 | Command="{Binding Navigator.CurrentPage.ToolBar.Save.Command}" |
114 | 222 | DockPanel.Dock="Right" |
115 | 223 | Style="{DynamicResource MaterialDesignToolForegroundButton}" |
|
122 | 230 | </Button> |
123 | 231 |
|
124 | 232 | <Button VerticalAlignment="Center" |
| 233 | + WindowChrome.IsHitTestVisibleInChrome="True" |
125 | 234 | Command="{Binding Navigator.CurrentPage.ToolBar.Export.Command}" |
126 | 235 | DockPanel.Dock="Right" |
127 | 236 | Style="{DynamicResource MaterialDesignToolForegroundButton}" |
|
150 | 259 | </TextBlock> |
151 | 260 |
|
152 | 261 | <materialDesign:ColorZone Height="40" |
| 262 | + WindowChrome.IsHitTestVisibleInChrome="True" |
153 | 263 | MaxWidth="400" |
154 | 264 | Margin="24,0,0,0" |
155 | 265 | Padding="8,0,8,0" |
|
159 | 269 | materialDesign:ShadowAssist.ShadowDepth="Depth1" |
160 | 270 | CornerRadius="2" |
161 | 271 | Mode="Standard" |
162 | | - Visibility="{Binding Navigator.CurrentPage.ToolBar.SearchBar.IsShown, Converter={StaticResource BooleanToVisibilityConverter}}"> |
| 272 | + Visibility="Collapsed"> |
163 | 273 | <DockPanel> |
164 | 274 | <Button Command="{Binding Navigator.CurrentPage.ToolBar.SearchBar.Command}" |
165 | 275 | DockPanel.Dock="Left" |
|
0 commit comments