LoadPresetDataDialog.xaml 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. <Window x:Class="Aitex.UI.Charting.View.LoadPresetDataDialog"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. Title="{DynamicResource GlobalLablePresetDatasetConfig}" Height="234" Width="544" ResizeMode="NoResize" WindowStartupLocation="CenterOwner">
  5. <Window.Resources>
  6. <Style TargetType="{x:Type Label}">
  7. <Setter Property="Foreground" Value="Black"/>
  8. </Style>
  9. </Window.Resources>
  10. <Grid x:Name="grid1">
  11. <Grid.RowDefinitions>
  12. <RowDefinition Height="160*" />
  13. <RowDefinition Height="25" />
  14. </Grid.RowDefinitions>
  15. <DataGrid Grid.Row="0" ItemsSource="{Binding DataSets}" AutoGenerateColumns="False" CanUserAddRows="False" CanUserDeleteRows="False">
  16. <DataGrid.Columns>
  17. <DataGridTextColumn Binding="{Binding Name, Mode=OneWay}" CanUserReorder="True" CanUserResize="True" CanUserSort="True" IsReadOnly="True" Width="*">
  18. <DataGridTextColumn.HeaderTemplate >
  19. <DataTemplate>
  20. <TextBlock Text="{DynamicResource GlobalLableName}" />
  21. </DataTemplate>
  22. </DataGridTextColumn.HeaderTemplate>
  23. <DataGridTextColumn.CellStyle>
  24. <Style TargetType="DataGridCell">
  25. <Setter Property="FrameworkElement.ToolTip" Value="{Binding Name}" />
  26. </Style>
  27. </DataGridTextColumn.CellStyle>
  28. </DataGridTextColumn>
  29. <DataGridTextColumn Binding="{Binding CreateTime, Mode=OneWay}" CanUserReorder="True" CanUserResize="True" CanUserSort="True" IsReadOnly="True" Width="*">
  30. <DataGridTextColumn.HeaderTemplate >
  31. <DataTemplate>
  32. <TextBlock Text="{DynamicResource GlobalLableCreateTime}" />
  33. </DataTemplate>
  34. </DataGridTextColumn.HeaderTemplate>
  35. <DataGridTextColumn.CellStyle>
  36. <Style TargetType="DataGridCell">
  37. <Setter Property="FrameworkElement.ToolTip" Value="{Binding CreateTime}" />
  38. </Style>
  39. </DataGridTextColumn.CellStyle>
  40. </DataGridTextColumn>
  41. <DataGridTemplateColumn Header="" Width="70" CanUserSort="True">
  42. <DataGridTemplateColumn.CellTemplate>
  43. <DataTemplate>
  44. <Button Content="{DynamicResource GlobalLableLoad1}" Focusable="False" FontSize="11" Height="20" Width="60" Tag="{Binding Name}" HorizontalContentAlignment="Center" Click="OnLoadData"/>
  45. </DataTemplate>
  46. </DataGridTemplateColumn.CellTemplate>
  47. </DataGridTemplateColumn>
  48. <DataGridTemplateColumn Header="" Width="70" CanUserSort="True">
  49. <DataGridTemplateColumn.CellTemplate>
  50. <DataTemplate>
  51. <Button Content="{DynamicResource GlobalLableDelete1}" Focusable="False" FontSize="11" Height="20" Width="60" Tag="{Binding Name}" HorizontalContentAlignment="Center" Click="OnDeleteData"/>
  52. </DataTemplate>
  53. </DataGridTemplateColumn.CellTemplate>
  54. </DataGridTemplateColumn>
  55. </DataGrid.Columns>
  56. </DataGrid>
  57. <Grid Grid.Row="1">
  58. <Button Content="{DynamicResource GlobalLableSave}" Height="23" Margin="446,1,1,0" Name="button1" VerticalAlignment="Top" IsEnabled="False" Click="SaveCurrentSeriesConfiguration_Click" />
  59. <Label Content="{DynamicResource GlobalLableSaveCurrentDisplayDataset}" Height="28" HorizontalAlignment="Left" Margin="3,0,0,0" Name="label1" VerticalAlignment="Top" />
  60. <TextBox Height="23" Margin="163,1,92,0" Name="textBox1" VerticalAlignment="Top" TextChanged="textBox1_TextChanged" />
  61. </Grid>
  62. </Grid>
  63. </Window>