<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"> <ControlTemplate x:Key="btnTemplate" TargetType="Button"> <Border x:Name="Border" Background="{TemplateBinding Background}" BorderThickness="0" CornerRadius="0" TextBlock.Foreground="{TemplateBinding Foreground}"> <ContentPresenter Margin="0,0,0,0" HorizontalAlignment="Center" VerticalAlignment="Center" RecognizesAccessKey="True" /> </Border> </ControlTemplate> <Style x:Key="BtnHomepageStyle" TargetType="Button"> <Setter Property="FocusVisualStyle" Value="{x:Null}" /> <Setter Property="Template" Value="{StaticResource btnTemplate}" /> <Setter Property="Height" Value="100" /> <Setter Property="Width" Value="80" /> <Setter Property="BorderThickness" Value="0" /> <Setter Property="Foreground" Value="#989898" /> <Setter Property="FontSize" Value="14" /> <Setter Property="Template"> <Setter.Value> <ControlTemplate TargetType="Button"> <Grid> <Grid Width="80" Height="100"> <Grid.RowDefinitions> <RowDefinition Height="4*" /> <RowDefinition Height="*" /> </Grid.RowDefinitions> <Grid x:Name="bdr" Grid.Row="0" Width="63" Height="63"> <Grid.Background> <ImageBrush ImageSource="/PipeGallery;component/Image/btn_icon2.png" /> </Grid.Background> <Border x:Name="bdr1" Width="34" Height="32" Background="{TemplateBinding Background}" /> <Border x:Name="bdr2" Width="34" Height="32" Background="{TemplateBinding Tag}" Visibility="Collapsed" /> </Grid> <TextBlock Grid.Row="1" HorizontalAlignment="Center" VerticalAlignment="Center" FontSize="{TemplateBinding FontSize}" Foreground="{TemplateBinding Foreground}" Text="{TemplateBinding Content}" /> </Grid> </Grid> <ControlTemplate.Triggers> <Trigger Property="IsMouseOver" Value="true"> <Setter TargetName="bdr" Property="Background"> <Setter.Value> <ImageBrush ImageSource="/PipeGallery;component/Image/btn_icon02.png" /> </Setter.Value> </Setter> </Trigger> <Trigger Property="IsEnabled" Value="false"> <Setter TargetName="bdr" Property="Background"> <Setter.Value> <ImageBrush ImageSource="/PipeGallery;component/Image/btn_icon3.png" /> </Setter.Value> </Setter> <Setter TargetName="bdr1" Property="Visibility" Value="Collapsed" /> <Setter TargetName="bdr2" Property="Visibility" Value="Visible" /> </Trigger> </ControlTemplate.Triggers> </ControlTemplate> </Setter.Value> </Setter> </Style> <Style x:Key="BtnHomepageStartStyle" TargetType="Button"> <Setter Property="FocusVisualStyle" Value="{x:Null}" /> <Setter Property="Template" Value="{StaticResource btnTemplate}" /> <Setter Property="Height" Value="100" /> <Setter Property="Width" Value="80" /> <Setter Property="BorderThickness" Value="0" /> <Setter Property="Foreground" Value="#989898" /> <Setter Property="FontSize" Value="14" /> <Setter Property="Template"> <Setter.Value> <ControlTemplate TargetType="Button"> <Grid> <Grid Width="80" Height="100"> <Grid.RowDefinitions> <RowDefinition Height="4*" /> <RowDefinition Height="*" /> </Grid.RowDefinitions> <Grid x:Name="bdr" Grid.Row="0" Width="63" Height="63"> <Grid.Background> <ImageBrush ImageSource="/PipeGallery;component/Image/btn_icon2.png" /> </Grid.Background> <Border x:Name="bdr1" Width="34" Height="32"> <Border.Background> <ImageBrush ImageSource="/PipeGallery;component/Image/b_icon5.png" /> </Border.Background> </Border> <Border x:Name="bdr2" Width="23" Height="23" Visibility="Hidden"> <Border.Background> <ImageBrush ImageSource="/PipeGallery;component/Image/b_icon7.png" /> </Border.Background> </Border> <Border x:Name="bdr3" Width="34" Height="32" Visibility="Hidden"> <Border.Background> <ImageBrush ImageSource="/PipeGallery;component/Image/b_icon5_unable.png" /> </Border.Background> </Border> </Grid> <TextBlock Grid.Row="1" HorizontalAlignment="Center" VerticalAlignment="Center" FontSize="{TemplateBinding FontSize}" Foreground="{TemplateBinding Foreground}" Text="{TemplateBinding Content}" /> </Grid> </Grid> <ControlTemplate.Triggers> <Trigger Property="IsMouseOver" Value="true"> <Setter TargetName="bdr" Property="Background"> <Setter.Value> <ImageBrush ImageSource="/PipeGallery;component/Image/btn_icon02.png" /> </Setter.Value> </Setter> </Trigger> <Trigger Property="IsEnabled" Value="false"> <Setter TargetName="bdr" Property="Background"> <Setter.Value> <ImageBrush ImageSource="/PipeGallery;component/Image/btn_icon3.png" /> </Setter.Value> </Setter> <Setter TargetName="bdr1" Property="Visibility" Value="Hidden" /> <Setter TargetName="bdr2" Property="Visibility" Value="Hidden" /> <Setter TargetName="bdr3" Property="Visibility" Value="Visible" /> </Trigger> <Trigger Property="Tag" Value="1"> <Setter TargetName="bdr1" Property="Visibility" Value="Hidden" /> <Setter TargetName="bdr2" Property="Visibility" Value="Visible" /> </Trigger> <Trigger Property="Tag" Value="0"> <Setter TargetName="bdr1" Property="Visibility" Value="Visible" /> <Setter TargetName="bdr2" Property="Visibility" Value="Hidden" /> </Trigger> </ControlTemplate.Triggers> </ControlTemplate> </Setter.Value> </Setter> </Style> <Style x:Key="BtnListStyle" TargetType="Button"> <Setter Property="FocusVisualStyle" Value="{x:Null}" /> <Setter Property="Template" Value="{StaticResource btnTemplate}" /> <Setter Property="BorderThickness" Value="0" /> <Setter Property="Background"> <Setter.Value> <ImageBrush ImageSource="/PipeGallery;component/Image/homepage_icon11.png" /> </Setter.Value> </Setter> <Style.Triggers> <Trigger Property="IsMouseOver" Value="true"> <Setter Property="Background"> <Setter.Value> <ImageBrush ImageSource="/PipeGallery;component/Image/homepage_icon11.png" /> </Setter.Value> </Setter> </Trigger> </Style.Triggers> </Style> <Style x:Key="BtnCloseStyle" TargetType="Button"> <Setter Property="FocusVisualStyle" Value="{x:Null}" /> <Setter Property="Template" Value="{StaticResource btnTemplate}" /> <Setter Property="Width" Value="20" /> <Setter Property="Height" Value="18" /> <Setter Property="BorderThickness" Value="0" /> <Setter Property="Background"> <Setter.Value> <ImageBrush ImageSource="/PipeGallery;component/Image/close.png" /> </Setter.Value> </Setter> <Style.Triggers> <Trigger Property="IsMouseOver" Value="true"> <Setter Property="Background"> <Setter.Value> <ImageBrush ImageSource="/PipeGallery;component/Image/close.png" /> </Setter.Value> </Setter> </Trigger> </Style.Triggers> </Style> <Style x:Key="BtnCloseStyle3" TargetType="Button"> <Setter Property="FocusVisualStyle" Value="{x:Null}" /> <Setter Property="Template" Value="{StaticResource btnTemplate}" /> <Setter Property="Width" Value="78" /> <Setter Property="Height" Value="72" /> <Setter Property="BorderThickness" Value="0" /> <Setter Property="Background"> <Setter.Value> <ImageBrush ImageSource="/PipeGallery;component/Image/close3.png" /> </Setter.Value> </Setter> <Style.Triggers> <Trigger Property="IsMouseOver" Value="true"> <Setter Property="Background"> <Setter.Value> <ImageBrush ImageSource="/PipeGallery;component/Image/close3.png" /> </Setter.Value> </Setter> </Trigger> </Style.Triggers> </Style> <Style x:Key="KeyboardBtnCloseStyle" TargetType="Button"> <Setter Property="FocusVisualStyle" Value="{x:Null}" /> <Setter Property="Template" Value="{StaticResource btnTemplate}" /> <Setter Property="Width" Value="17" /> <Setter Property="Height" Value="17" /> <Setter Property="BorderThickness" Value="0" /> <Setter Property="Background"> <Setter.Value> <ImageBrush ImageSource="/PipeGallery;component/Image/close2.png" /> </Setter.Value> </Setter> </Style> <Style x:Key="BtnShutdownStyle" TargetType="Button"> <Setter Property="FocusVisualStyle" Value="{x:Null}" /> <Setter Property="Template" Value="{StaticResource btnTemplate}" /> <Setter Property="Width" Value="25" /> <Setter Property="Height" Value="25" /> <Setter Property="BorderThickness" Value="0" /> <Setter Property="Background"> <Setter.Value> <ImageBrush ImageSource="/PipeGallery;component/Image/btn_shutdown.png" /> </Setter.Value> </Setter> </Style> <Style x:Key="BtnReturnStyle" TargetType="Button"> <Setter Property="FocusVisualStyle" Value="{x:Null}" /> <Setter Property="Template" Value="{StaticResource btnTemplate}" /> <Setter Property="Height" Value="40" /> <Setter Property="Width" Value="80" /> <Setter Property="BorderThickness" Value="0" /> <Setter Property="Foreground" Value="#545454" /> <Setter Property="FontSize" Value="14" /> <Setter Property="Template"> <Setter.Value> <ControlTemplate TargetType="Button"> <Grid> <Border x:Name="bdr" Width="76" Height="38"> <Border.Background> <ImageBrush ImageSource="/PipeGallery;component/Image/btn_03.png" /> </Border.Background> <StackPanel HorizontalAlignment="Center" Orientation="Horizontal"> <Border x:Name="icon_g" Width="18" Height="18" Margin="0,0,5,0"> <Border.Background> <ImageBrush ImageSource="/PipeGallery;component/Image/return_g.png" /> </Border.Background> </Border> <TextBlock x:Name="txt" Margin="0,0,3,0" HorizontalAlignment="Center" VerticalAlignment="Center" FontSize="14" Foreground="#949494" Text="返回" /> </StackPanel> </Border> </Grid> <ControlTemplate.Triggers> <Trigger Property="IsMouseOver" Value="true"> <Setter TargetName="bdr" Property="Background"> <Setter.Value> <ImageBrush ImageSource="/PipeGallery;component/Image/btn_04.png" /> </Setter.Value> </Setter> <Setter TargetName="txt" Property="Foreground" Value="#ffffff" /> <Setter TargetName="icon_g" Property="Background"> <Setter.Value> <ImageBrush ImageSource="/PipeGallery;component/Image/return_w.png" /> </Setter.Value> </Setter> </Trigger> </ControlTemplate.Triggers> </ControlTemplate> </Setter.Value> </Setter> </Style> <Style x:Key="BtnCommonStyle" TargetType="Button"> <Setter Property="FocusVisualStyle" Value="{x:Null}" /> <Setter Property="Template" Value="{StaticResource btnTemplate}" /> <Setter Property="Height" Value="38" /> <Setter Property="Width" Value="101" /> <Setter Property="BorderThickness" Value="0" /> <Setter Property="Foreground" Value="#545454" /> <Setter Property="FontSize" Value="14" /> <Setter Property="Template"> <Setter.Value> <ControlTemplate TargetType="Button"> <Grid> <Border x:Name="bdr"> <Border.Background> <ImageBrush ImageSource="/PipeGallery;component/Image/btn_05.png" /> </Border.Background> <StackPanel HorizontalAlignment="Center" Orientation="Horizontal"> <Grid Width="18" Height="18" Margin="0,0,5,0"> <Border x:Name="icon_g" Background="{TemplateBinding Background}" /> <Border x:Name="icon_w" Background="{TemplateBinding Tag}" Visibility="Hidden" /> </Grid> <TextBlock x:Name="txt" Margin="0,0,3,0" HorizontalAlignment="Center" VerticalAlignment="Center" FontSize="{TemplateBinding FontSize}" Foreground="#949494" Text="{TemplateBinding Content}" /> </StackPanel> </Border> </Grid> <ControlTemplate.Triggers> <Trigger Property="IsMouseOver" Value="true"> <Setter TargetName="bdr" Property="Background"> <Setter.Value> <ImageBrush ImageSource="/PipeGallery;component/Image/btn_06.png" /> </Setter.Value> </Setter> <Setter TargetName="txt" Property="Foreground" Value="#ffffff" /> <Setter TargetName="icon_g" Property="Visibility" Value="Hidden" /> <Setter TargetName="icon_w" Property="Visibility" Value="Visible" /> </Trigger> <Trigger Property="IsEnabled" Value="false"> <Setter TargetName="bdr" Property="Background"> <Setter.Value> <ImageBrush ImageSource="/PipeGallery;component/Image/btn_07.png" /> </Setter.Value> </Setter> </Trigger> </ControlTemplate.Triggers> </ControlTemplate> </Setter.Value> </Setter> </Style> <Style x:Key="BtnCommonStyle2" TargetType="Button"> <Setter Property="FocusVisualStyle" Value="{x:Null}" /> <Setter Property="Template" Value="{StaticResource btnTemplate}" /> <Setter Property="Width" Value="20" /> <Setter Property="Height" Value="18" /> <Setter Property="BorderThickness" Value="0" /> </Style> <Style x:Key="BtnCommonStyle3" TargetType="Button"> <Setter Property="FocusVisualStyle" Value="{x:Null}" /> <Setter Property="Template" Value="{StaticResource btnTemplate}" /> <Setter Property="Height" Value="38" /> <Setter Property="Width" Value="101" /> <Setter Property="BorderThickness" Value="0" /> <Setter Property="Foreground" Value="#545454" /> <Setter Property="FontSize" Value="14" /> <Setter Property="Template"> <Setter.Value> <ControlTemplate TargetType="Button"> <Grid> <Border x:Name="bdr"> <Border.Background> <ImageBrush ImageSource="/PipeGallery;component/Image/btn_05.png" /> </Border.Background> <TextBlock x:Name="txt" Margin="0,0,0,0" HorizontalAlignment="Center" VerticalAlignment="Center" FontSize="{TemplateBinding FontSize}" Foreground="#949494" Text="{TemplateBinding Content}" /> </Border> </Grid> <ControlTemplate.Triggers> <Trigger Property="IsMouseOver" Value="true"> <Setter TargetName="bdr" Property="Background"> <Setter.Value> <ImageBrush ImageSource="/PipeGallery;component/Image/btn_06.png" /> </Setter.Value> </Setter> <Setter TargetName="txt" Property="Foreground" Value="#ffffff" /> </Trigger> </ControlTemplate.Triggers> </ControlTemplate> </Setter.Value> </Setter> </Style> <Style x:Key="BtnCommonStyle4" TargetType="Button"> <Setter Property="FocusVisualStyle" Value="{x:Null}" /> <Setter Property="Template" Value="{StaticResource btnTemplate}" /> <Setter Property="Height" Value="38" /> <Setter Property="Width" Value="101" /> <Setter Property="BorderThickness" Value="0" /> <Setter Property="Foreground" Value="#545454" /> <Setter Property="FontSize" Value="14" /> <Setter Property="Template"> <Setter.Value> <ControlTemplate TargetType="Button"> <Grid> <Border x:Name="bdr"> <Border.Background> <ImageBrush ImageSource="/PipeGallery;component/Image/btn_06.png" /> </Border.Background> <TextBlock x:Name="txt" Margin="0,0,0,0" HorizontalAlignment="Center" VerticalAlignment="Center" FontSize="{TemplateBinding FontSize}" Foreground="#ffffff" Text="{TemplateBinding Content}" /> </Border> </Grid> <ControlTemplate.Triggers> <Trigger Property="IsMouseOver" Value="true"> <Setter TargetName="bdr" Property="Background"> <Setter.Value> <ImageBrush ImageSource="/PipeGallery;component/Image/btn_06.png" /> </Setter.Value> </Setter> <Setter TargetName="txt" Property="Foreground" Value="#ffffff" /> </Trigger> </ControlTemplate.Triggers> </ControlTemplate> </Setter.Value> </Setter> </Style> <Style x:Key="BtnCommonStyle5" TargetType="Button"> <Setter Property="Focusable" Value="False" /> <Setter Property="Margin" Value="4,0,0,0" /> <Setter Property="Template"> <Setter.Value> <ControlTemplate TargetType="Button"> <Grid x:Name="grid" Width="30" Height="28"> <Image x:Name="img" Width="30" Height="28" Source="/PipeGallery;component/Image/icon_pic1.png" /> </Grid> <ControlTemplate.Triggers> <MultiTrigger> <MultiTrigger.Conditions> <Condition Property="IsMouseOver" Value="true" /> </MultiTrigger.Conditions> <Setter TargetName="img" Property="Source" Value="/PipeGallery;component/Image/icon_pic2.png" /> </MultiTrigger> </ControlTemplate.Triggers> </ControlTemplate> </Setter.Value> </Setter> </Style> <Style x:Key="BtnCommonStyle6" TargetType="Button"> <Setter Property="FocusVisualStyle" Value="{x:Null}" /> <Setter Property="Template" Value="{StaticResource btnTemplate}" /> <Setter Property="Height" Value="38" /> <Setter Property="Width" Value="101" /> <Setter Property="BorderThickness" Value="0" /> <Setter Property="Foreground" Value="#ffffff" /> <Setter Property="FontSize" Value="14" /> <Setter Property="Template"> <Setter.Value> <ControlTemplate TargetType="Button"> <Grid> <Border x:Name="bdr"> <Border.Background> <ImageBrush ImageSource="/PipeGallery;component/Image/btn_06.png" /> </Border.Background> <StackPanel HorizontalAlignment="Center" Orientation="Horizontal"> <Grid Width="18" Height="18" Margin="0,0,5,0"> <Border x:Name="icon_g" Background="{TemplateBinding Background}" /> <Border x:Name="icon_w" Background="{TemplateBinding Tag}" Visibility="Hidden" /> </Grid> <TextBlock x:Name="txt" Margin="0,0,3,0" HorizontalAlignment="Center" VerticalAlignment="Center" FontSize="{TemplateBinding FontSize}" Foreground="#ffffff" Text="{TemplateBinding Content}" /> </StackPanel> </Border> </Grid> <ControlTemplate.Triggers> <Trigger Property="IsMouseOver" Value="true"> <Setter TargetName="bdr" Property="Background"> <Setter.Value> <ImageBrush ImageSource="/PipeGallery;component/Image/btn_05.png" /> </Setter.Value> </Setter> <Setter TargetName="txt" Property="Foreground" Value="#949494" /> <Setter TargetName="icon_g" Property="Visibility" Value="Hidden" /> <Setter TargetName="icon_w" Property="Visibility" Value="Visible" /> </Trigger> <Trigger Property="IsEnabled" Value="false"> <Setter TargetName="bdr" Property="Background"> <Setter.Value> <ImageBrush ImageSource="/PipeGallery;component/Image/btn_07.png" /> </Setter.Value> </Setter> <Setter TargetName="txt" Property="Foreground" Value="#949494" /> <Setter TargetName="icon_g" Property="Visibility" Value="Hidden" /> <Setter TargetName="icon_w" Property="Visibility" Value="Visible" /> </Trigger> </ControlTemplate.Triggers> </ControlTemplate> </Setter.Value> </Setter> </Style> </ResourceDictionary>