| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188 |
- <Window
- x:Class="SHJX.Service.Shell.Views.Setting.SettingWindow"
- 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:i="http://schemas.microsoft.com/xaml/behaviors"
- xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
- xmlns:prism="http://prismlibrary.com/"
- xmlns:pu="clr-namespace:Panuon.UI.Silver;assembly=Panuon.UI.Silver"
- xmlns:vc="clr-namespace:SHJX.Service.Common.ElementHelper;assembly=SHJX.Service.Common"
- Title="设置"
- Width="764"
- Height="900"
- prism:ViewModelLocator.AutoWireViewModel="True"
- vc:DialogCloseHelper.DialogResult="{Binding DialogResult}"
- AllowsTransparency="True"
- Background="Transparent"
- ResizeMode="NoResize"
- WindowStartupLocation="CenterScreen"
- WindowStyle="None"
- mc:Ignorable="d">
- <i:Interaction.Triggers>
- <i:EventTrigger EventName="Loaded">
- <i:InvokeCommandAction Command="{Binding LoginLoadingCommand}" />
- </i:EventTrigger>
- <i:EventTrigger EventName="Closing">
- <i:InvokeCommandAction Command="{Binding ClosingCommand}" />
- </i:EventTrigger>
- </i:Interaction.Triggers>
- <Window.Resources>
- <DataTemplate x:Key="tabTemplate">
- <TabItem Header="{Binding Header}" />
- </DataTemplate>
- </Window.Resources>
- <Grid>
- <Grid.RowDefinitions>
- <RowDefinition Height="0.7*" />
- <RowDefinition Height="1*" />
- <RowDefinition Height="15*" />
- <RowDefinition Height="1*" />
- </Grid.RowDefinitions>
- <Border
- Grid.Row="0"
- Grid.RowSpan="4"
- Margin="3"
- Background="White"
- BorderBrush="#886452A4"
- BorderThickness="3"
- CornerRadius="5">
- <Border.Effect>
- <DropShadowEffect
- BlurRadius="10"
- Opacity="0.6"
- ShadowDepth="0"
- Color="LightGray" />
- </Border.Effect>
- </Border>
- <Border
- Grid.Row="0"
- Margin="5"
- Background="#6452A4"
- CornerRadius="5,5,0,0" />
- <Grid
- x:Name="SettingTag"
- Grid.Row="0"
- Background="Transparent"
- MouseLeftButtonDown="SettingTag_MouseLeftButtonDown">
- <TextBlock
- Margin="10,0,0,0"
- HorizontalAlignment="Left"
- VerticalAlignment="Center"
- FontFamily="幼圆"
- FontWeight="UltraBlack"
- Foreground="White"
- Text="设置" />
- <Button
- Name="btn_setting_close"
- Width="25"
- Height="25"
- Margin="0,0,10,0"
- HorizontalAlignment="Right"
- VerticalAlignment="Center"
- pu:ButtonHelper.ClickStyle="Sink"
- pu:ButtonHelper.CornerRadius="15"
- pu:ButtonHelper.HoverBrush="#929FDE"
- Background="Transparent"
- Click="btn_setting_close_Click"
- Cursor="Hand">
- <Image
- Width="20"
- Height="20"
- Source="/SHJX.Service.Resource;component/Assets/Photos/关闭.png" />
- </Button>
- </Grid>
- <Border
- Grid.Row="1"
- Width="740"
- Margin="0,5,0,5"
- Background="#6452A4"
- CornerRadius="5">
- <TabControl
- x:Name="Menu"
- Margin="20,0"
- HorizontalAlignment="Stretch"
- VerticalAlignment="Bottom"
- pu:TabControlHelper.SelectedForeground="White"
- Background="Transparent"
- Cursor="Hand"
- Foreground="#CCCCCC"
- ItemTemplate="{StaticResource ResourceKey=tabTemplate}"
- ItemsSource="{Binding TabItemInfos}">
- <i:Interaction.Triggers>
- <i:EventTrigger EventName="SelectionChanged">
- <i:InvokeCommandAction Command="{Binding MenuSelectionChangedCommand}" CommandParameter="{Binding ElementName=Menu, Path=SelectedItem.Header}" />
- </i:EventTrigger>
- </i:Interaction.Triggers>
- </TabControl>
- </Border>
- <Border
- Grid.Row="2"
- Width="740"
- Margin="0,0,0,5"
- Background="#F6FBFF"
- BorderBrush="#6452A4"
- BorderThickness="2"
- CornerRadius="5">
- <ScrollViewer
- HorizontalAlignment="Stretch"
- BorderBrush="#666666"
- BorderThickness="0"
- HorizontalScrollBarVisibility="Disabled"
- VerticalScrollBarVisibility="Auto">
- <ContentControl x:Name="settingOptionRegion" />
- </ScrollViewer>
- </Border>
- <Border
- Grid.Row="3"
- Width="740"
- Margin="0,0,0,10"
- HorizontalAlignment="Center"
- Background="#6452A4"
- CornerRadius="5">
- <StackPanel
- Margin="0,0,30,0"
- HorizontalAlignment="Right"
- Orientation="Horizontal">
- <Button
- Width="80"
- Height="25"
- Margin="10,0"
- pu:ButtonHelper.ButtonStyle="Hollow"
- pu:ButtonHelper.ClickStyle="Sink"
- pu:ButtonHelper.CornerRadius="10"
- pu:ButtonHelper.HoverBrush="#929FDE"
- BorderBrush="White"
- Command="{Binding UpdateSettingCommand}"
- Content="确认"
- Cursor="Hand"
- FontFamily="{StaticResource FontAwesome}"
- Foreground="White" />
- <Button
- Width="80"
- Height="25"
- Margin="10,0"
- pu:ButtonHelper.ButtonStyle="Hollow"
- pu:ButtonHelper.ClickStyle="Sink"
- pu:ButtonHelper.CornerRadius="10"
- pu:ButtonHelper.HoverBrush="#929FDE"
- BorderBrush="White"
- Command="{Binding CancelSettingUpdate}"
- Content="取消"
- Cursor="Hand"
- FontFamily="{StaticResource FontAwesome}"
- Foreground="White" />
- </StackPanel>
- </Border>
- </Grid>
- </Window>
|