<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"> <ControlTemplate TargetType="Button" x:Key="btnTemplate"> <Border TextBlock.Foreground="{TemplateBinding Foreground}" x:Name="Border" CornerRadius="0" BorderThickness="0" Background="{TemplateBinding Background}"> <ContentPresenter Margin="0,0,0,0" HorizontalAlignment="Center" VerticalAlignment="Center" RecognizesAccessKey="True" /> </Border> </ControlTemplate> <Style TargetType="Button" x:Key="BtnHomepageStyle"> <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" Background="{TemplateBinding Background}" Width="34" Height="32"/> <Border x:Name="bdr2" Visibility="Collapsed" Background="{TemplateBinding Tag}" Width="34" Height="32"/> </Grid> <TextBlock Text="{TemplateBinding Content}" FontSize="{TemplateBinding FontSize}" Foreground="{TemplateBinding Foreground}" Grid.Row="1" HorizontalAlignment="Center" VerticalAlignment="Center" /> </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 TargetType="Button" x:Key="BtnHomepageStartStyle"> <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" Visibility="Hidden" Width="23" Height="23"> <Border.Background> <ImageBrush ImageSource="/PipeGallery;component/Image/b_icon7.png"/> </Border.Background> </Border> <Border x:Name="bdr3" Visibility="Hidden" Width="34" Height="32"> <Border.Background> <ImageBrush ImageSource="/PipeGallery;component/Image/b_icon5_unable.png"/> </Border.Background> </Border> </Grid> <TextBlock Text="{TemplateBinding Content}" FontSize="{TemplateBinding FontSize}" Foreground="{TemplateBinding Foreground}" Grid.Row="1" HorizontalAlignment="Center" VerticalAlignment="Center" /> </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 TargetType="Button" x:Key="BtnListStyle"> <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 TargetType="Button" x:Key="BtnCloseStyle"> <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 TargetType="Button" x:Key="BtnCloseStyle3"> <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 TargetType="Button" x:Key="KeyboardBtnCloseStyle"> <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 TargetType="Button" x:Key="BtnShutdownStyle"> <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 TargetType="Button" x:Key="BtnReturnStyle"> <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 Orientation="Horizontal" HorizontalAlignment="Center"> <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" Text="返回" FontSize="14" Foreground="#949494" HorizontalAlignment="Center" VerticalAlignment="Center" Margin="0,0,3,0" /> </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 TargetType="Button" x:Key="BtnCommonStyle"> <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 Orientation="Horizontal" HorizontalAlignment="Center"> <Grid Width="18" Height="18" Margin="0,0,5,0"> <Border x:Name="icon_g" Background="{TemplateBinding Background}"> </Border> <Border x:Name="icon_w" Visibility="Hidden" Background="{TemplateBinding Tag}"> </Border> </Grid> <TextBlock x:Name="txt" Text="{TemplateBinding Content}" FontSize="{TemplateBinding FontSize}" Foreground="#949494" HorizontalAlignment="Center" VerticalAlignment="Center" Margin="0,0,3,0" /> </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 TargetType="Button" x:Key="BtnCommonStyle2"> <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 TargetType="Button" x:Key="BtnCommonStyle3"> <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" Text="{TemplateBinding Content}" FontSize="{TemplateBinding FontSize}" Foreground="#949494" HorizontalAlignment="Center" VerticalAlignment="Center" Margin="0,0,0,0" /> </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 TargetType="Button" x:Key="BtnCommonStyle4"> <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" Text="{TemplateBinding Content}" FontSize="{TemplateBinding FontSize}" Foreground="#ffffff" HorizontalAlignment="Center" VerticalAlignment="Center" Margin="0,0,0,0" /> </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 TargetType="Button" x:Key="BtnCommonStyle5"> <Setter Property="Focusable" Value="False"/> <Setter Property="Margin" Value="4,0,0,0"/> <Setter Property="Template"> <Setter.Value> <ControlTemplate TargetType="Button" > <Grid Height="28" Width="30" x:Name="grid"> <Image x:Name="img" Source="/PipeGallery;component/Image/icon_pic1.png" Height="28" Width="30"/> </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 TargetType="Button" x:Key="BtnCommonStyle6"> <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 Orientation="Horizontal" HorizontalAlignment="Center"> <Grid Width="18" Height="18" Margin="0,0,5,0"> <Border x:Name="icon_g" Background="{TemplateBinding Background}"> </Border> <Border x:Name="icon_w" Visibility="Hidden" Background="{TemplateBinding Tag}"> </Border> </Grid> <TextBlock x:Name="txt" Text="{TemplateBinding Content}" FontSize="{TemplateBinding FontSize}" Foreground="#ffffff" HorizontalAlignment="Center" VerticalAlignment="Center" Margin="0,0,3,0" /> </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>