Views/HistoricalChart.xaml
|
<Grid xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" x:Name="root" Background="#111A2B" Margin="8"> <Grid.RowDefinitions> <RowDefinition Height="Auto" /> <RowDefinition Height="Auto" /> <RowDefinition Height="*" /> <RowDefinition Height="Auto" /> </Grid.RowDefinitions> <Grid Grid.Row="0" Margin="4,2,4,8"> <Grid.ColumnDefinitions> <ColumnDefinition Width="*" /> <ColumnDefinition Width="Auto" /> </Grid.ColumnDefinitions> <StackPanel Grid.Column="0"> <TextBlock x:Name="titleText" Foreground="#FFFFFF" FontSize="18" FontWeight="SemiBold" TextWrapping="Wrap" /> <TextBlock x:Name="sourceText" Foreground="#AAAAAA" Margin="0,3,0,0" TextWrapping="Wrap" /> </StackPanel> <TextBlock x:Name="statusText" Grid.Column="1" Foreground="#FFCC66" Margin="12,0,0,0" VerticalAlignment="Center" TextWrapping="Wrap" /> </Grid> <WrapPanel Grid.Row="1" Margin="4,0,4,8" VerticalAlignment="Center"> <TextBlock x:Name="intervalText" Foreground="#AAAAAA" VerticalAlignment="Center" Margin="0,0,12,0" /> <TextBlock x:Name="measurementText" Foreground="#AAAAAA" VerticalAlignment="Center" Margin="0,0,12,0" /> <TextBlock Text="Range:" Foreground="#AAAAAA" VerticalAlignment="Center" Margin="0,0,4,0" /> <ComboBox x:Name="rangeSelector" Width="92" Margin="2" AutomationProperties.Name="Historical chart range" /> <StackPanel x:Name="customRangePanel" Orientation="Horizontal" VerticalAlignment="Center" Visibility="Collapsed"> <TextBlock Text="From:" Foreground="#AAAAAA" VerticalAlignment="Center" Margin="6,0,3,0" /> <DatePicker x:Name="customStartDatePicker" Width="132" Margin="2" AutomationProperties.Name="Custom range start date" ToolTip="Choose the first UTC date to display" /> <TextBlock Text="To:" Foreground="#AAAAAA" VerticalAlignment="Center" Margin="4,0,3,0" /> <DatePicker x:Name="customEndDatePicker" Width="132" Margin="2" AutomationProperties.Name="Custom range end date" ToolTip="Choose the last UTC date to display" /> </StackPanel> <TextBlock Text="Instrument:" Foreground="#AAAAAA" VerticalAlignment="Center" Margin="8,0,4,0" /> <ComboBox x:Name="instrumentSelector" MinWidth="130" MaxWidth="220" Margin="2" AutomationProperties.Name="Historical chart instrument" /> <Button x:Name="refreshButton" Content="Refresh" Margin="2" AutomationProperties.Name="Refresh historical chart" ToolTip="Load the selected history range from its approved source" /> <Button x:Name="cancelButton" Content="Cancel" Margin="2" IsEnabled="False" AutomationProperties.Name="Cancel historical chart refresh" ToolTip="Cancel the current history request" /> <WrapPanel x:Name="chartToolbar"> <Button x:Name="zoomInButton" Content="+" Width="32" Margin="2" AutomationProperties.Name="Zoom in" ToolTip="Zoom in on the chart" /> <Button x:Name="zoomOutButton" Content="-" Width="32" Margin="2" AutomationProperties.Name="Zoom out" ToolTip="Zoom out on the chart" /> <Button x:Name="panLeftButton" Content="<" Width="32" Margin="2" AutomationProperties.Name="Pan left" ToolTip="Pan the chart left" /> <Button x:Name="panRightButton" Content=">" Width="32" Margin="2" AutomationProperties.Name="Pan right" ToolTip="Pan the chart right" /> <Button x:Name="resetViewButton" Content="Reset" Margin="2" AutomationProperties.Name="Reset chart view" ToolTip="Reset chart zoom and pan" /> </WrapPanel> </WrapPanel> <Border Grid.Row="2" BorderBrush="#35506F" BorderThickness="1" MinHeight="180"> <Canvas x:Name="plotCanvas" MinWidth="320" MinHeight="180" Focusable="True" KeyboardNavigation.IsTabStop="True" ClipToBounds="True" Background="#0B1422" AutomationProperties.Name="Historical price chart" ToolTip="Historical values are plotted without filling missing intervals." /> </Border> <TextBlock x:Name="inspectionText" Grid.Row="3" Foreground="#FFFFFF" Margin="4,8,4,2" TextWrapping="Wrap" AutomationProperties.LiveSetting="Polite" Text="Select a value to inspect its timestamp and unit." /> </Grid> |