DiagramWindow.xaml 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. <Window x:Class="MatrixXAMLOnly.DiagramWindow"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  5. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  6. xmlns:lvc="clr-namespace:LiveCharts.Wpf;assembly=LiveCharts.Wpf"
  7. xmlns:local="clr-namespace:MatrixXAMLOnly"
  8. mc:Ignorable="d"
  9. Title="Диаграмма" Height="500" Width="800" Icon="Images\matrix_icon.ico" MinHeight="500" MinWidth="800">
  10. <Grid>
  11. <Grid.RowDefinitions>
  12. <RowDefinition Height="0.2*"/>
  13. <RowDefinition/>
  14. </Grid.RowDefinitions>
  15. <Border Grid.Row="0" BorderBrush="Black" BorderThickness="0 0 0 1">
  16. <Grid>
  17. <Grid.ColumnDefinitions>
  18. <ColumnDefinition/>
  19. <ColumnDefinition/>
  20. </Grid.ColumnDefinitions>
  21. <StackPanel Grid.Column="0" Orientation="Horizontal" HorizontalAlignment="Left" Margin="50 15 0 15">
  22. <ComboBox x:Name="ComboBoxOrientation" HorizontalContentAlignment="Center" VerticalContentAlignment="Center" FontSize="14" FontWeight="SemiBold" Margin="0 0 10 0" MinWidth="120" MaxHeight="60">
  23. <ComboBoxItem Content="По строке:"/>
  24. <ComboBoxItem Content="По столбцу:"/>
  25. </ComboBox>
  26. <TextBox x:Name="TextBoxNum" MinWidth="50" HorizontalContentAlignment="Center" VerticalContentAlignment="Center" FontSize="14" MaxLength="1" MaxHeight="60"/>
  27. </StackPanel>
  28. <Button x:Name="BtnCreateDiagram" Content="Построить диаграмму" Grid.Column="1" Margin="10 15 50 15" MinWidth="200" MaxHeight="60" HorizontalAlignment="Right" Click="BtnCreateDiagram_Click"/>
  29. </Grid>
  30. </Border>
  31. <lvc:PieChart x:Name="PieDiagram" Grid.Row="1" LegendLocation="Bottom" Hoverable="False" DataTooltip="{x:Null}" Series="{Binding SeriesCollection}"/>
  32. </Grid>
  33. </Window>