|
86 | 86 |
|
87 | 87 | <ControlTemplate x:Key="PopupContentDownTemplate" TargetType="ContentControl">
|
88 | 88 | <Grid MinWidth="{Binding ElementName=templateRoot, Path=ActualWidth, Converter={StaticResource MathAddConverter}, ConverterParameter=32}"
|
89 |
| - Margin="6"> |
| 89 | + Margin="6"> |
90 | 90 | <Grid.RowDefinitions>
|
91 | 91 | <RowDefinition Height="*" />
|
92 | 92 | </Grid.RowDefinitions>
|
|
98 | 98 | <BlurEffect Radius="6"/>
|
99 | 99 | </Border.Effect>
|
100 | 100 | </Border>
|
101 |
| - <Grid Margin="1"> |
| 101 | + <Grid Margin="1" |
| 102 | + SnapsToDevicePixels="True"> |
102 | 103 | <Grid.RowDefinitions>
|
103 | 104 | <RowDefinition Height="Auto"/>
|
104 | 105 | <RowDefinition Height="Auto"/>
|
|
107 | 108 | <RowDefinition Height="Auto"/>
|
108 | 109 | </Grid.RowDefinitions>
|
109 | 110 | <Rectangle Grid.Row="0"
|
110 |
| - Fill="{DynamicResource MaterialDesignPaper}" |
111 |
| - Height="{StaticResource PopupTopBottomMargin}"/> |
112 |
| - |
| 111 | + Fill="{DynamicResource MaterialDesignPaper}" |
| 112 | + Height="{StaticResource PopupTopBottomMargin}"/> |
| 113 | + |
113 | 114 | <Grid Grid.Row="1">
|
114 | 115 | <Grid.ColumnDefinitions>
|
115 | 116 | <ColumnDefinition Width="Auto"/>
|
116 | 117 | <ColumnDefinition Width="Auto"/>
|
117 | 118 | <ColumnDefinition Width="*"/>
|
118 | 119 | </Grid.ColumnDefinitions>
|
119 | 120 | <Rectangle Grid.Column="0"
|
120 |
| - Width="{StaticResource PopupLeftRightMargin}" |
121 |
| - Fill="{DynamicResource MaterialDesignPaper}"/> |
| 121 | + Width="{StaticResource PopupLeftRightMargin}" |
| 122 | + Fill="{DynamicResource MaterialDesignPaper}" |
| 123 | + /> |
122 | 124 | <Grid Grid.Column="1"
|
123 |
| - Width="{Binding ElementName=templateRoot, Path=ActualWidth}" |
124 |
| - Height="{Binding ElementName=templateRoot, Path=ActualHeight}"/> |
| 125 | + Width="{Binding ElementName=templateRoot, Path=ActualWidth}" |
| 126 | + Height="{Binding ElementName=templateRoot, Path=ActualHeight}"/> |
125 | 127 | <Rectangle Grid.Column="2"
|
126 |
| - MinWidth="{StaticResource PopupLeftRightMargin}" |
127 |
| - Fill="{DynamicResource MaterialDesignPaper}"/> |
| 128 | + MinWidth="{StaticResource PopupLeftRightMargin}" |
| 129 | + Fill="{DynamicResource MaterialDesignPaper}" |
| 130 | + /> |
128 | 131 | </Grid>
|
129 | 132 |
|
130 | 133 | <Rectangle Grid.Row="2"
|
131 |
| - Fill="{DynamicResource MaterialDesignPaper}" |
132 |
| - Height="{StaticResource PopupContentPresenterExtend}"/> |
| 134 | + Fill="{DynamicResource MaterialDesignPaper}" |
| 135 | + Height="{StaticResource PopupContentPresenterExtend}"/> |
133 | 136 |
|
134 | 137 | <ContentPresenter Grid.Row="3"/>
|
135 | 138 |
|
136 | 139 | <Rectangle Grid.Row="4"
|
137 |
| - Height="{StaticResource PopupTopBottomMargin}" |
138 |
| - Fill="{DynamicResource MaterialDesignPaper}" /> |
| 140 | + Height="{StaticResource PopupTopBottomMargin}" |
| 141 | + Fill="{DynamicResource MaterialDesignPaper}" /> |
139 | 142 | </Grid>
|
140 | 143 | </Grid>
|
141 | 144 | </ControlTemplate>
|
|
385 | 388 |
|
386 | 389 | <ControlTemplate x:Key="MaterialDesignComboBoxTemplate" TargetType="{x:Type ComboBox}">
|
387 | 390 | <Grid x:Name="templateRoot"
|
388 |
| - SnapsToDevicePixels="True" |
389 |
| - UseLayoutRounding="True"> |
| 391 | + SnapsToDevicePixels="True"> |
390 | 392 | <Grid.ColumnDefinitions>
|
391 | 393 | <ColumnDefinition Width="*" />
|
392 | 394 | <ColumnDefinition Width="0" MinWidth="{DynamicResource {x:Static SystemParameters.VerticalScrollBarWidthKey}}" />
|
|
434 | 436 | HorizontalOffset="-11"
|
435 | 437 | IsOpen="{Binding IsDropDownOpen, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}"
|
436 | 438 | PlacementTarget="{Binding ElementName=templateRoot}"
|
437 |
| - SnapsToDevicePixels="True" |
438 |
| - UseLayoutRounding="True" |
439 | 439 | Placement="Custom"
|
| 440 | + SnapsToDevicePixels="True" |
440 | 441 | PopupAnimation="Fade"
|
441 | 442 | VerticalOffset="0"
|
442 | 443 | DefaultVerticalOffset="5"
|
|
486 | 487 | </ControlTemplate>
|
487 | 488 |
|
488 | 489 | <ControlTemplate x:Key="MaterialDesignFloatingHintComboBoxTemplate" TargetType="{x:Type ComboBox}">
|
489 |
| - <Grid x:Name="templateRoot"> |
| 490 | + <Grid x:Name="templateRoot" |
| 491 | + SnapsToDevicePixels="True"> |
490 | 492 | <VisualStateManager.VisualStateGroups>
|
491 | 493 | <VisualStateGroup x:Name="MaterialDesignStates">
|
492 | 494 | <VisualStateGroup.Transitions>
|
|
557 | 559 | </VisualState>
|
558 | 560 | </VisualStateGroup>
|
559 | 561 | </VisualStateManager.VisualStateGroups>
|
560 |
| - <Grid Margin="0 12 0 0" |
561 |
| - SnapsToDevicePixels="True" |
562 |
| - UseLayoutRounding="True"> |
| 562 | + <Grid Margin="0 12 0 0"> |
563 | 563 | <Grid.ColumnDefinitions>
|
564 | 564 | <ColumnDefinition Width="*" />
|
565 | 565 | <ColumnDefinition Width="0" MinWidth="{DynamicResource {x:Static SystemParameters.VerticalScrollBarWidthKey}}" />
|
|
0 commit comments