| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129 |
- <ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:local="clr-namespace:MuchInfo.Chart.WPF"
- xmlns:xctk="http://schemas.xceed.com/wpf/xaml/toolkit">
- <Style TargetType="{x:Type local:Chart}">
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="{x:Type local:Chart}">
- <ControlTemplate.Resources>
- <Style x:Key="LeftArrowButton" TargetType="{x:Type Button}">
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="{x:Type Button}">
- <Grid>
- <Path x:Name="arrowLeft"
- Width="{TemplateBinding Width}"
- Height="{TemplateBinding Height}"
- Data="M1,5 L9,0 L9,10 L1,5"
- RenderTransformOrigin="0.5,0.5"
- Stretch="Fill">
- <Path.RenderTransform>
- <TransformGroup>
- <ScaleTransform ScaleX="1" ScaleY="-1" />
- <SkewTransform AngleX="0" AngleY="0" />
- <RotateTransform Angle="0" />
- <TranslateTransform />
- </TransformGroup>
- </Path.RenderTransform>
- <Path.Fill>
- <LinearGradientBrush StartPoint="0.5,0" EndPoint="0.5,1">
- <GradientStop Offset="0" Color="#FFB2ADAD" />
- <GradientStop Offset="1" Color="#FFB2ADAD" />
- <GradientStop Offset="0.5" Color="#FF555454" />
- </LinearGradientBrush>
- </Path.Fill>
- </Path>
- </Grid>
- <ControlTemplate.Triggers>
- <Trigger Property="IsMouseOver" Value="True">
- <Setter Property="Cursor" Value="Hand" />
- </Trigger>
- </ControlTemplate.Triggers>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
- </ControlTemplate.Resources>
- <xctk:BusyIndicator x:Name="PART_BusyIndicator">
- <Border BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}">
- <Border.Background>
- <TemplateBinding Property="Background" />
- </Border.Background>
- <Grid Name="PART_MainGrid"
- Margin="5"
- VerticalAlignment="Stretch"
- Background="{TemplateBinding local:Chart.ChartBackground}">
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="Auto" />
- <ColumnDefinition Width="*" />
- <ColumnDefinition Width="Auto" />
- </Grid.ColumnDefinitions>
- <Grid.RowDefinitions>
- <RowDefinition Height="Auto" />
- <RowDefinition Height="Auto" />
- <RowDefinition Height="*" />
- <RowDefinition Height="Auto" />
- <RowDefinition Height="Auto" />
- </Grid.RowDefinitions>
- <StackPanel x:Name="PART_DrawingToolStackPanel"
- Grid.Row="1"
- Grid.RowSpan="3"
- Grid.Column="0"
- Margin="0,2,0,0"
- VerticalAlignment="Stretch"
- Orientation="Vertical"
- Visibility="{TemplateBinding local:Chart.ShowDrawingTool}"
- IsEnabled="{TemplateBinding local:Chart.DrawingToolIsEnabled}"/>
- <Popup x:Name="PART_PointerPopup"
- AllowsTransparency="True"
- IsOpen="false"
- Placement="Relative"
- PlacementTarget="{Binding ElementName=PART_ChartPanesGrid}"
- PopupAnimation="Fade">
- <Border Margin="3,3,0,0"
- Background="{TemplateBinding local:Chart.ChartBackground}"
- BorderBrush="Gray"
- BorderThickness="3"
- CornerRadius="6"
- Padding="6">
- <Grid x:Name="PART_PointerGrid" />
- </Border>
- </Popup>
- <Canvas x:Name="PART_CrossHairGrid"
- Grid.Row="2"
- Grid.Column="1"
- Background="#00000000" />
- <Grid x:Name="PART_ChartPanesGrid"
- Grid.Row="2"
- Grid.Column="1"
- Margin="5"
- ShowGridLines="False">
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="Auto" />
- <ColumnDefinition Width="*" />
- <ColumnDefinition Width="Auto" />
- </Grid.ColumnDefinitions>
- </Grid>
- <StackPanel x:Name="PART_DateChartSliderStackPanel"
- Grid.Row="4"
- Grid.Column="1"
- VerticalAlignment="Stretch"
- Orientation="Vertical" />
- </Grid>
- </Border>
- </xctk:BusyIndicator>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
- </ResourceDictionary>
|