123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869 |
- <Window x:Class="Aitex.UI.Charting.View.LoadPresetDataDialog"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- Title="{DynamicResource GlobalLablePresetDatasetConfig}" Height="234" Width="544" ResizeMode="NoResize" WindowStartupLocation="CenterOwner">
- <Window.Resources>
- <Style TargetType="{x:Type Label}">
- <Setter Property="Foreground" Value="Black"/>
- </Style>
- </Window.Resources>
- <Grid x:Name="grid1">
- <Grid.RowDefinitions>
- <RowDefinition Height="160*" />
- <RowDefinition Height="25" />
- </Grid.RowDefinitions>
- <DataGrid Grid.Row="0" ItemsSource="{Binding DataSets}" AutoGenerateColumns="False" CanUserAddRows="False" CanUserDeleteRows="False">
- <DataGrid.Columns>
- <DataGridTextColumn Binding="{Binding Name, Mode=OneWay}" CanUserReorder="True" CanUserResize="True" CanUserSort="True" IsReadOnly="True" Width="*">
- <DataGridTextColumn.HeaderTemplate >
- <DataTemplate>
- <TextBlock Text="{DynamicResource GlobalLableName}" />
- </DataTemplate>
- </DataGridTextColumn.HeaderTemplate>
- <DataGridTextColumn.CellStyle>
- <Style TargetType="DataGridCell">
- <Setter Property="FrameworkElement.ToolTip" Value="{Binding Name}" />
- </Style>
- </DataGridTextColumn.CellStyle>
- </DataGridTextColumn>
- <DataGridTextColumn Binding="{Binding CreateTime, Mode=OneWay}" CanUserReorder="True" CanUserResize="True" CanUserSort="True" IsReadOnly="True" Width="*">
- <DataGridTextColumn.HeaderTemplate >
- <DataTemplate>
- <TextBlock Text="{DynamicResource GlobalLableCreateTime}" />
- </DataTemplate>
- </DataGridTextColumn.HeaderTemplate>
- <DataGridTextColumn.CellStyle>
- <Style TargetType="DataGridCell">
- <Setter Property="FrameworkElement.ToolTip" Value="{Binding CreateTime}" />
- </Style>
- </DataGridTextColumn.CellStyle>
- </DataGridTextColumn>
- <DataGridTemplateColumn Header="" Width="70" CanUserSort="True">
- <DataGridTemplateColumn.CellTemplate>
- <DataTemplate>
- <Button Content="{DynamicResource GlobalLableLoad1}" Focusable="False" FontSize="11" Height="20" Width="60" Tag="{Binding Name}" HorizontalContentAlignment="Center" Click="OnLoadData"/>
- </DataTemplate>
- </DataGridTemplateColumn.CellTemplate>
- </DataGridTemplateColumn>
- <DataGridTemplateColumn Header="" Width="70" CanUserSort="True">
- <DataGridTemplateColumn.CellTemplate>
- <DataTemplate>
- <Button Content="{DynamicResource GlobalLableDelete1}" Focusable="False" FontSize="11" Height="20" Width="60" Tag="{Binding Name}" HorizontalContentAlignment="Center" Click="OnDeleteData"/>
- </DataTemplate>
- </DataGridTemplateColumn.CellTemplate>
- </DataGridTemplateColumn>
- </DataGrid.Columns>
- </DataGrid>
- <Grid Grid.Row="1">
- <Button Content="{DynamicResource GlobalLableSave}" Height="23" Margin="446,1,1,0" Name="button1" VerticalAlignment="Top" IsEnabled="False" Click="SaveCurrentSeriesConfiguration_Click" />
- <Label Content="{DynamicResource GlobalLableSaveCurrentDisplayDataset}" Height="28" HorizontalAlignment="Left" Margin="3,0,0,0" Name="label1" VerticalAlignment="Top" />
- <TextBox Height="23" Margin="163,1,92,0" Name="textBox1" VerticalAlignment="Top" TextChanged="textBox1_TextChanged" />
- </Grid>
- </Grid>
- </Window>
|