Diagram.xaml 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. <Window x:Class="ROGOZ.Pages.Diagram"
  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:charts ="clr-namespace:System.Windows.Forms.DataVisualization.Charting;assembly=System.Windows.Forms.DataVisualization"
  7. xmlns:local="clr-namespace:ROGOZ.Pages"
  8. mc:Ignorable="d"
  9. Title="Diagram" Height="630" Width="820">
  10. <Grid>
  11. <Grid.RowDefinitions>
  12. <RowDefinition Height="auto"/>
  13. <RowDefinition Height="*"/>
  14. <RowDefinition Height="50"/>
  15. </Grid.RowDefinitions>
  16. <StackPanel Orientation="Horizontal" HorizontalAlignment="Center" Width="800">
  17. <StackPanel Orientation="Horizontal" HorizontalAlignment="Left">
  18. <TextBlock Text="Статус задачи: " FontSize="23" FontFamily="Comic Sans Ms"
  19. Foreground="#52a8ff" VerticalAlignment="Center"
  20. TextAlignment="Left" Margin="10"/>
  21. <ComboBox Name="ComboExecutor" SelectionChanged="UpdateChart" Style="{DynamicResource ComboBoxStyle1}"
  22. Width="200" Height="35"/>
  23. </StackPanel>
  24. <Separator Width="20" Background="Transparent"/>
  25. <StackPanel Orientation="Horizontal" HorizontalAlignment="Right" >
  26. <TextBlock Text="Тип диаграммы: " FontSize="23" FontFamily="Comic Sans Ms"
  27. Foreground="#52a8ff" VerticalAlignment="Center"
  28. TextAlignment="Left" Margin="10"/>
  29. <ComboBox Name="ComboChartTypes" SelectionChanged="UpdateChart" Style="{DynamicResource ComboBoxStyle1}"
  30. Width="180" Height="35"/>
  31. </StackPanel>
  32. </StackPanel>
  33. <WindowsFormsHost Grid.Row="1" Margin="20" >
  34. <charts:Chart x:Name="ChartPayments">
  35. <charts:Chart.Legends>
  36. <charts:Legend/>
  37. </charts:Chart.Legends>
  38. </charts:Chart>
  39. </WindowsFormsHost>
  40. </Grid>
  41. </Window>