Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Moving converters inside of the tempalate
  • Loading branch information
Keboo committed Apr 8, 2023
commit f4620173b934930f7795e5b40b7759fea4664385
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,6 @@
<ResourceDictionary Source="pack://application:,,,/MaterialDesignThemes.Wpf;component/Themes/MaterialDesignTheme.ToolTip.xaml" />
</ResourceDictionary.MergedDictionaries>

<wpf:ElevationMarginConverter x:Key="ElevationMarginConverter" />
<wpf:ElevationRadiusConverter x:Key="ElevationRadiusConverter" Multiplier="-1" />
<wpf:ElevationRadiusConverter x:Key="RtlElevationRadiusConverter" Multiplier="1" />

<Style x:Key="MaterialDesignPopupBoxButton" TargetType="{x:Type Button}">
<Setter Property="Foreground" Value="{DynamicResource MaterialDesignBody}" />
<Setter Property="HorizontalContentAlignment" Value="Left" />
Expand Down Expand Up @@ -97,6 +93,10 @@
<Setter.Value>
<ControlTemplate TargetType="{x:Type wpf:PopupBox}">
<ControlTemplate.Resources>
<wpf:ElevationMarginConverter x:Key="ElevationMarginConverter" />
<wpf:ElevationRadiusConverter x:Key="ElevationRadiusConverter" Multiplier="-1" />
<wpf:ElevationRadiusConverter x:Key="RtlElevationRadiusConverter" Multiplier="1" />

<Style TargetType="Separator" BasedOn="{StaticResource MaterialDesignSeparator}" />
<Style x:Key="ToggleButtonStyle" TargetType="ToggleButton">
<Setter Property="Template">
Expand Down