|
48 | 48 | </ControlTemplate>
|
49 | 49 | </Setter.Value>
|
50 | 50 | </Setter>
|
51 |
| - </Style> |
| 51 | + </Style> |
| 52 | + |
| 53 | + <Style x:Key="MaterialDesignComboBoxEditableTextBox" TargetType="{x:Type TextBox}"> |
| 54 | + <Setter Property="OverridesDefaultStyle" Value="true"/> |
| 55 | + <Setter Property="AllowDrop" Value="true"/> |
| 56 | + <Setter Property="MinWidth" Value="0"/> |
| 57 | + <Setter Property="MinHeight" Value="0"/> |
| 58 | + <Setter Property="FocusVisualStyle" Value="{x:Null}"/> |
| 59 | + <Setter Property="ScrollViewer.PanningMode" Value="VerticalFirst"/> |
| 60 | + <Setter Property="Stylus.IsFlicksEnabled" Value="False"/> |
| 61 | + <Setter Property="wpf:TextFieldAssist.TextBoxViewMargin" Value="1 0 1 0" /> |
| 62 | + <Setter Property="Template"> |
| 63 | + <Setter.Value> |
| 64 | + <ControlTemplate TargetType="{x:Type TextBox}"> |
| 65 | + <Grid> |
| 66 | + <ScrollViewer x:Name="PART_ContentHost" Focusable="false" HorizontalScrollBarVisibility="Hidden" VerticalScrollBarVisibility="Hidden" |
| 67 | + /> |
| 68 | + </Grid> |
| 69 | + </ControlTemplate> |
| 70 | + </Setter.Value> |
| 71 | + </Setter> |
| 72 | + </Style> |
52 | 73 |
|
53 | 74 | <ControlTemplate x:Key="MaterialDesignComboBoxItemTemplate" TargetType="{x:Type ComboBoxItem}">
|
54 | 75 | <Grid x:Name="GridWrapper">
|
|
632 | 653 | </ControlTemplate.Triggers>
|
633 | 654 | </ControlTemplate>
|
634 | 655 |
|
635 |
| - <Style x:Key="MaterialDesignComboBoxEditableTextBox" TargetType="{x:Type TextBox}"> |
636 |
| - <Setter Property="OverridesDefaultStyle" Value="true"/> |
637 |
| - <Setter Property="AllowDrop" Value="true"/> |
638 |
| - <Setter Property="MinWidth" Value="0"/> |
639 |
| - <Setter Property="MinHeight" Value="0"/> |
640 |
| - <Setter Property="FocusVisualStyle" Value="{x:Null}"/> |
641 |
| - <Setter Property="ScrollViewer.PanningMode" Value="VerticalFirst"/> |
642 |
| - <Setter Property="Stylus.IsFlicksEnabled" Value="False"/> |
643 |
| - <Setter Property="wpf:TextFieldAssist.TextBoxViewMargin" Value="1 0 1 0" /> |
644 |
| - <Setter Property="Template"> |
645 |
| - <Setter.Value> |
646 |
| - <ControlTemplate TargetType="{x:Type TextBox}"> |
647 |
| - <Grid> |
648 |
| - <ScrollViewer x:Name="PART_ContentHost" Focusable="false" HorizontalScrollBarVisibility="Hidden" VerticalScrollBarVisibility="Hidden" |
649 |
| - /> |
650 |
| - </Grid> |
651 |
| - </ControlTemplate> |
652 |
| - </Setter.Value> |
653 |
| - </Setter> |
654 |
| - </Style> |
655 |
| - |
656 | 656 | <Style x:Key="MaterialDesignComboBox" TargetType="{x:Type ComboBox}">
|
657 | 657 | <!--Setter Property="FocusVisualStyle" Value="{StaticResource FocusVisual}"/-->
|
658 | 658 | <Setter Property="FocusVisualStyle" Value="{x:Null}"/>
|
|
0 commit comments