OverviewPage.xaml 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. <Page x:Class="ClashDotNetFramework.Pages.OverviewPage"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  5. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  6. xmlns:local="clr-namespace:ClashDotNetFramework.Pages"
  7. xmlns:lvc="clr-namespace:LiveCharts.Wpf;assembly=LiveCharts.Wpf"
  8. mc:Ignorable="d" Loaded="OverviewPage_Loaded" Unloaded="OverviewPage_Unloaded"
  9. d:DesignHeight="450" d:DesignWidth="800"
  10. Title="OverviewPage">
  11. <Grid>
  12. <Grid.RowDefinitions>
  13. <!-- Page Title -->
  14. <RowDefinition Height="100"/>
  15. <!-- Speed Graph -->
  16. <RowDefinition/>
  17. </Grid.RowDefinitions>
  18. <!-- Page Title -->
  19. <TextBlock
  20. Text="{DynamicResource Overview}"
  21. FontSize="24"
  22. Foreground="{DynamicResource NormalTextForeground}"
  23. VerticalAlignment="Center"
  24. Margin="20,0,0,0"/>
  25. <Separator
  26. VerticalAlignment="Bottom"
  27. Background="{DynamicResource SeparatorBackground}"/>
  28. <!-- Speed Graph -->
  29. <lvc:CartesianChart Grid.Row="1" Series="{Binding SeriesCollection}" LegendLocation="Top" Foreground="{DynamicResource NormalTextForeground}" Margin="20,5,20,20">
  30. <lvc:CartesianChart.AxisX>
  31. <lvc:Axis IsEnabled="False" ShowLabels="False"/>
  32. </lvc:CartesianChart.AxisX>
  33. <lvc:CartesianChart.AxisY>
  34. <lvc:Axis MinValue="0.00" LabelFormatter="{Binding YFormatter}" Foreground="{DynamicResource NormalTextForeground}">
  35. <lvc:Axis.Separator>
  36. <lvc:Separator StrokeThickness="0"/>
  37. </lvc:Axis.Separator>
  38. </lvc:Axis>
  39. </lvc:CartesianChart.AxisY>
  40. </lvc:CartesianChart>
  41. </Grid>
  42. </Page>