| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838 |
-
- <ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:Themes="clr-namespace:Microsoft.Windows.Themes;assembly=PresentationFramework.Classic"
- xmlns:button="clr-namespace:Muchinfo.WPF.Controls.Button;assembly=Client.WPF.Controls"
- xmlns:converters="clr-namespace:Muchinfo.MTPClient.Infrastructure.Converters;assembly=Client.Infrastructure"
- xmlns:i="http://schemas.microsoft.com/expression/2010/interactivity"
- xmlns:resource="clr-namespace:Muchinfo.MTPClient.Resources;assembly=Client.Resources"
- xmlns:system="clr-namespace:System;assembly=mscorlib"
- xmlns:windows="clr-namespace:Muchinfo.MTPClient.Infrastructure.Windows;assembly=Client.Infrastructure"
- xmlns:xctk="http://schemas.xceed.com/wpf/xaml/toolkit">
- <converters:MarketVisibilityConventer x:Key="MarketVisibilityConventer" />
- <BooleanToVisibilityConverter x:Key="BooleanToVisibilityConverter" />
- <converters:BoolOpposedVisibility x:Key="BoolOpposedVisibility" />
- <!-- 字体 XS -->
- <system:Double x:Key="MuchinfoFontSize_XS">12</system:Double>
- <!-- 字体 S -->
- <system:Double x:Key="MuchinfoFontSize_S">13</system:Double>
- <!-- 字体 M -->
- <system:Double x:Key="MuchinfoFontSize_M">14</system:Double>
- <!-- 字体 L -->
- <system:Double x:Key="MuchinfoFontSize_L">16</system:Double>
- <!-- 字体 XL -->
- <system:Double x:Key="MuchinfoFontSize_XL">18</system:Double>
- <!-- 行情列表行高 -->
- <system:Double x:Key="QuoteDataGridRowHeight">32</system:Double>
- <!-- 行情列表表头行高 -->
- <system:Double x:Key="QuoteDataGridHeadRowHeight">32</system:Double>
- <!-- 账号列表行高 -->
- <system:Double x:Key="AccountDataGridHeadRowHeight">26</system:Double>
- <!-- 账号列表表头行高 -->
- <system:Double x:Key="AccountDataGridRowHeight">24</system:Double>
- <Style x:Key="NoBorderWindow" TargetType="{x:Type Window}">
- <!-- <Setter Property="AllowsTransparency" Value="false" /> -->
- <Setter Property="Background" Value="Transparent" />
- <Setter Property="FontFamily" Value="Microsoft YaHei,Simsun" />
- <Setter Property="FontSize" Value="{DynamicResource MuchinfoFontSize_XS}" />
- <Setter Property="WindowStyle" Value="None" />
- <Setter Property="WindowState" Value="Maximized" />
- <Setter Property="SnapsToDevicePixels" Value="True" />
- <Setter Property="TextOptions.TextFormattingMode" Value="Display" />
- <Setter Property="ResizeMode" Value="CanMinimize" />
- </Style>
- <!-- 登录界面图片 -->
- <ImageSource x:Key="LoginLogo">pack://siteoforigin:,,,./Config\ExchangeLogo.png</ImageSource>
- <ImageSource x:Key="Login_Close">../../Images/login_close.png</ImageSource>
- <ImageSource x:Key="Login_Close_Select">../../Images/login_close_select.png</ImageSource>
- <ImageSource x:Key="Login_Key">../../Images/login_key.png</ImageSource>
- <ImageSource x:Key="Login_Radio">../../Images/login_radio.png</ImageSource>
- <ImageSource x:Key="Login_Radio_Select">../../Images/login_radio_select.png</ImageSource>
- <ImageSource x:Key="KeyboardImageSource">../../Images/Keyboard.png</ImageSource>
- <ImageSource x:Key="QuestionImageSource">../../Images/Question.png</ImageSource>
- <ImageSource x:Key="WindowIconImageSource">pack://siteoforigin:,,,./Config\ExchangeIcon.ico</ImageSource>
- <ImageSource x:Key="Listing_Cancal">../../Images/listing/Listing_Cancal.png</ImageSource>
- <ImageSource x:Key="Listing_Close">../../Images/listing/Listing_Close.png</ImageSource>
- <ImageSource x:Key="Listing_Auction">../../Images/listing/Listing_Auction.png</ImageSource>
- <ImageSource x:Key="Listing_AlterPrice">../../Images/listing/Listing_AlterPrice.png</ImageSource>
- <ImageSource x:Key="Listing_Query">../../Images/listing/Listing_Query.png</ImageSource>
- <ImageSource x:Key="Listing_Message">../../Images/listing/Listing_Message.png</ImageSource>
- <ImageSource x:Key="InGuidFirstStep">../../Images/InGuidFirstStep.png</ImageSource>
- <ImageSource x:Key="InGuidSecondStep">../../Images/InGuidSecondStep.png</ImageSource>
- <ImageSource x:Key="AccounImage">../../Images/AccounImage.png</ImageSource>
- <ImageSource x:Key="GoodsPicImageSource">../../Images/GoodsDefaultpic.png</ImageSource>
- <ImageSource x:Key="StatusbarConnected">../../Images/CoolBlack/statusbar_connected.png</ImageSource>
- <ImageSource x:Key="StatusbarDisconnected">../../Images/CoolBlack/statusbar_disconnected.png</ImageSource>
- <ImageSource x:Key="LockScreenImage">../../Images/LockScreen.png</ImageSource>
- <ImageBrush x:Key="LockScreenBrush" ImageSource="{DynamicResource LockScreenImage}" />
- <ImageSource x:Key="AccoutRefresh">../../Images/CoolBlack/accoutRefresh.png</ImageSource>
- <ImageSource x:Key="DialogCloseImg">../../Images/CoolBlack/prompt_close.png</ImageSource>
- <ImageSource x:Key="DialogCloseImg_P">../../Images/CoolBlack/prompt_close_d.png</ImageSource>
- <!-- 锁屏界面 -->
- <ImageSource x:Key="LockScreenBGIMG">../../Images/bj.png</ImageSource>
- <ImageSource x:Key="LogoIcon">../../Images/logo.png</ImageSource>
- <ImageSource x:Key="LogoutButtonIcon">../../Images/logout.png</ImageSource>
- <ImageSource x:Key="AccountIcon">../../Images/1_03.png</ImageSource>
- <ImageSource x:Key="GoodsLock">../../Images/GoodsLock.png</ImageSource>
- <ImageSource x:Key="GoodsUnLock">../../Images/GoodsUnLock.png</ImageSource>
- <Style x:Key="LockScreenImageStyle" TargetType="{x:Type button:ImageButton}">
- <Setter Property="NormalImageSource" Value="{DynamicResource LockScreenImage}" />
- <Setter Property="HoverImageSource" Value="{DynamicResource LockScreenImage}" />
- <Setter Property="PressedImageSource" Value="{DynamicResource LockScreenImage}" />
- <Setter Property="DisabledImageSource" Value="{DynamicResource LockScreenImage}" />
- </Style>
- <Style x:Key="WindowTradeSetStyle" TargetType="{x:Type button:ImageButton}">
- <Setter Property="NormalImageSource" Value="{DynamicResource KeyboardImageSource}" />
- <Setter Property="HoverImageSource" Value="{DynamicResource KeyboardImageSource}" />
- <Setter Property="PressedImageSource" Value="{DynamicResource KeyboardImageSource}" />
- <Setter Property="DisabledImageSource" Value="{DynamicResource KeyboardImageSource}" />
- <Setter Property="ToolTip" Value="{x:Static resource:Client_Resource.TradeParamerSet_Title}" />
- </Style>
- <Style x:Key="WindowMinImageStyle" TargetType="{x:Type button:ImageButton}">
- <Setter Property="NormalImageSource" Value="{DynamicResource WindowMinImageSource}" />
- <Setter Property="HoverImageSource" Value="{DynamicResource WindowMinImageSourcePressed}" />
- <Setter Property="PressedImageSource" Value="{DynamicResource WindowMinImageSourcePressed}" />
- <Setter Property="DisabledImageSource" Value="{DynamicResource WindowMinImageSource}" />
- <Setter Property="ToolTip" Value="{x:Static resource:Client_Resource.Themes_Min}" />
- </Style>
- <Style x:Key="WindowMaxImageStyle" TargetType="{x:Type button:ImageButton}">
- <Setter Property="NormalImageSource" Value="{DynamicResource WindowMaxImageSource}" />
- <Setter Property="HoverImageSource" Value="{DynamicResource WindowMaxImageSourcePressed}" />
- <Setter Property="PressedImageSource" Value="{DynamicResource WindowMaxImageSourcePressed}" />
- <Setter Property="DisabledImageSource" Value="{DynamicResource WindowMaxImageSource}" />
- <Setter Property="ToolTip" Value="{x:Static resource:Client_Resource.UI2014_RestoreDown}" />
- </Style>
- <Style x:Key="WindowMaxImageStyle1" TargetType="{x:Type button:ImageButton}">
- <Setter Property="NormalImageSource" Value="{DynamicResource WindowMaxImageSource1}" />
- <Setter Property="HoverImageSource" Value="{DynamicResource WindowMaxImageSourcePressed1}" />
- <Setter Property="PressedImageSource" Value="{DynamicResource WindowMaxImageSourcePressed1}" />
- <Setter Property="DisabledImageSource" Value="{DynamicResource WindowMaxImageSource1}" />
- <Setter Property="ToolTip" Value="{x:Static resource:Client_Resource.UI2014_Maximum}" />
- </Style>
- <Style x:Key="WindowCloseImageStyle" TargetType="{x:Type button:ImageButton}">
- <Setter Property="NormalImageSource" Value="{DynamicResource WindowCloseImageSource}" />
- <Setter Property="HoverImageSource" Value="{DynamicResource WindowCloseImageSourcePressed}" />
- <Setter Property="PressedImageSource" Value="{DynamicResource WindowCloseImageSourcePressed}" />
- <Setter Property="DisabledImageSource" Value="{DynamicResource WindowCloseImageSource}" />
- <Setter Property="ToolTip" Value="{x:Static resource:Client_Resource.Themes_ShutWindow}" />
- </Style>
- <Style x:Key="ThinSeparatorStyle" TargetType="{x:Type Separator}">
- <Setter Property="MinHeight" Value="0" />
- <Setter Property="MinWidth" Value="0" />
- <Setter Property="Margin" Value="0" />
- <Setter Property="Height" Value="1" />
- <Setter Property="Focusable" Value="false" />
- <Setter Property="BorderBrush" Value="{DynamicResource CommonBorderBrush}" />
- <Setter Property="BorderThickness" Value="1" />
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="{x:Type Separator}">
- <Themes:ClassicBorderDecorator Width="{TemplateBinding Width}"
- Height="{TemplateBinding Height}"
- BorderBrush="{TemplateBinding BorderBrush}"
- BorderStyle="HorizontalLine"
- BorderThickness="{TemplateBinding BorderThickness}" />
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
- <Style x:Key="ToolbarImageButtonStyle" TargetType="{x:Type button:ImageButton}">
- <Setter Property="HorizontalAlignment" Value="Center" />
- <Setter Property="VerticalAlignment" Value="Center" />
- <Setter Property="Background" Value="{DynamicResource MuchinfoBrush2}" />
- <Setter Property="BorderVisibility" Value="Visible" />
- <Setter Property="ImageWidth" Value="24" />
- <Setter Property="ImageHeight" Value="24" />
- <Setter Property="Width" Value="33" />
- <Setter Property="Height" Value="33" />
- <Setter Property="BorderCornerRadius" Value="2" />
- <Setter Property="Margin" Value="1" />
- <Style.Triggers>
- <Trigger Property="IsMouseOver" Value="True">
- <Setter Property="Background" Value="{DynamicResource MuchinfoBrush45}" />
- <Setter Property="BorderBrush" Value="{DynamicResource MuchinfoBrush46}" />
- <Setter Property="BorderThickness" Value="1" />
- </Trigger>
- <Trigger Property="IsChecked" Value="True">
- <Setter Property="Background" Value="{DynamicResource MuchinfoBrush7}" />
- </Trigger>
- </Style.Triggers>
- </Style>
- <Style x:Key="SimpleContextMenu" TargetType="{x:Type ContextMenu}">
- <Setter Property="Background" Value="Black" />
- <Setter Property="BorderBrush" Value="White" />
- <Setter Property="BorderThickness" Value="1" />
- </Style>
- <!-- Simple MenuItem - 该模板使用触发器来提供四种不同的菜单项排列方式,这些排列方式是通过 Role 属性设置的 -->
- <Style x:Key="SimpleMenuItem" TargetType="{x:Type MenuItem}">
- <Setter Property="HorizontalContentAlignment" Value="{Binding HorizontalContentAlignment, RelativeSource={RelativeSource AncestorType={x:Type ItemsControl}}}" />
- <Setter Property="VerticalContentAlignment" Value="Center" />
- <Setter Property="Background" Value="Transparent" />
- <Setter Property="Foreground" Value="White" />
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="{x:Type MenuItem}">
- <Grid SnapsToDevicePixels="true">
- <Rectangle x:Name="Bg"
- Fill="{TemplateBinding Background}"
- RadiusX="2"
- RadiusY="2"
- Stroke="{TemplateBinding BorderBrush}"
- StrokeThickness="1" />
- <Rectangle x:Name="InnerBorder"
- Margin="1"
- RadiusX="2"
- RadiusY="2" />
- <Grid>
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="Auto"
- MinWidth="24"
- SharedSizeGroup="MenuItemIconColumnGroup" />
- <ColumnDefinition Width="4" />
- <ColumnDefinition Width="*" />
- <ColumnDefinition Width="37" />
- <ColumnDefinition Width="Auto" SharedSizeGroup="MenuItemIGTColumnGroup" />
- <ColumnDefinition Width="17" />
- </Grid.ColumnDefinitions>
- <ContentPresenter x:Name="Icon"
- Margin="1"
- VerticalAlignment="Center"
- ContentSource="Icon"
- SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />
- <Border x:Name="GlyphPanel"
- Width="22"
- Height="22"
- Margin="1"
- Background="#AB0b93d5"
- BorderBrush="#FF003147"
- BorderThickness="1"
- CornerRadius="3"
- Visibility="Hidden">
- <Path x:Name="Glyph"
- Width="9"
- Height="11"
- Data="{DynamicResource Checkmark}"
- Fill="#0C12A1"
- FlowDirection="LeftToRight" />
- </Border>
- <ContentPresenter Grid.Column="2"
- Margin="{TemplateBinding Padding}"
- VerticalAlignment="Center"
- ContentSource="Header"
- RecognizesAccessKey="True"
- SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />
- <TextBlock Grid.Column="4"
- Margin="{TemplateBinding Padding}"
- Text="{TemplateBinding InputGestureText}" />
- </Grid>
- </Grid>
- <ControlTemplate.Triggers>
- <Trigger Property="Icon" Value="{x:Null}">
- <Setter TargetName="Icon" Property="Visibility" Value="Collapsed" />
- </Trigger>
- <Trigger Property="IsChecked" Value="true">
- <Setter TargetName="GlyphPanel" Property="Visibility" Value="Visible" />
- <Setter TargetName="Icon" Property="Visibility" Value="Collapsed" />
- </Trigger>
- <Trigger Property="IsHighlighted" Value="true">
- <Setter TargetName="Bg" Property="Fill" Value="{DynamicResource MenuItemSelectionFill}" />
- <Setter TargetName="Bg" Property="Stroke" Value="#AB0b93d5" />
- <Setter TargetName="InnerBorder" Property="Stroke" Value="#FF003147" />
- </Trigger>
- <Trigger Property="IsEnabled" Value="false">
- <Setter Property="Foreground" Value="#FF9A9A9A" />
- <Setter TargetName="GlyphPanel" Property="Background" Value="#EEE9E9" />
- <Setter TargetName="GlyphPanel" Property="BorderBrush" Value="#DBD6D6" />
- <Setter TargetName="Glyph" Property="Fill" Value="#848589" />
- </Trigger>
- </ControlTemplate.Triggers>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
- <Style x:Key="DialogWindowStyle" TargetType="{x:Type Window}">
- <Setter Property="AllowsTransparency" Value="True" />
- <Setter Property="Background" Value="Transparent" />
- <Setter Property="FontFamily" Value="Simsun, Microsoft YaHei" />
- <Setter Property="Foreground" Value="{DynamicResource DialogWindowContnetForeground}" />
- <Setter Property="FontSize" Value="{DynamicResource MuchinfoFontSize_XS}" />
- <Setter Property="ResizeMode" Value="NoResize" />
- <Setter Property="WindowStyle" Value="None" />
- <Setter Property="SnapsToDevicePixels" Value="True" />
- <Setter Property="TextOptions.TextFormattingMode" Value="Display" />
- <Setter Property="Width" Value="565" />
- <Setter Property="Height" Value="529" />
- <Setter Property="ShowInTaskbar" Value="False" />
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="{x:Type Window}">
- <Grid Margin="10">
- <Rectangle RadiusX="2" RadiusY="2">
- <Rectangle.Effect>
- <DropShadowEffect BlurRadius="10" ShadowDepth="0" />
- </Rectangle.Effect>
- </Rectangle>
- <Border Background="{DynamicResource DialogWindowBackground}"
- BorderBrush="{TemplateBinding BorderBrush}"
- BorderThickness="{TemplateBinding BorderThickness}"
- CornerRadius="2"
- Padding="{TemplateBinding Margin}"
- SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}">
- <Grid>
- <Grid.RowDefinitions>
- <RowDefinition Height="47" />
- <RowDefinition Height="1" />
- <RowDefinition Height="1" />
- <RowDefinition Height="*" />
- </Grid.RowDefinitions>
- <Grid HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
- <Border x:Name="brdTitle"
- Margin="30,5,30,0"
- HorizontalAlignment="Stretch"
- VerticalAlignment="Stretch"
- Background="Transparent">
- <TextBlock HorizontalAlignment="Center"
- VerticalAlignment="Center"
- FontSize="{DynamicResource MuchinfoFontSize_M}"
- FontWeight="Bold"
- Foreground="{DynamicResource DialogWindowTitleForeground}"
- Text="{TemplateBinding Title}"
- TextTrimming="CharacterEllipsis"
- ToolTip="{TemplateBinding Title}" />
- <i:Interaction.Triggers>
- <i:EventTrigger EventName="MouseMove">
- <i:InvokeCommandAction Command="{x:Static windows:DialogWindowCommands.DragMove}" CommandParameter="{Binding RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type Window}}}" />
- </i:EventTrigger>
- </i:Interaction.Triggers>
- </Border>
- <Button x:Name="btnClose"
- Width="20"
- Margin="10,2"
- HorizontalAlignment="Right"
- Command="{x:Static windows:DialogWindowCommands.Close}"
- CommandParameter="{Binding RelativeSource={RelativeSource FindAncestor,
- AncestorType={x:Type Window}}}"
- IsCancel="True"
- Padding="2"
- Style="{DynamicResource DialogCloseButtonStyle}" />
- </Grid>
- <Separator Grid.Row="1"
- Margin="20,0"
- VerticalAlignment="Bottom"
- Panel.ZIndex="10"
- BorderBrush="{DynamicResource DialogWindowSeparatorTop}"
- Style="{DynamicResource ThinSeparatorStyle}" />
- <Separator Grid.Row="2"
- Margin="20,0"
- VerticalAlignment="Bottom"
- Panel.ZIndex="10"
- BorderBrush="{DynamicResource DialogWindowSeparatorBottom}"
- Style="{DynamicResource ThinSeparatorStyle}" />
- <ContentPresenter Grid.Row="3" />
- </Grid>
- </Border>
- </Grid>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
- <!-- 交易参数设置(带自动止盈止损设置) -->
- <Style x:Key="TradeDialogWindowStyle" TargetType="{x:Type Window}">
- <Setter Property="AllowsTransparency" Value="True" />
- <Setter Property="Background" Value="Transparent" />
- <Setter Property="FontFamily" Value="Simsun, Microsoft YaHei" />
- <Setter Property="Foreground" Value="{DynamicResource DialogWindowContnetForeground}" />
- <Setter Property="FontSize" Value="{DynamicResource MuchinfoFontSize_XS}" />
- <Setter Property="ResizeMode" Value="NoResize" />
- <Setter Property="WindowStyle" Value="None" />
- <Setter Property="SnapsToDevicePixels" Value="True" />
- <Setter Property="TextOptions.TextFormattingMode" Value="Display" />
- <Setter Property="Width" Value="565" />
- <Setter Property="Height" Value="529" />
- <Setter Property="ShowInTaskbar" Value="False" />
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="{x:Type Window}">
- <Grid Margin="10">
- <Rectangle RadiusX="2" RadiusY="2">
- <Rectangle.Effect>
- <DropShadowEffect BlurRadius="10" ShadowDepth="0" />
- </Rectangle.Effect>
- </Rectangle>
- <Border Background="{DynamicResource DialogWindowBackground}"
- BorderBrush="{TemplateBinding BorderBrush}"
- BorderThickness="{TemplateBinding BorderThickness}"
- CornerRadius="2"
- Padding="{TemplateBinding Margin}"
- SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}">
- <Grid>
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="1*" />
- <ColumnDefinition Width="Auto" />
- </Grid.ColumnDefinitions>
- <Grid.RowDefinitions>
- <RowDefinition Height="47" />
- <RowDefinition Height="1" />
- <RowDefinition Height="1" />
- <RowDefinition Height="*" />
- </Grid.RowDefinitions>
- <Grid Grid.Row="0"
- Grid.ColumnSpan="2"
- HorizontalAlignment="Stretch"
- VerticalAlignment="Stretch">
- <Grid>
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="1*" />
- <ColumnDefinition Width="Auto" />
- </Grid.ColumnDefinitions>
- </Grid>
- <Border x:Name="brdTitle"
- Margin="15,5,30,0"
- HorizontalAlignment="Stretch"
- VerticalAlignment="Bottom">
- <i:Interaction.Triggers>
- <i:EventTrigger EventName="MouseMove">
- <i:InvokeCommandAction Command="{x:Static windows:DialogWindowCommands.DragMove}" CommandParameter="{Binding RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type Window}}}" />
- </i:EventTrigger>
- </i:Interaction.Triggers>
- <TabControl x:Name="TradeTabControl"
- Margin="0,10,0,0"
- VerticalAlignment="Center"
- Background="Transparent"
- BorderBrush="Transparent">
- <TabItem Header="{x:Static resource:Client_Resource.TradeParamerSet_Title}" Style="{DynamicResource TabItemCardStyle}" />
- <!--<TabItem Header="{x:Static resource:Client_Resource.Auto_Entrust_Profit_Loss}" Style="{DynamicResource TabItemCardStyle}" />-->
- </TabControl>
- </Border>
- <Button x:Name="btnClose"
- Width="20"
- Margin="10,2"
- HorizontalAlignment="Right"
- Command="{x:Static windows:DialogWindowCommands.Close}"
- CommandParameter="{Binding RelativeSource={RelativeSource FindAncestor,
- AncestorType={x:Type Window}}}"
- IsCancel="True"
- Padding="2"
- Style="{DynamicResource DialogCloseButtonStyle}" />
- </Grid>
- <Separator Grid.Row="1"
- Grid.ColumnSpan="2"
- Margin="20,0"
- VerticalAlignment="Bottom"
- Panel.ZIndex="10"
- BorderBrush="{DynamicResource DialogWindowSeparatorTop}"
- Style="{DynamicResource ThinSeparatorStyle}" />
- <Separator Grid.Row="2"
- Grid.ColumnSpan="2"
- Margin="20,0"
- VerticalAlignment="Bottom"
- Panel.ZIndex="10"
- BorderBrush="{DynamicResource DialogWindowSeparatorBottom}"
- Style="{DynamicResource ThinSeparatorStyle}" />
- <ContentPresenter Grid.Row="3" />
- </Grid>
- </Border>
- </Grid>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
- <Style x:Key="TabItemCardStyle" TargetType="{x:Type TabItem}">
- <Setter Property="Header" Value="{Binding Name}" />
- <Setter Property="FocusVisualStyle" Value="{x:Null}" />
- <Setter Property="Foreground" Value="#818181" />
- <Setter Property="FontSize" Value="16" />
- <Setter Property="Padding" Value="5,3,5,3" />
- <Setter Property="HorizontalContentAlignment" Value="Stretch" />
- <Setter Property="VerticalContentAlignment" Value="Stretch" />
- <Setter Property="SnapsToDevicePixels" Value="True" />
- <Setter Property="UseLayoutRounding" Value="True" />
- <Setter Property="BorderThickness" Value="0,0,0,2" />
- <Setter Property="Background" Value="#FFFFFF" />
- <Setter Property="BorderBrush" Value="Transparent" />
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="{x:Type TabItem}">
- <Border x:Name="border"
- Margin="{TemplateBinding Margin}"
- Background="{TemplateBinding Background}"
- BorderBrush="{TemplateBinding BorderBrush}"
- BorderThickness="{TemplateBinding BorderThickness}"
- CornerRadius="3,3,0,0"
- Padding="{TemplateBinding Padding}"
- SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}"
- UseLayoutRounding="{TemplateBinding UseLayoutRounding}">
- <ContentPresenter x:Name="contentPresenter"
- Margin="{TemplateBinding Padding}"
- HorizontalAlignment="{Binding HorizontalContentAlignment,
- RelativeSource={RelativeSource AncestorType={x:Type ItemsControl}}}"
- VerticalAlignment="{Binding VerticalContentAlignment,
- RelativeSource={RelativeSource AncestorType={x:Type ItemsControl}}}"
- ContentSource="Header"
- Focusable="False"
- RecognizesAccessKey="True"
- SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />
- </Border>
- <ControlTemplate.Triggers>
- <MultiDataTrigger>
- <MultiDataTrigger.Conditions>
- <Condition Binding="{Binding IsMouseOver, RelativeSource={RelativeSource Self}}" Value="true" />
- <Condition Binding="{Binding TabStripPlacement, RelativeSource={RelativeSource AncestorType={x:Type TabControl}}}" Value="Top" />
- </MultiDataTrigger.Conditions>
- <Setter TargetName="border" Property="Cursor" Value="Hand" />
- <Setter Property="Background" Value="#FFFFFF" />
- <Setter Property="BorderBrush" Value="#007ACC" />
- </MultiDataTrigger>
- <MultiDataTrigger>
- <MultiDataTrigger.Conditions>
- <Condition Binding="{Binding IsSelected, RelativeSource={RelativeSource Self}}" Value="false" />
- <Condition Binding="{Binding TabStripPlacement, RelativeSource={RelativeSource AncestorType={x:Type TabControl}}}" Value="Top" />
- </MultiDataTrigger.Conditions>
- <Setter Property="Panel.ZIndex" Value="1" />
- <Setter Property="BorderBrush" Value="#989898" />
- <Setter Property="Background" Value="#989898" />
- <Setter Property="BorderThickness" Value="1,1,1,0" />
- <Setter Property="Foreground" Value="#FFFFFF" />
- <Setter Property="FontSize" Value="12" />
- <Setter Property="Margin" Value="0,0,2,0" />
- </MultiDataTrigger>
- <MultiDataTrigger>
- <MultiDataTrigger.Conditions>
- <Condition Binding="{Binding IsSelected, RelativeSource={RelativeSource Self}}" Value="true" />
- <Condition Binding="{Binding TabStripPlacement, RelativeSource={RelativeSource AncestorType={x:Type TabControl}}}" Value="Top" />
- </MultiDataTrigger.Conditions>
- <Setter Property="Panel.ZIndex" Value="1" />
- <Setter Property="BorderBrush" Value="{DynamicResource ButtonBackground}" />
- <Setter Property="BorderThickness" Value="1,1,1,0" />
- <Setter Property="Background" Value="{DynamicResource ButtonBackground}" />
- <Setter Property="FontSize" Value="12" />
- <Setter Property="Foreground" Value="#FFFFFF" />
- <Setter Property="Margin" Value="0,0,2,0" />
- </MultiDataTrigger>
- <MultiDataTrigger>
- <MultiDataTrigger.Conditions>
- <Condition Binding="{Binding IsEnabled, RelativeSource={RelativeSource Self}}" Value="false" />
- <Condition Binding="{Binding TabStripPlacement, RelativeSource={RelativeSource AncestorType={x:Type TabControl}}}" Value="Top" />
- </MultiDataTrigger.Conditions>
- <Setter TargetName="contentPresenter" Property="Opacity" Value="0.56" />
- </MultiDataTrigger>
- </ControlTemplate.Triggers>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
- <!-- 登录密码样式 -->
- <LinearGradientBrush x:Key="TextBoxBorder" MappingMode="Absolute" StartPoint="0,0" EndPoint="0,20">
- <GradientStop Offset="0.05" Color="#ABADB3" />
- <GradientStop Offset="0.07" Color="#E2E3EA" />
- <GradientStop Offset="1" Color="#E3E9EF" />
- </LinearGradientBrush>
- <LinearGradientBrush x:Key="TextBox_MouseOver" StartPoint="0,0" EndPoint="0,1">
- <GradientStop Offset="0.05" Color="#5794BF" />
- <GradientStop Offset="0.07" Color="#B7D5EA" />
- <GradientStop Offset="1" Color="#C7E2F1" />
- </LinearGradientBrush>
- <LinearGradientBrush x:Key="TextBox_Focused" StartPoint="0,0" EndPoint="0,1">
- <GradientStop Offset="0.05" Color="#3D7BAD" />
- <GradientStop Offset="0.07" Color="#A4C9E3" />
- <GradientStop Offset="1" Color="#B7D9ED" />
- </LinearGradientBrush>
- <Style x:Key="LoginPasswordBoxStyle" TargetType="{x:Type PasswordBox}">
- <Style.Resources>
- <VisualBrush x:Key="TipBrush"
- AlignmentX="Left"
- Stretch="None"
- TileMode="None">
- <VisualBrush.Visual>
- <StackPanel Orientation="Horizontal">
- <TextBlock FontSize="10"
- Foreground="Transparent"
- Text="1111111" />
- <TextBlock FontSize="13"
- Foreground="#FFA1A6AA"
- Text="{x:Static resource:Client_Resource.Tip_PasswordInput}" />
- </StackPanel>
- </VisualBrush.Visual>
- </VisualBrush>
- </Style.Resources>
- <Setter Property="PasswordChar" Value="●" />
- <Setter Property="Foreground" Value="#FF444444" />
- <Setter Property="FontSize" Value="13" />
- <Setter Property="BorderThickness" Value="1" />
- <Setter Property="BorderBrush" Value="{StaticResource TextBoxBorder}" />
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="{x:Type PasswordBox}">
- <Grid Height="{TemplateBinding Height}"
- HorizontalAlignment="Stretch"
- VerticalAlignment="Stretch">
- <Border x:Name="Border"
- Height="{TemplateBinding Height}"
- Margin="0,0,8,0"
- Panel.ZIndex="1"
- Background="{TemplateBinding Background}"
- BorderBrush="{TemplateBinding BorderBrush}"
- BorderThickness="{TemplateBinding BorderThickness}"
- CornerRadius="1" />
- <Border x:Name="MouseOverVisual"
- Height="{TemplateBinding Height}"
- Margin="0,0,8,0"
- Panel.ZIndex="1"
- BorderBrush="{StaticResource TextBox_MouseOver}"
- BorderThickness="{TemplateBinding BorderThickness}"
- CornerRadius="1"
- Opacity="0" />
- <Border x:Name="FocusVisual"
- Height="{TemplateBinding Height}"
- Margin="0,0,8,0"
- Panel.ZIndex="1"
- BorderBrush="{StaticResource TextBox_Focused}"
- BorderThickness="{TemplateBinding BorderThickness}"
- CornerRadius="1"
- Opacity="0" />
- <Image Width="14"
- Height="14"
- Margin="12,0,0,0"
- HorizontalAlignment="Left"
- VerticalAlignment="Center"
- Panel.ZIndex="1"
- Source="{DynamicResource PasswordBoxIcon}" />
- <!--
- <Rectangle Width="12"
- Height="20"
- Margin="12,0,0,0"
- HorizontalAlignment="Left"
- VerticalAlignment="Center"
- Panel.ZIndex="1"
- Fill="{StaticResource PasswordBoxIcon}" />
- -->
- <ScrollViewer x:Name="PART_ContentHost"
- Margin="32,0,8,0"
- HorizontalAlignment="Stretch"
- VerticalAlignment="Center"
- VerticalContentAlignment="Center"
- Panel.ZIndex="2"
- Background="{x:Null}"
- FontSize="{TemplateBinding FontSize}"
- Foreground="{TemplateBinding Foreground}"
- SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />
- </Grid>
- <ControlTemplate.Triggers>
- <Trigger Property="IsMouseOver" Value="True">
- <Setter TargetName="MouseOverVisual" Property="Opacity" Value="1" />
- </Trigger>
- <Trigger Property="IsFocused" Value="True">
- <Setter TargetName="FocusVisual" Property="Opacity" Value="1" />
- </Trigger>
- <Trigger Property="IsEnabled" Value="False">
- <Setter TargetName="Border" Property="BorderBrush" Value="{StaticResource TextBox_DisabledBorder}" />
- <Setter TargetName="Border" Property="Background" Value="{StaticResource TextBox_DisabledBackground}" />
- <Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.GrayTextBrushKey}}" />
- </Trigger>
- <DataTrigger Binding="{Binding Password, UpdateSourceTrigger=PropertyChanged}" Value="{x:Null}">
- <Setter Property="Background" Value="{StaticResource TipBrush}" />
- </DataTrigger>
- <DataTrigger Binding="{Binding Password, UpdateSourceTrigger=PropertyChanged}" Value="">
- <Setter Property="Background" Value="{StaticResource TipBrush}" />
- </DataTrigger>
- </ControlTemplate.Triggers>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
- <Style TargetType="{x:Type xctk:BusyIndicator}">
- <Setter Property="BusyContent" Value="Please wait..." />
- <Setter Property="IsTabStop" Value="False" />
- <Setter Property="Focusable" Value="False" />
- <Setter Property="OverlayStyle">
- <Setter.Value>
- <Style TargetType="{x:Type Rectangle}">
- <Setter Property="Opacity" Value="0" />
- </Style>
- </Setter.Value>
- </Setter>
- <Setter Property="ProgressBarStyle">
- <Setter.Value>
- <Style TargetType="{x:Type ProgressBar}">
- <Setter Property="IsIndeterminate" Value="True" />
- <Setter Property="Height" Value="15" />
- <Setter Property="Margin" Value="8,0,8,8" />
- </Style>
- </Setter.Value>
- </Setter>
- <Setter Property="DisplayAfter" Value="0:0:0.1" />
- <Setter Property="HorizontalAlignment" Value="Stretch" />
- <Setter Property="VerticalAlignment" Value="Stretch" />
- <Setter Property="HorizontalContentAlignment" Value="Stretch" />
- <Setter Property="VerticalContentAlignment" Value="Stretch" />
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="{x:Type xctk:BusyIndicator}">
- <Grid>
- <VisualStateManager.VisualStateGroups>
- <VisualStateGroup x:Name="VisibilityStates">
- <VisualState x:Name="Hidden">
- <Storyboard>
- <ObjectAnimationUsingKeyFrames BeginTime="0"
- Duration="0:0:0.001"
- Storyboard.TargetName="busycontent"
- Storyboard.TargetProperty="(UIElement.Visibility)">
- <DiscreteObjectKeyFrame KeyTime="0">
- <DiscreteObjectKeyFrame.Value>
- <Visibility>Collapsed</Visibility>
- </DiscreteObjectKeyFrame.Value>
- </DiscreteObjectKeyFrame>
- </ObjectAnimationUsingKeyFrames>
- <ObjectAnimationUsingKeyFrames BeginTime="0"
- Duration="0:0:0.001"
- Storyboard.TargetName="overlay"
- Storyboard.TargetProperty="(UIElement.Visibility)">
- <DiscreteObjectKeyFrame KeyTime="0">
- <DiscreteObjectKeyFrame.Value>
- <Visibility>Collapsed</Visibility>
- </DiscreteObjectKeyFrame.Value>
- </DiscreteObjectKeyFrame>
- </ObjectAnimationUsingKeyFrames>
- </Storyboard>
- </VisualState>
- <VisualState x:Name="Visible">
- <Storyboard>
- <ObjectAnimationUsingKeyFrames BeginTime="0"
- Duration="0:0:0.001"
- Storyboard.TargetName="busycontent"
- Storyboard.TargetProperty="(UIElement.Visibility)">
- <DiscreteObjectKeyFrame KeyTime="0">
- <DiscreteObjectKeyFrame.Value>
- <Visibility>Visible</Visibility>
- </DiscreteObjectKeyFrame.Value>
- </DiscreteObjectKeyFrame>
- </ObjectAnimationUsingKeyFrames>
- <ObjectAnimationUsingKeyFrames BeginTime="0"
- Duration="0:0:0.001"
- Storyboard.TargetName="overlay"
- Storyboard.TargetProperty="(UIElement.Visibility)">
- <DiscreteObjectKeyFrame KeyTime="0">
- <DiscreteObjectKeyFrame.Value>
- <Visibility>Visible</Visibility>
- </DiscreteObjectKeyFrame.Value>
- </DiscreteObjectKeyFrame>
- </ObjectAnimationUsingKeyFrames>
- </Storyboard>
- </VisualState>
- </VisualStateGroup>
- <VisualStateGroup x:Name="BusyStatusStates">
- <VisualState x:Name="Idle">
- <Storyboard>
- <ObjectAnimationUsingKeyFrames BeginTime="0"
- Duration="0:0:0.001"
- Storyboard.TargetName="content"
- Storyboard.TargetProperty="(UIElement.IsEnabled)">
- <DiscreteObjectKeyFrame KeyTime="0">
- <DiscreteObjectKeyFrame.Value>
- <system:Boolean>True</system:Boolean>
- </DiscreteObjectKeyFrame.Value>
- </DiscreteObjectKeyFrame>
- </ObjectAnimationUsingKeyFrames>
- </Storyboard>
- </VisualState>
- <VisualState x:Name="Busy">
- <Storyboard>
- <ObjectAnimationUsingKeyFrames BeginTime="0"
- Duration="0:0:0.001"
- Storyboard.TargetName="content"
- Storyboard.TargetProperty="(UIElement.IsEnabled)">
- <DiscreteObjectKeyFrame KeyTime="0">
- <DiscreteObjectKeyFrame.Value>
- <system:Boolean>False</system:Boolean>
- </DiscreteObjectKeyFrame.Value>
- </DiscreteObjectKeyFrame>
- </ObjectAnimationUsingKeyFrames>
- </Storyboard>
- </VisualState>
- </VisualStateGroup>
- </VisualStateManager.VisualStateGroups>
- <ContentControl x:Name="content"
- HorizontalContentAlignment="{TemplateBinding HorizontalContentAlignment}"
- VerticalContentAlignment="{TemplateBinding VerticalContentAlignment}"
- Content="{TemplateBinding Content}"
- ContentTemplate="{TemplateBinding ContentTemplate}"
- Focusable="False"
- IsTabStop="False" />
- <Rectangle x:Name="overlay" Style="{TemplateBinding OverlayStyle}" />
- <ContentPresenter x:Name="busycontent">
- <ContentPresenter.Content>
- <Grid HorizontalAlignment="Center" VerticalAlignment="Center">
- <Border Background="White"
- BorderThickness="1"
- CornerRadius="2">
- <Border.BorderBrush>
- <LinearGradientBrush StartPoint="0.5,0" EndPoint="0.5,1">
- <GradientStop Offset="0" Color="#FFA3AEB9" />
- <GradientStop Offset="0.375" Color="#FF8399A9" />
- <GradientStop Offset="0.375" Color="#FF718597" />
- <GradientStop Offset="1" Color="#FF617584" />
- </LinearGradientBrush>
- </Border.BorderBrush>
- <Border Margin="1" CornerRadius="1.5">
- <Border.Background>
- <LinearGradientBrush StartPoint="0.5,0" EndPoint="0.5,1">
- <GradientStop Offset="0.02" Color="#FFF6F8F9" />
- <GradientStop Offset="0.996" Color="#FFB8B8B8" />
- </LinearGradientBrush>
- </Border.Background>
- <Grid MinWidth="150">
- <Grid.RowDefinitions>
- <RowDefinition />
- <RowDefinition Height="Auto" />
- </Grid.RowDefinitions>
- <ContentPresenter Margin="8"
- Content="{TemplateBinding BusyContent}"
- ContentTemplate="{TemplateBinding BusyContentTemplate}" />
- <ProgressBar Grid.Row="1" Style="{TemplateBinding ProgressBarStyle}" />
- </Grid>
- </Border>
- </Border>
- </Grid>
- </ContentPresenter.Content>
- </ContentPresenter>
- </Grid>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
- </ResourceDictionary>
|