mirror of
https://github.com/StockSharp/StockSharp.git
synced 2026-12-06 17:42:13 +00:00
71 lines
4.1 KiB
XML
71 lines
4.1 KiB
XML
<dx:ThemedWindow x:Class="SampleChart.MainWindow"
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:sx="http://schemas.stocksharp.com/xaml"
|
|
xmlns:loc="clr-namespace:StockSharp.Localization;assembly=StockSharp.Localization"
|
|
xmlns:xaml="clr-namespace:Ecng.Xaml;assembly=StockSharp.Xaml"
|
|
xmlns:dx="http://schemas.devexpress.com/winfx/2008/xaml/core"
|
|
Title="{x:Static loc:LocalizedStrings.XamlStr540}" Height="500" Width="1000">
|
|
<Grid>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="Auto"/>
|
|
<RowDefinition Height="*"/>
|
|
</Grid.RowDefinitions>
|
|
|
|
<WrapPanel Orientation="Horizontal">
|
|
<GroupBox Padding="5" VerticalAlignment="Center">
|
|
<StackPanel Orientation="Horizontal">
|
|
<TextBlock Text="{x:Static loc:LocalizedStrings.Str1242}" VerticalAlignment="Center"/>
|
|
<sx:CandleSettingsEditor x:Name="SeriesEditor" Margin="3,0" />
|
|
<CheckBox x:Name="BuildFromTicks" Content="Build from ticks" IsChecked="True" VerticalAlignment="Center"/>
|
|
|
|
<xaml:FolderBrowserPicker x:Name="HistoryPath" Width="250" Margin="10,0,10,0" FolderChanged="HistoryPath_OnFolderChanged" />
|
|
|
|
<ComboBox x:Name="Securities" Width="150" SelectionChanged="Securities_OnSelectionChanged" />
|
|
|
|
<sx:StorageFormatComboBox x:Name="Format" Margin="10,0,0,0"/>
|
|
|
|
<Button x:Name="Draw" Content="{x:Static loc:LocalizedStrings.Str3200}" Margin="10,0,10,0" IsEnabled="False" Click="Draw_Click"/>
|
|
</StackPanel>
|
|
</GroupBox>
|
|
|
|
<Button Margin="5,0,0,0" x:Name="Theme" Content="{x:Static loc:LocalizedStrings.Themes}" VerticalAlignment="Center" Width="100" Click="Theme_OnClick" />
|
|
|
|
<GroupBox Margin="0" Padding="0" VerticalAlignment="Center">
|
|
<StackPanel Orientation="Vertical">
|
|
<CheckBox Content="{x:Static loc:LocalizedStrings.RealTime}" Margin="3,0,0,0" x:Name="IsRealtime" VerticalAlignment="Center" Checked="IsRealtime_OnChecked" Unchecked="IsRealtime_OnChecked" />
|
|
<CheckBox Content="{x:Static loc:LocalizedStrings.CustomColors}" Margin="3,0,0,0" x:Name="CustomColors" Checked="CustomColors_Changed" Unchecked="CustomColors_Changed" VerticalAlignment="Center"/>
|
|
<CheckBox Margin="3,0,0,0" x:Name="CustomColors2" Checked="CustomColors2_Changed" Unchecked="CustomColors2_Changed" VerticalAlignment="Center">
|
|
<CheckBox.Content>
|
|
<TextBlock><Run Text="{x:Static loc:LocalizedStrings.CustomColors}"/><Run Text="2"/></TextBlock>
|
|
</CheckBox.Content>
|
|
</CheckBox>
|
|
</StackPanel>
|
|
</GroupBox>
|
|
|
|
<xaml:TimeZoneComboBox Margin="5,0,0,0" SelectedTimeZone="{Binding TimeZone, Mode=TwoWay, ElementName=Chart}" HorizontalAlignment="Stretch" VerticalAlignment="Center" Width="100" ToolTip="Chart time zone"/>
|
|
|
|
<GroupBox Header="Annotations" Margin="3,2" Padding="0">
|
|
<StackPanel Orientation="Horizontal">
|
|
<Button x:Name="NewAnnotationBtn" Content="new" Margin="4,0" IsEnabled="False" Click="NewAnnotation_Click" ToolTip="Create new annotation from code" VerticalAlignment="Center"/>
|
|
<Button x:Name="ModifyAnnotationBtn" Content="modify" Margin="4,0" IsEnabled="False" Click="ModifyAnnotation_Click" ToolTip="Modify annotation from code" VerticalAlignment="Center"/>
|
|
</StackPanel>
|
|
</GroupBox>
|
|
|
|
<GroupBox Header="allow settings" Margin="3,2" Padding="0">
|
|
<StackPanel Orientation="Horizontal">
|
|
<CheckBox ToolTip="IsInteracted" IsChecked="{Binding ElementName=Chart, Path=IsInteracted}" Margin="10,0"/>
|
|
<CheckBox ToolTip="allow add areas" IsChecked="{Binding ElementName=Chart, Path=AllowAddArea}"/>
|
|
<CheckBox ToolTip="allow add axis" IsChecked="{Binding ElementName=Chart, Path=AllowAddAxis}"/>
|
|
<CheckBox ToolTip="allow add candles" IsChecked="{Binding ElementName=Chart, Path=AllowAddCandles}"/>
|
|
<CheckBox ToolTip="allow add indicators" IsChecked="{Binding ElementName=Chart, Path=AllowAddIndicators}"/>
|
|
<CheckBox ToolTip="allow add trades" IsChecked="{Binding ElementName=Chart, Path=AllowAddOwnTrades}"/>
|
|
<CheckBox ToolTip="allow add orders" IsChecked="{Binding ElementName=Chart, Path=AllowAddOrders}"/>
|
|
</StackPanel>
|
|
</GroupBox>
|
|
</WrapPanel>
|
|
|
|
<sx:ChartPanel x:Name="Chart" IsInteracted="True" Grid.Row="1"/>
|
|
</Grid>
|
|
</dx:ThemedWindow>
|