122 lines
6.5 KiB
XML
122 lines
6.5 KiB
XML
<ResourceDictionary
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:conv="clr-namespace:BeWo.Converter"
|
|
xmlns:dx="http://schemas.devexpress.com/winfx/2008/xaml/core"
|
|
xmlns:dxe="http://schemas.devexpress.com/winfx/2008/xaml/editors"
|
|
xmlns:dxei="http://schemas.devexpress.com/winfx/2008/xaml/editors/internal"
|
|
xmlns:dxet="http://schemas.devexpress.com/winfx/2008/xaml/editors/themekeys"
|
|
xmlns:dxmvvm="http://schemas.devexpress.com/winfx/2008/xaml/mvvm"
|
|
xmlns:uc="clr-namespace:BeWo.Controls;assembly=BeWo.Controls">
|
|
<Style x:Key="TitleLabel" TargetType="Label">
|
|
<Setter Property="TextElement.FontSize" Value="16" />
|
|
<Setter Property="TextElement.Foreground" Value="{StaticResource TabItemHotTextBrush}" />
|
|
<Setter Property="TextElement.FontFamily" Value="Microsoft Sans Serif" />
|
|
<Setter Property="Padding" Value="3,0,3,0" />
|
|
<Setter Property="MinHeight" Value="20" />
|
|
<Setter Property="HorizontalAlignment" Value="Center" />
|
|
<Setter Property="Margin" Value="3,-6,3,6" />
|
|
</Style>
|
|
<Style BasedOn="{StaticResource {x:Type uc:NullItemComboBox}}" TargetType="uc:NullItemComboBox">
|
|
<Setter Property="Margin" Value="3" />
|
|
</Style>
|
|
<Style BasedOn="{StaticResource {x:Type ComboBox}}" TargetType="ComboBox">
|
|
<Setter Property="Margin" Value="3" />
|
|
<Setter Property="Height" Value="23" />
|
|
</Style>
|
|
<Style BasedOn="{StaticResource {x:Type CheckBox}}" TargetType="{x:Type CheckBox}">
|
|
<Setter Property="Margin" Value="3" />
|
|
<Setter Property="VerticalAlignment" Value="Center" />
|
|
</Style>
|
|
<!--<Style TargetType="dxe:DateEdit" BasedOn="{StaticResource {x:Type dxe:DateEdit}}" x:Shared="False">
|
|
<Setter Property="Margin" Value="3"/>
|
|
<Setter Property="Height" Value="23"/>
|
|
<Setter Property="AllowDefaultButton" Value="False"/>
|
|
<Setter Property="Buttons">
|
|
<Setter.Value>
|
|
<dxe:ButtonInfoCollection >
|
|
<dxe:ButtonInfo IsDefaultButton="True" x:Shared="False">
|
|
<dxe:ButtonInfo.Template>
|
|
<DataTemplate>
|
|
<ToggleButton x:Name="PART_Item" Style="{StaticResource ComboBoxTransparentButtonStyle}"/>
|
|
</DataTemplate>
|
|
</dxe:ButtonInfo.Template>
|
|
</dxe:ButtonInfo>
|
|
</dxe:ButtonInfoCollection>
|
|
</Setter.Value>
|
|
</Setter>
|
|
</Style>-->
|
|
<Style BasedOn="{StaticResource {x:Type dxe:DateEdit}}" TargetType="{x:Type dxe:DateEdit}">
|
|
<Setter Property="Margin" Value="3" />
|
|
<Setter Property="Padding" Value="1" />
|
|
<Setter Property="Height" Value="23" />
|
|
<Setter Property="Background" Value="{DynamicResource {x:Static SystemColors.WindowBrushKey}}" />
|
|
<Setter Property="BorderBrush" Value="{StaticResource TextBoxBorderBrush}" />
|
|
<Setter Property="BorderThickness" Value="1" />
|
|
<Style.Resources>
|
|
<DataTemplate x:Key="{dxet:ButtonsThemeKey ResourceKey=ToggleButtonInfoTemplate, IsThemeIndependent=True}">
|
|
<dx:ToggleStateButton
|
|
x:Name="PART_Item"
|
|
Margin="2"
|
|
dxei:SetIsCheckedToButtonInfoBehavior.IsEnabled="True"
|
|
IsChecked="{Binding Path=IsChecked, Mode=TwoWay}"
|
|
Style="{StaticResource ComboBoxTransparentButtonStyle}" />
|
|
<DataTemplate.Triggers>
|
|
<DataTrigger Binding="{Binding Path=IsDefaultButton}" Value="True">
|
|
<Setter TargetName="PART_Item" Property="IsChecked" Value="{Binding Path=(dxe:BaseEdit.OwnerEdit).IsPopupOpen, RelativeSource={RelativeSource Self}, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" />
|
|
</DataTrigger>
|
|
<DataTrigger Binding="{Binding Path=IsDefaultButton}" Value="False">
|
|
<Setter TargetName="PART_Item" Property="HandleToggle" Value="False" />
|
|
</DataTrigger>
|
|
</DataTemplate.Triggers>
|
|
</DataTemplate>
|
|
</Style.Resources>
|
|
</Style>
|
|
<Style BasedOn="{StaticResource {x:Type dxe:TextEdit}}" TargetType="{x:Type dxe:TextEdit}">
|
|
<Setter Property="Margin" Value="3" />
|
|
<Setter Property="Height" Value="23" />
|
|
</Style>
|
|
<Style BasedOn="{StaticResource {x:Type Button}}" TargetType="{x:Type Button}">
|
|
<Setter Property="Margin" Value="3" />
|
|
<Setter Property="Visibility" Value="Visible" />
|
|
<Style.Triggers>
|
|
<DataTrigger Binding="{Binding RelativeSource={RelativeSource Self}, Path=IsEnabled}" Value="False">
|
|
<Setter Property="Visibility" Value="Collapsed" />
|
|
</DataTrigger>
|
|
</Style.Triggers>
|
|
</Style>
|
|
<Style BasedOn="{StaticResource {x:Type Label}}" TargetType="{x:Type Label}">
|
|
<Setter Property="IsEnabled" Value="True" />
|
|
<Setter Property="Margin" Value="3" />
|
|
<Setter Property="Padding" Value="3" />
|
|
<Setter Property="VerticalAlignment" Value="Top" />
|
|
</Style>
|
|
<Style BasedOn="{StaticResource {x:Type TextBox}}" TargetType="{x:Type TextBox}">
|
|
<Setter Property="Margin" Value="3" />
|
|
<Setter Property="Padding" Value="3" />
|
|
<Setter Property="VerticalAlignment" Value="Center" />
|
|
<Setter Property="HorizontalAlignment" Value="Stretch" />
|
|
</Style>
|
|
<Style TargetType="RadioButton">
|
|
<Setter Property="Margin" Value="3" />
|
|
<Setter Property="VerticalAlignment" Value="Top" />
|
|
</Style>
|
|
<DataTemplate x:Key="ListItemView">
|
|
<TextBlock
|
|
Text="{Binding Path=., Converter={StaticResource EnumTranslationConverter}}"
|
|
TextWrapping="Wrap"
|
|
ToolTip="{Binding Path=Text, RelativeSource={RelativeSource Self}}" />
|
|
</DataTemplate>
|
|
<Style
|
|
x:Key="EnumTranslationNullItemComboBox"
|
|
BasedOn="{StaticResource {x:Type uc:NullItemComboBox}}"
|
|
TargetType="{x:Type uc:NullItemComboBox}">
|
|
<Setter Property="ItemTemplate" Value="{StaticResource ListItemView}" />
|
|
</Style>
|
|
<Style
|
|
x:Key="EnumTranslationComboBox"
|
|
BasedOn="{StaticResource {x:Type ComboBox}}"
|
|
TargetType="{x:Type ComboBox}">
|
|
<Setter Property="ItemTemplate" Value="{StaticResource ListItemView}" />
|
|
</Style>
|
|
</ResourceDictionary> |