Files
StockSharp/Samples/Chart/SampleChartPerformance/MainWindow.xaml
T
2019-11-25 13:12:36 +03:00

32 lines
1.4 KiB
XML

<Window x:Class="SampleChartPerformance.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:charting="http://schemas.stocksharp.com/xaml"
xmlns:s="http://schemas.ulcsoftware.co.uk/ultrachart"
xmlns:loc="clr-namespace:StockSharp.Localization;assembly=StockSharp.Localization"
xmlns:dx="http://schemas.devexpress.com/winfx/2008/xaml/core"
Title="{x:Static loc:LocalizedStrings.XamlStr540}" Height="400" Width="970">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="*"/>
</Grid.RowDefinitions>
<StackPanel Orientation="Horizontal">
<ComboBox Margin="10,0,0,0" x:Name="Theme" ItemsSource="{Binding Source={x:Static s:ThemeManager.AllThemes}}"
SelectionChanged="OnThemeSelectionChanged" VerticalAlignment="Center" Width="150"/>
<CheckBox Content="{x:Static loc:LocalizedStrings.RealTime}" Margin="10,0,0,0" x:Name="IsRealtime" VerticalAlignment="Center"/>
</StackPanel>
<dx:LoadingDecorator x:Name="BusyIndicator" Grid.Row="1">
<dx:LoadingDecorator.SplashScreenTemplate>
<DataTemplate>
<dx:WaitIndicator DeferedVisibility="True" Content="{Binding Title}"/>
</DataTemplate>
</dx:LoadingDecorator.SplashScreenTemplate>
<charting:ChartPanel x:Name="Chart" IsInteracted="True" ShowPerfStats="True"/>
</dx:LoadingDecorator>
</Grid>
</Window>