| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172 |
- <UserControl x:Class="Muchinfo.MTPClient.Analysis.Views.CChartView"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
- xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
- xmlns:priceCard="clr-namespace:Muchinfo.MTPClient.Analysis.Views.PriceCard"
- Loaded="CChartView_OnLoaded"
- Unloaded="CChartView_OnUnloaded"
- mc:Ignorable="d">
- <UserControl.Resources>
- <DataTemplate x:Key="CycleTemplate">
- <TextBlock Text="{Binding Title}" />
- </DataTemplate>
- <BooleanToVisibilityConverter x:Key="ToVisibilityConverter" />
- </UserControl.Resources>
- <UserControl.InputBindings>
- <KeyBinding Key="Enter"
- Command="{Binding EnterCommand}"
- CommandParameter="6" />
- <KeyBinding Key="Add"
- Command="{Binding EnterCommand}"
- CommandParameter="20" />
- <KeyBinding Key="Subtract"
- Command="{Binding EnterCommand}"
- CommandParameter="19" />
- <KeyBinding Key="F5"
- Command="{Binding EnterCommand}"
- CommandParameter="94" />
- </UserControl.InputBindings>
- <Grid x:Name="RootGrid" Background="{DynamicResource CommonBackgroundBrush}">
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="*" />
- <ColumnDefinition Width="Auto" />
- </Grid.ColumnDefinitions>
- <Grid.RowDefinitions>
- <RowDefinition Height="*" />
- <RowDefinition Height="Auto" />
- </Grid.RowDefinitions>
- <Border Background="{DynamicResource WindowHeadBrush}"
- BorderBrush="{DynamicResource CommonBorderBrush}"
- BorderThickness="1">
- <WindowsFormsHost x:Name="FormsHost"
- KeyUp="FormsHost_OnKeyUp"
- Loaded="FormsHost_OnLoaded" />
- </Border>
- <Border Grid.Row="1"
- Background="{DynamicResource WindowHeadBrush}"
- BorderBrush="{DynamicResource CommonBorderBrush}"
- BorderThickness="1">
- <ListBox IsEnabled="{Binding IsIndecatorEnable}"
- ItemContainerStyle="{DynamicResource ChartIndecatorListBoxItemStyle}"
- ItemTemplate="{DynamicResource CycleTemplate}"
- ItemsSource="{Binding CommandTypes}"
- SelectedItem="{Binding CurrentIndexMenu}"
- SelectionMode="Single"
- Style="{DynamicResource ChartCycleListBoxStyle}">
- <ListBox.ItemsPanel>
- <ItemsPanelTemplate>
- <StackPanel Orientation="Horizontal" />
- </ItemsPanelTemplate>
- </ListBox.ItemsPanel>
- </ListBox>
- </Border>
- <Grid Grid.RowSpan="2"
- Grid.Column="1"
- VerticalAlignment="Stretch"
- Visibility="{Binding IsPriceBoard,
- Converter={StaticResource ToVisibilityConverter}}">
- <priceCard:QuotePriceView x:Name="TabPriceView" DataContext="{Binding PriceViewModel}" />
- </Grid>
- </Grid>
- </UserControl>
|