12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970 |
- <UserControl x:Class="NEIntelligentControl2.Views.AGC.DynamicAGCCard"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
- xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
- xmlns:local="clr-namespace:NEIntelligentControl2.Views.AGC"
- mc:Ignorable="d"
- d:DesignHeight="450" d:DesignWidth="800" Unloaded="UserControl_Unloaded" Loaded="UserControl_Loaded">
- <UserControl.Resources>
- <ResourceDictionary>
- <ResourceDictionary.MergedDictionaries>
- <ResourceDictionary Source="/Res/HomePageRes.xaml"/>
- </ResourceDictionary.MergedDictionaries>
- <Style x:Key="ArrowButtonStyleLeft" TargetType="{x:Type Button}">
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="{x:Type Button}">
- <Border Background="#01FFFFFF" VerticalAlignment="Center">
- <ContentControl x:Name="cc" Template="{StaticResource left_arrow}" Height="30"/>
- </Border>
- <ControlTemplate.Triggers>
- <Trigger Property="IsMouseOver" Value="true">
- <Setter Property="Template" TargetName="cc" Value="{StaticResource left_arrow2}"/>
- </Trigger>
- </ControlTemplate.Triggers>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
- <Style x:Key="ArrowButtonStyleRight" TargetType="{x:Type Button}">
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="{x:Type Button}">
- <Border Background="#01FFFFFF" VerticalAlignment="Center">
- <ContentControl x:Name="cc" Template="{StaticResource right_arrow}" Height="30"/>
- </Border>
- <ControlTemplate.Triggers>
- <Trigger Property="IsMouseOver" Value="true">
- <Setter Property="Template" TargetName="cc" Value="{StaticResource right_arrow2}"/>
- </Trigger>
- </ControlTemplate.Triggers>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
- </ResourceDictionary>
- </UserControl.Resources>
- <Grid Margin="0,0">
- <Grid.RowDefinitions>
- <RowDefinition/>
- </Grid.RowDefinitions>
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="Auto"/>
- <ColumnDefinition/>
- <ColumnDefinition Width="Auto"/>
- </Grid.ColumnDefinitions>
- <Grid x:Name="_GDMain" Grid.Column="1"/>
- <Button Style="{DynamicResource ArrowButtonStyleLeft}" Tag="leftbutton" Click="Button_Click"/>
- <Button x:Name="_BTRight" Style="{DynamicResource ArrowButtonStyleRight}" Tag="rightbutton" Click="Button_Click" Grid.Column="2"/>
- <local:DotView x:Name="_DVMain" Grid.ColumnSpan="3" Changed="DotView_Changed" VerticalAlignment="Bottom" Margin="0,17"/>
- </Grid>
- </UserControl>
|