70 lines
3.6 KiB
XML
70 lines
3.6 KiB
XML
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
|
|
|
|
<ResourceDictionary.MergedDictionaries>
|
|
<ResourceDictionary Source="GenericLight.xaml"/>
|
|
<ResourceDictionary Source="VSEditor.xaml"/>
|
|
<ResourceDictionary Source="Window.xaml"/>
|
|
<ResourceDictionary Source="UserControl.xaml"/>
|
|
</ResourceDictionary.MergedDictionaries>
|
|
|
|
<Style TargetType="UserControl">
|
|
<Setter Property="Background" Value="White"/>
|
|
</Style>
|
|
|
|
<Style TargetType="{x:Type RadioButton}" BasedOn="{StaticResource {x:Type RadioButton}}">
|
|
<Setter Property="Foreground" Value="White"/>
|
|
</Style>
|
|
|
|
<SolidColorBrush x:Key="WindowBackgroundBrush" Color="#FF252525" />
|
|
<ControlTemplate x:Key="ComboBoxToggleButton" TargetType="ToggleButton">
|
|
<Grid Background="#FF252525">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition />
|
|
<ColumnDefinition Width="20" />
|
|
</Grid.ColumnDefinitions>
|
|
<Border x:Name="Border" Grid.ColumnSpan="2" CornerRadius="0" BorderThickness="1" />
|
|
<Border Grid.Column="0" CornerRadius="2,0,0,2" Margin="0" Background="#FF252525" BorderThickness="0,0,1,0" />
|
|
<Path x:Name="Arrow" Grid.Column="1" HorizontalAlignment="Center" VerticalAlignment="Center" Data="M 0 0 L 4 4 L 8 0 Z" Fill="White"/>
|
|
</Grid>
|
|
</ControlTemplate>
|
|
|
|
<Style x:Key="{x:Type ComboBox}" TargetType="ComboBox" BasedOn="{StaticResource {x:Type ComboBox}}">
|
|
<Setter Property="Template">
|
|
<Setter.Value>
|
|
<ControlTemplate TargetType="ComboBox">
|
|
<Grid>
|
|
<ToggleButton Name="ToggleButton" Template="{StaticResource ComboBoxToggleButton}" Grid.Column="2" Focusable="false"
|
|
IsChecked="{Binding Path=IsDropDownOpen,Mode=TwoWay,RelativeSource={RelativeSource TemplatedParent}}" ClickMode="Press">
|
|
</ToggleButton>
|
|
<ContentPresenter Name="ContentSite" IsHitTestVisible="False" Margin="3,3,23,3" VerticalAlignment="Center" HorizontalAlignment="Left" />
|
|
<TextBox x:Name="PART_EditableTextBox" Style="{x:Null}" Template="{StaticResource ComboBoxTextBox}" HorizontalAlignment="Left" VerticalAlignment="Center"
|
|
Margin="3,3,23,3"
|
|
Focusable="True"
|
|
Background="Transparent"
|
|
Visibility="Hidden"
|
|
IsReadOnly="{TemplateBinding IsReadOnly}"/>
|
|
<Popup
|
|
Name="Popup"
|
|
Placement="Bottom"
|
|
IsOpen="{TemplateBinding IsDropDownOpen}"
|
|
AllowsTransparency="True"
|
|
Focusable="False"
|
|
PopupAnimation="Slide">
|
|
<Grid
|
|
Name="DropDown"
|
|
SnapsToDevicePixels="True"
|
|
MinWidth="{TemplateBinding ActualWidth}"
|
|
MaxHeight="{TemplateBinding MaxDropDownHeight}">
|
|
<Border x:Name="DropDownBorder" Background="{StaticResource WindowBackgroundBrush}" BorderThickness="0.1"/>
|
|
<ScrollViewer Margin="4,6,4,6" SnapsToDevicePixels="True">
|
|
<StackPanel IsItemsHost="True" KeyboardNavigation.DirectionalNavigation="Contained" />
|
|
</ScrollViewer>
|
|
</Grid>
|
|
</Popup>
|
|
</Grid>
|
|
</ControlTemplate>
|
|
</Setter.Value>
|
|
</Setter>
|
|
</Style>
|
|
</ResourceDictionary> |