123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163 |
- <ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:local="clr-namespace:vCloudUploaderDemo.Resources">
- <Style TargetType="{x:Type Button}">
- <Setter Property="IsEnabled"
- Value="true" />
- <Setter Property="IsTabStop"
- Value="true" />
- <Setter Property="Foreground"
- Value="#FF313131" />
- <Setter Property="MinWidth"
- Value="5" />
- <Setter Property="MinHeight"
- Value="5" />
- <Setter Property="Width"
- Value="80"></Setter>
- <Setter Property="Height"
- Value="auto"></Setter>
- <Setter Property="Margin"
- Value="5" />
- <Setter Property="HorizontalAlignment"
- Value="Center"></Setter>
- <Setter Property="VerticalAlignment"
- Value="Center"></Setter>
- <Setter Property="HorizontalContentAlignment"
- Value="Center" />
- <Setter Property="VerticalContentAlignment"
- Value="Center" />
- <Setter Property="Cursor"
- Value="Arrow" />
- <Setter Property="FontSize"
- Value="11" />
- <Setter Property="Height"
- Value="25" />
- <Setter Property="Foreground"
- Value="#FF2300FF" />
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="{x:Type Button}">
- <Grid>
- <Border x:Name="SEL"
- Opacity="0"
- BorderBrush="Green"
- CornerRadius="3"
- BorderThickness="1"
- Background="Transparent" />
- <Border x:Name="IND"
- Opacity="1"
- CornerRadius="3"
- BorderBrush="Green"
- BorderThickness="1"
- Background="{TemplateBinding Background}" />
- <ContentPresenter HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
- Margin="{TemplateBinding Padding}"
- RecognizesAccessKey="True"
- SnapsToDevicePixels="true"
- VerticalAlignment="{TemplateBinding VerticalContentAlignment}" />
- </Grid>
- <ControlTemplate.Triggers>
- <Trigger Property="IsMouseOver"
- Value="true">
- <Setter Property="Cursor"
- Value="Hand" />
- </Trigger>
- <Trigger Property="IsPressed"
- Value="true">
- <Setter Property="Opacity"
- TargetName="SEL"
- Value="1" />
- <Setter Property="Opacity"
- TargetName="IND"
- Value="0.8"></Setter>
- <Setter Property="BorderThickness"
- TargetName="SEL"
- Value="3"></Setter>
- </Trigger>
- <Trigger Property="IsEnabled"
- Value="false">
- <Setter Property="Foreground"
- Value="#ADADAD" />
- </Trigger>
- </ControlTemplate.Triggers>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
- <Style TargetType="{x:Type DockPanel}">
- <Setter Property="MinWidth" Value="500" />
- <Setter Property="Margin" Value="5" />
- </Style>
- <Style TargetType="ComboBox">
- <Setter Property="VerticalAlignment" Value="Center"></Setter>
- <Setter Property="Margin" Value="5"></Setter>
- <Setter Property="Height" Value="25" />
- </Style>
- <Style TargetType="TextBox">
- <Setter Property="HorizontalAlignment" Value="Stretch"></Setter>
- <Setter Property="HorizontalContentAlignment" Value="Left"></Setter>
- <Setter Property="VerticalContentAlignment" Value="Center"></Setter>
- <Setter Property="Margin" Value="5"></Setter>
- </Style>
- <Style x:Key="MultiLine.Style" TargetType="TextBox"
- BasedOn="{StaticResource {x:Type TextBox}}">
- <Setter Property="VerticalContentAlignment" Value="Top"></Setter>
- <Setter Property="AcceptsReturn" Value="True"></Setter>
- <Setter Property="TextWrapping" Value="Wrap"></Setter>
- <Setter Property="VerticalScrollBarVisibility" Value="Auto"></Setter>
- </Style>
- <Style TargetType="CheckBox">
- <Setter Property="VerticalContentAlignment" Value="Center"></Setter>
- <Setter Property="Cursor" Value="Hand"></Setter>
- <Setter Property="Margin" Value="5"></Setter>
- </Style>
- <Style TargetType="DatePicker">
- <Setter Property="VerticalContentAlignment" Value="Center"></Setter>
- <Setter Property="Height" Value="24"></Setter>
- <Setter Property="Margin" Value="5"></Setter>
- <Setter Property="Padding" Value="0" />
- </Style>
- <Style TargetType="ToolTip">
- <Setter Property ="IsOpen" Value="False" />
- <Setter Property ="ContentTemplate">
- <Setter.Value>
- <DataTemplate>
- <Border BorderThickness="1"
- HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
- <TextBlock Text="{TemplateBinding Content}"
- Margin="2" Height="15" />
- </Border>
- </DataTemplate>
- </Setter.Value>
- </Setter>
- <Style.Triggers>
- <Trigger Property="IsOpen" Value="True">
- <Trigger.EnterActions>
- <BeginStoryboard>
- <Storyboard>
- <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Visibility" Duration="0:0:3">
- <DiscreteObjectKeyFrame KeyTime ="0:0:0">
- <DiscreteObjectKeyFrame.Value>
- <Visibility>Visible</Visibility>
- </DiscreteObjectKeyFrame.Value>
- </DiscreteObjectKeyFrame>
- <DiscreteObjectKeyFrame KeyTime ="0:0:3">
- <DiscreteObjectKeyFrame.Value>
- <Visibility>Hidden</Visibility>
- </DiscreteObjectKeyFrame.Value>
- </DiscreteObjectKeyFrame>
- </ObjectAnimationUsingKeyFrames>
- </Storyboard>
- </BeginStoryboard>
- </Trigger.EnterActions>
- </Trigger>
- </Style.Triggers>
- </Style>
- </ResourceDictionary>
|