|
182 | 182 | <Grid>
|
183 | 183 | <Border Background="{TemplateBinding Background}" x:Name="border"
|
184 | 184 | CornerRadius="{Binding Path=(wpf:ButtonAssist.CornerRadius), RelativeSource={RelativeSource TemplatedParent}}"
|
185 |
| - BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}"> |
186 |
| - <ProgressBar x:Name="ProgressBar" |
| 185 | + BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}"/> |
| 186 | + <ProgressBar x:Name="ProgressBar" |
187 | 187 | Style="{DynamicResource MaterialDesignLinearProgressBar}"
|
188 | 188 | Minimum="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=(wpf:ButtonProgressAssist.Minimum)}"
|
189 | 189 | Maximum="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=(wpf:ButtonProgressAssist.Maximum)}"
|
|
198 | 198 | Opacity="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=(wpf:ButtonProgressAssist.Opacity)}"
|
199 | 199 | HorizontalAlignment="Left"
|
200 | 200 | VerticalAlignment="Center">
|
201 |
| - <ProgressBar.Clip> |
202 |
| - <MultiBinding Converter="{StaticResource BorderClipConverter}"> |
203 |
| - <Binding ElementName="border" Path="ActualWidth" /> |
204 |
| - <Binding ElementName="border" Path="ActualHeight" /> |
205 |
| - <Binding ElementName="border" Path="CornerRadius" /> |
206 |
| - <Binding ElementName="border" Path="BorderThickness" /> |
207 |
| - </MultiBinding> |
208 |
| - </ProgressBar.Clip> |
209 |
| - </ProgressBar> |
210 |
| - </Border> |
| 201 | + <ProgressBar.Clip> |
| 202 | + <MultiBinding Converter="{StaticResource BorderClipConverter}"> |
| 203 | + <Binding ElementName="border" Path="ActualWidth" /> |
| 204 | + <Binding ElementName="border" Path="ActualHeight" /> |
| 205 | + <Binding ElementName="border" Path="CornerRadius" /> |
| 206 | + <Binding ElementName="border" Path="BorderThickness" /> |
| 207 | + </MultiBinding> |
| 208 | + </ProgressBar.Clip> |
| 209 | + </ProgressBar> |
| 210 | + |
211 | 211 | <wpf:Ripple Content="{TemplateBinding Content}" ContentTemplate="{TemplateBinding ContentTemplate}" Focusable="False"
|
212 | 212 | ContentStringFormat="{TemplateBinding ContentStringFormat}"
|
213 | 213 | HorizontalContentAlignment="{TemplateBinding HorizontalContentAlignment}"
|
|
253 | 253 | <Style x:Key="MaterialDesignFlatSecondaryButton" TargetType="{x:Type ButtonBase}" BasedOn="{StaticResource MaterialDesignFlatButton}">
|
254 | 254 | <Setter Property="Foreground" Value="{DynamicResource SecondaryHueMidBrush}"/>
|
255 | 255 | <Setter Property="wpf:RippleAssist.Feedback" Value="{DynamicResource SecondaryHueMidBrush}"/>
|
| 256 | + <Setter Property="wpf:ButtonProgressAssist.IndicatorForeground" Value="{DynamicResource SecondaryHueMidForegroundBrush}" /> |
| 257 | + <Setter Property="wpf:ButtonProgressAssist.IndicatorBackground" Value="{DynamicResource SecondaryHueMidBrush}" /> |
256 | 258 | </Style>
|
257 | 259 |
|
258 |
| - <Style x:Key="MaterialDesignFlatSecondaryLightButton" TargetType="{x:Type ButtonBase}" BasedOn="{StaticResource MaterialDesignFlatButton}"> |
| 260 | + <Style x:Key="MaterialDesignFlatSecondaryLightButton" TargetType="{x:Type ButtonBase}" BasedOn="{StaticResource MaterialDesignFlatSecondaryButton}"> |
259 | 261 | <Setter Property="Foreground" Value="{DynamicResource SecondaryHueLightBrush}"/>
|
260 | 262 | <Setter Property="wpf:RippleAssist.Feedback" Value="{DynamicResource SecondaryHueLightBrush}"/>
|
261 | 263 | </Style>
|
262 | 264 |
|
263 |
| - <Style x:Key="MaterialDesignFlatSecondaryDarkButton" TargetType="{x:Type ButtonBase}" BasedOn="{StaticResource MaterialDesignFlatButton}"> |
| 265 | + <Style x:Key="MaterialDesignFlatSecondaryDarkButton" TargetType="{x:Type ButtonBase}" BasedOn="{StaticResource MaterialDesignFlatSecondaryButton}"> |
264 | 266 | <Setter Property="Foreground" Value="{DynamicResource SecondaryHueDarkBrush}"/>
|
265 | 267 | <Setter Property="wpf:RippleAssist.Feedback" Value="{DynamicResource SecondaryHueDarkBrush}"/>
|
266 | 268 | </Style>
|
|
313 | 315 | x:Name="border"
|
314 | 316 | CornerRadius="{Binding Path=(wpf:ButtonAssist.CornerRadius), RelativeSource={RelativeSource TemplatedParent}}"
|
315 | 317 | BorderBrush="{TemplateBinding BorderBrush}"
|
316 |
| - BorderThickness="{TemplateBinding BorderThickness}"> |
317 |
| - <ProgressBar x:Name="ProgressBar" |
| 318 | + BorderThickness="{TemplateBinding BorderThickness}"/> |
| 319 | + <ProgressBar x:Name="ProgressBar" |
318 | 320 | Style="{DynamicResource MaterialDesignLinearProgressBar}"
|
319 | 321 | Minimum="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=(wpf:ButtonProgressAssist.Minimum)}"
|
320 | 322 | Maximum="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=(wpf:ButtonProgressAssist.Maximum)}"
|
|
329 | 331 | Opacity="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=(wpf:ButtonProgressAssist.Opacity)}"
|
330 | 332 | HorizontalAlignment="Left"
|
331 | 333 | VerticalAlignment="Center">
|
332 |
| - <ProgressBar.Clip> |
333 |
| - <MultiBinding Converter="{StaticResource BorderClipConverter}"> |
334 |
| - <Binding ElementName="border" Path="ActualWidth" /> |
335 |
| - <Binding ElementName="border" Path="ActualHeight" /> |
336 |
| - <Binding ElementName="border" Path="CornerRadius" /> |
337 |
| - <Binding ElementName="border" Path="BorderThickness" /> |
338 |
| - </MultiBinding> |
339 |
| - </ProgressBar.Clip> |
340 |
| - </ProgressBar> |
341 |
| - </Border> |
| 334 | + <ProgressBar.Clip> |
| 335 | + <MultiBinding Converter="{StaticResource BorderClipConverter}"> |
| 336 | + <Binding ElementName="border" Path="ActualWidth" /> |
| 337 | + <Binding ElementName="border" Path="ActualHeight" /> |
| 338 | + <Binding ElementName="border" Path="CornerRadius" /> |
| 339 | + <Binding ElementName="border" Path="BorderThickness" /> |
| 340 | + </MultiBinding> |
| 341 | + </ProgressBar.Clip> |
| 342 | + </ProgressBar> |
| 343 | + |
342 | 344 | <wpf:Ripple Content="{TemplateBinding Content}"
|
343 | 345 | ContentTemplate="{TemplateBinding ContentTemplate}"
|
344 | 346 | Focusable="False"
|
|
390 | 392 | <Setter Property="BorderBrush" Value="{DynamicResource SecondaryHueMidBrush}"/>
|
391 | 393 | <Setter Property="Foreground" Value="{DynamicResource SecondaryHueMidBrush}"/>
|
392 | 394 | <Setter Property="wpf:RippleAssist.Feedback" Value="{DynamicResource SecondaryHueMidBrush}"/>
|
| 395 | + <Setter Property="wpf:ButtonProgressAssist.IndicatorForeground" Value="{DynamicResource SecondaryHueMidForegroundBrush}" /> |
| 396 | + <Setter Property="wpf:ButtonProgressAssist.IndicatorBackground" Value="{DynamicResource SecondaryHueMidBrush}" /> |
393 | 397 | </Style>
|
394 | 398 |
|
395 |
| - <Style x:Key="MaterialDesignOutlinedSecondaryLightButton" TargetType="{x:Type ButtonBase}" BasedOn="{StaticResource MaterialDesignOutlinedButton}"> |
| 399 | + <Style x:Key="MaterialDesignOutlinedSecondaryLightButton" TargetType="{x:Type ButtonBase}" BasedOn="{StaticResource MaterialDesignOutlinedSecondaryButton}"> |
396 | 400 | <Setter Property="BorderBrush" Value="{DynamicResource SecondaryHueLightBrush}"/>
|
397 | 401 | <Setter Property="Foreground" Value="{DynamicResource SecondaryHueLightBrush}"/>
|
398 | 402 | <Setter Property="wpf:RippleAssist.Feedback" Value="{DynamicResource SecondaryHueLightBrush}"/>
|
399 | 403 | </Style>
|
400 | 404 |
|
401 |
| - <Style x:Key="MaterialDesignOutlinedSecondaryDarkButton" TargetType="{x:Type ButtonBase}" BasedOn="{StaticResource MaterialDesignOutlinedButton}"> |
| 405 | + <Style x:Key="MaterialDesignOutlinedSecondaryDarkButton" TargetType="{x:Type ButtonBase}" BasedOn="{StaticResource MaterialDesignOutlinedSecondaryButton}"> |
402 | 406 | <Setter Property="BorderBrush" Value="{DynamicResource SecondaryHueDarkBrush}" />
|
403 | 407 | <Setter Property="Foreground" Value="{DynamicResource SecondaryHueDarkBrush}" />
|
404 | 408 | <Setter Property="wpf:RippleAssist.Feedback" Value="{DynamicResource SecondaryHueDarkBrush}"/>
|
|
0 commit comments