123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124 |
- <UserControl x:Class="Aitex.UI.Charting.View.DataSeriesEdit"
- 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:chartConvert="clr-namespace:Aitex.UI.Charting.Converter"
- mc:Ignorable="d"
- d:DesignHeight="289" d:DesignWidth="838">
- <UserControl.Resources>
- <chartConvert:LineColorConverter x:Key="colorConverter"/>
- <Style TargetType="{x:Type Label}">
- <Setter Property="Foreground" Value="Black"/>
- </Style>
- </UserControl.Resources>
- <DataGrid x:Name="dataGrid_DataList" Grid.Row="1" AutoGenerateColumns="False"
- ItemsSource="{Binding CommonViewModel.RenderableSeries, Mode=TwoWay}" SelectionMode="Extended" SelectionUnit="FullRow">
- <DataGrid.Resources>
- <!--<ObjectDataProvider x:Key="PointDisplayType" MethodName="GetValues" ObjectType="{x:Type zed:SymbolType}">
- <ObjectDataProvider.MethodParameters>
- <x:Type Type="zed:SymbolType"/>
- </ObjectDataProvider.MethodParameters>
- </ObjectDataProvider>-->
- </DataGrid.Resources>
- <DataGrid.Columns>
- <DataGridTemplateColumn Width="65">
- <DataGridTemplateColumn.HeaderTemplate >
- <DataTemplate>
- <TextBlock Text="{DynamicResource GlobalLableVisible}" />
- </DataTemplate>
- </DataGridTemplateColumn.HeaderTemplate>
- <DataGridTemplateColumn.CellTemplate>
- <DataTemplate>
- <CheckBox IsChecked="{Binding IsVisible,Mode=TwoWay}" Tag="{Binding UniqueId}" Checked="OnChangeDrawingItemVisibility" Unchecked="OnChangeDrawingItemVisibility"/>
- </DataTemplate>
- </DataGridTemplateColumn.CellTemplate>
- </DataGridTemplateColumn>
- <DataGridTextColumn Width="200*" Binding="{Binding DataSourceName,Mode=OneWay}" CanUserSort="True" IsReadOnly="True">
- <DataGridTextColumn.HeaderTemplate >
- <DataTemplate>
- <TextBlock Text="{DynamicResource GlobalLableDataSource}" />
- </DataTemplate>
- </DataGridTextColumn.HeaderTemplate>
- <DataGridTextColumn.CellStyle>
- <Style TargetType="DataGridCell">
- <Setter Property="ToolTip" Value="{Binding DataSourceName}" />
- </Style>
- </DataGridTextColumn.CellStyle>
- </DataGridTextColumn>
- <DataGridTextColumn Width="200*" Binding="{Binding SeriesDisplayName,Mode=OneWay}" CanUserSort="True" CanUserReorder="False" IsReadOnly="True">
- <DataGridTextColumn.HeaderTemplate >
- <DataTemplate>
- <TextBlock Text="{DynamicResource GlobalLableDataName}" />
- </DataTemplate>
- </DataGridTextColumn.HeaderTemplate>
- <DataGridTextColumn.CellStyle>
- <Style TargetType="DataGridCell">
- <Setter Property="ToolTip" Value="{Binding SeriesDisplayName}" />
- </Style>
- </DataGridTextColumn.CellStyle>
- </DataGridTextColumn>
- <DataGridTextColumn Width="200*" Binding="{Binding DisplayName,Mode=TwoWay}" CanUserSort="True" IsReadOnly="False">
- <DataGridTextColumn.HeaderTemplate >
- <DataTemplate>
- <TextBlock Text="{DynamicResource GlobalLableChartingName}" />
- </DataTemplate>
- </DataGridTextColumn.HeaderTemplate>
- <DataGridTextColumn.CellStyle>
- <Style TargetType="DataGridCell">
- <Setter Property="ToolTip" Value="{Binding DisplayName}" />
- </Style>
- </DataGridTextColumn.CellStyle>
- </DataGridTextColumn>
- <DataGridTemplateColumn Width="70" CanUserSort="True">
- <DataGridTemplateColumn.HeaderTemplate >
- <DataTemplate>
- <TextBlock Text="{DynamicResource GlobalLableColor}" />
- </DataTemplate>
- </DataGridTemplateColumn.HeaderTemplate>
- <DataGridTemplateColumn.CellTemplate>
- <DataTemplate>
- <Button Focusable="False" FontSize="11" Height="20" Tag="{Binding UniqueId}" Background="{Binding SeriesColor,Mode=TwoWay,Converter={StaticResource colorConverter}}" Click="OnChangeLineColor"/>
- </DataTemplate>
- </DataGridTemplateColumn.CellTemplate>
- </DataGridTemplateColumn>
- <DataGridTextColumn Width="60" Binding="{Binding Factor,Mode=TwoWay}" CanUserSort="True" IsReadOnly="False" >
- <DataGridTextColumn.HeaderTemplate >
- <DataTemplate>
- <TextBlock Text="{DynamicResource GlobalLableFactor}" />
- </DataTemplate>
- </DataGridTextColumn.HeaderTemplate>
- </DataGridTextColumn>
- <DataGridTextColumn Width="60" Binding="{Binding Offset,Mode=TwoWay}" CanUserSort="True" IsReadOnly="False" >
- <DataGridTextColumn.HeaderTemplate >
- <DataTemplate>
- <TextBlock Text="{DynamicResource GlobalLableOffset}" />
- </DataTemplate>
- </DataGridTextColumn.HeaderTemplate>
- </DataGridTextColumn>
- <!--<DataGridComboBoxColumn Width="45" Header="线型" CanUserSort="True" IsReadOnly="False" />-->
- <DataGridTextColumn Width="75" Binding="{Binding LineThickness,Mode=TwoWay}" CanUserSort="True" IsReadOnly="False" >
- <DataGridTextColumn.HeaderTemplate >
- <DataTemplate>
- <TextBlock Text="{DynamicResource GlobalLableThickness}" />
- </DataTemplate>
- </DataGridTextColumn.HeaderTemplate>
- </DataGridTextColumn>
- <DataGridTemplateColumn Header=" " Width="50" CanUserSort="True">
- <DataGridTemplateColumn.CellTemplate>
- <DataTemplate>
- <Button Content="{DynamicResource GlobalLableExport}" FontSize="11" Height="20" Tag="{Binding UniqueId}" Click="OnExportingData2File"/>
- </DataTemplate>
- </DataGridTemplateColumn.CellTemplate>
- </DataGridTemplateColumn>
- <DataGridTemplateColumn Header="" Width="70" CanUserSort="True">
- <DataGridTemplateColumn.CellTemplate>
- <DataTemplate>
- <Button Content="{DynamicResource GlobalLableDelete}" FontSize="11" Height="20" Tag="{Binding UniqueId}" Click="OnRemoveChartingItem"/>
- </DataTemplate>
- </DataGridTemplateColumn.CellTemplate>
- </DataGridTemplateColumn>
- </DataGrid.Columns>
- </DataGrid>
- </UserControl>
|