Diagram.xaml 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  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="Графики" Height="630" Width="860"
  10. WindowStyle="None"
  11. WindowStartupLocation="CenterScreen"
  12. Loaded="Window_Loaded" Closed="Window_Closed"
  13. ResizeMode="NoResize"
  14. MouseDown="Window_MouseDown"
  15. Background="#c8e0f7" BorderBrush="#02294d" BorderThickness="2"
  16. >
  17. <Grid>
  18. <Grid.RowDefinitions>
  19. <RowDefinition Height="45"/>
  20. <RowDefinition Height="auto"/>
  21. <RowDefinition Height="*"/>
  22. <RowDefinition Height="70"/>
  23. </Grid.RowDefinitions>
  24. <TextBlock Text="Графики" FontSize="23" FontFamily="Comic Sans Ms"
  25. Foreground="#02294d" VerticalAlignment="Center"
  26. HorizontalAlignment="Left"
  27. TextAlignment="Left" Margin="20 0"/>
  28. <Button x:Name="btnClose" Style="{DynamicResource PanelButtonX}" Margin="0,5,10,0" Grid.Row="0" Height="35" Width="35" Click="btnClose_Click">
  29. <Image Source="/Resources/Cross1.png" IsHitTestVisible="False"/>
  30. </Button>
  31. <Button x:Name="btnMinimize" Style="{DynamicResource PanelButtonMin}" Margin="0,5,55,0" Grid.Row="0" Height="35" Width="35" Click="btnMinimize_Click">
  32. <Image Source="/Resources/Minimize1.png" IsHitTestVisible="False"/>
  33. </Button>
  34. <StackPanel Orientation="Horizontal" HorizontalAlignment="Center" Width="830" Grid.Row="1">
  35. <StackPanel Orientation="Horizontal" HorizontalAlignment="Left">
  36. <TextBlock Text="Статус задачи: " FontSize="23" FontFamily="Comic Sans Ms"
  37. Foreground="#2c6499" VerticalAlignment="Center"
  38. TextAlignment="Left" Margin="10"/>
  39. <ComboBox Name="ComboExecutor" FontSize="20" SelectionChanged="UpdateChart" Style="{DynamicResource ComboBoxStyle1}"
  40. Width="180" Height="35"/>
  41. </StackPanel>
  42. <Separator Width="15" Background="Transparent"/>
  43. <StackPanel Orientation="Horizontal" HorizontalAlignment="Right" >
  44. <TextBlock Text="Тип диаграммы: " FontSize="23" FontFamily="Comic Sans Ms"
  45. Foreground="#2c6499" VerticalAlignment="Center"
  46. TextAlignment="Left" Margin="10"/>
  47. <ComboBox Name="ComboChartTypes" FontSize="20" SelectionChanged="UpdateChart" Style="{DynamicResource ComboBoxStyle1}"
  48. Width="215" Height="35"/>
  49. </StackPanel>
  50. </StackPanel>
  51. <WindowsFormsHost Grid.Row="2" Margin="20" >
  52. <charts:Chart x:Name="ChartPayments">
  53. <charts:Chart.Legends>
  54. <charts:Legend/>
  55. </charts:Chart.Legends>
  56. </charts:Chart>
  57. </WindowsFormsHost>
  58. <Button Style="{StaticResource AuthoButtons}" Grid.Row="3"
  59. Height="60" Width="280" FontSize="25" HorizontalAlignment="Left"
  60. Margin="45 0 0 10" Name="btnExcel"
  61. Click="btnExcel_Click">
  62. <Grid Width="280">
  63. <TextBlock Text="Экспорт в Excel" FontSize="25" Style="{StaticResource Text_Style}"/>
  64. <Image Source="/Resources/Excel.png" Style="{StaticResource ImageStyle}"/>
  65. </Grid>
  66. </Button>
  67. <Button Style="{StaticResource AuthoButtons}" Grid.Row="3"
  68. Height="60" Width="280" FontSize="25" HorizontalAlignment="Right"
  69. Margin="0 0 45 10" Name="btnWord"
  70. Click="btnWord_Click">
  71. <Grid Width="280">
  72. <TextBlock Text="Экспорт в Word" FontSize="25" Style="{StaticResource Text_Style}"/>
  73. <Image Source="/Resources/word.png" Style="{StaticResource ImageStyle}"/>
  74. </Grid>
  75. </Button>
  76. </Grid>
  77. </Window>