| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990 |
- <Window x:Class="ivf_tl_Manage.Win.UserBusWindow"
- 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:local="clr-namespace:ivf_tl_Manage.Win"
- xmlns:customControl="clr-namespace:ivf_tl_CustomControls;assembly=ivf_tl_CustomControls_PC"
- xmlns:controls="clr-namespace:ivf_tl_Manage.UserControls"
- mc:Ignorable="d"
- FontFamily="{StaticResource sourceHan}"
- WindowStyle="None"
- ShowInTaskbar="False"
- WindowStartupLocation="CenterOwner"
- Background="Transparent"
- AllowsTransparency="True"
- Width="710" Height="615">
- <Canvas Width="710" Height="615">
- <Canvas.Background>
- <ImageBrush ImageSource="pack://application:,,,/ivf_tl_Manage;component/Resources/Images/RoleSettingWindowBackground.png"/>
- </Canvas.Background>
- <DockPanel Canvas.Left="60" Canvas.Top="57">
- <TextBlock DockPanel.Dock="Top" Margin="2 0 2 2" x:Name="_title_TextBlock" Canvas.Left="60" Canvas.Top="57" Text="{DynamicResource 0216}" FontWeight="Medium" Foreground="Black" FontSize="20"/>
- <Rectangle DockPanel.Dock="Bottom" Canvas.Left="58" Canvas.Top="90" Height="3" Fill="#4D75AC" RadiusX="1.5" RadiusY="1.5"/>
- </DockPanel>
- <!--<TextBlock x:Name="_title_TextBlock" Canvas.Left="60" Canvas.Top="57" Text="{DynamicResource 0216}" FontWeight="Medium" Foreground="Black" FontSize="20"/>
- <Rectangle Canvas.Left="58" Canvas.Top="90" Width="122" Height="2" Fill="#4D75AC" RadiusX="1" RadiusY="1"/>-->
- <customControl:ButtonImage Canvas.Left="634" Canvas.Top="60" Width="18" Height="18" Click="Cancel_Click"
- IconSource="pack://application:,,,/ivf_tl_Manage;component/Resources/Images/CloseGrayIcon.png"
- MouseOverIconSource="pack://application:,,,/ivf_tl_Manage;component/Resources/Images/CloseBlueIcon.png"/>
- <Border Canvas.Left="60" Canvas.Top="110" Width="590" Height="365" BorderThickness="1" BorderBrush="#C6C6C6" CornerRadius="6">
- <Grid>
- <Grid.ColumnDefinitions>
- <ColumnDefinition />
- <ColumnDefinition Width="auto"/>
- <ColumnDefinition Width="auto"/>
- </Grid.ColumnDefinitions>
- <ListBox x:Name="_listBox" Grid.Column="0" Style="{StaticResource ListBoxStyleUserBus}" HorizontalContentAlignment="Stretch" MaxHeight="355" VerticalAlignment="Top"
- BorderThickness="0" Background="Transparent" SelectionChanged="_listBox_SelectionChanged" Margin="0 5 0 0">
- <ListBox.ItemContainerStyle>
- <Style TargetType="{x:Type ListBoxItem}">
- <Setter Property="FocusVisualStyle" Value="{x:Null}"/>
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="{x:Type ListBoxItem}">
- <StackPanel x:Name="_listBoxItem" Background="Transparent" Orientation="Horizontal" HorizontalAlignment="Stretch" Height="30">
- <Image VerticalAlignment="Center" Width="20" Height="20" Margin="15 0 10 0" Tag="{Binding}" MouseDown="Image_MouseDown"
- Source="{Binding isOpen,Converter={StaticResource CustomButtonMouseOverIconConvert},ConverterParameter=SettingIcon}"/>
- <TextBlock VerticalAlignment="Center" Text="{Binding name}" FontWeight="Medium" Foreground="#4D4D4D" FontSize="16"/>
- </StackPanel>
- <ControlTemplate.Triggers>
- <Trigger Property="IsSelected" Value="True">
- <Setter TargetName="_listBoxItem" Property="Background" Value="#ECEEF2"/>
- </Trigger>
- </ControlTemplate.Triggers>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
- </ListBox.ItemContainerStyle>
- </ListBox>
- <Rectangle Grid.Column="1" Width="1" Height="365" Fill="#C6C6C6"
- Visibility="{Binding ElementName=_children,Path=HasItems,Converter={StaticResource BooleanToVisibilityConverter}}"/>
- <Border Width="294" Height="363" Grid.Column="2" Background="#ECEEF2" CornerRadius="0 5 5 0"
- Visibility="{Binding ElementName=_children,Path=HasItems,Converter={StaticResource BooleanToVisibilityConverter}}">
- <ListBox x:Name="_children" DisplayMemberPath="name" Style="{StaticResource ListBoxStyleUserBus}" Width="294" HorizontalContentAlignment="Stretch" MaxHeight="355" VerticalAlignment="Top"
- BorderThickness="0" Background="Transparent" Margin="0 5 0 0" FontWeight="Medium" Foreground="#4D4D4D" FontSize="16"
- >
- </ListBox>
- </Border>
- </Grid>
- </Border>
- <TextBlock x:Name="message" Canvas.Left="100" Canvas.Top="508" Text="" MaxWidth="320" FontWeight="Medium" FontSize="16" Foreground="Red" TextWrapping="Wrap"/>
- <customControl:ButtonCornerRadius IsTabStop="False" Canvas.Left="554" Canvas.Top="497" Width="104" Height="56" Click="Ok_Click" IsDefault="True" Content="{DynamicResource 0024}" FontSize="14" MarginMask="10">
- <customControl:ButtonCornerRadius.Background>
- <ImageBrush ImageSource="pack://application:,,,/ivf_tl_Manage;component/Resources/Images/OkButtonIcon1.png"/>
- </customControl:ButtonCornerRadius.Background>
- </customControl:ButtonCornerRadius>
- <customControl:ButtonCornerRadius IsTabStop="False" Canvas.Left="446" Canvas.Top="497" Width="104" Height="56" Click="Cancel_Click" IsCancel="True" Content="{DynamicResource 0025}" Foreground="#717171" FontSize="14" MarginMask="10">
- <customControl:ButtonCornerRadius.Background>
- <ImageBrush ImageSource="pack://application:,,,/ivf_tl_Manage;component/Resources/Images/CancelButtonIcon1.png"/>
- </customControl:ButtonCornerRadius.Background>
- </customControl:ButtonCornerRadius>
- <!--<customControl:ButtonImage IsTabStop="False" Canvas.Left="446" Canvas.Top="497" Width="104" Height="56" Click="Cancel_Click" IsCancel="True" IconSource="pack://application:,,,/ivf_tl_Manage;component/Resources/Images/CancelButtonIcon.png" MouseOverIconSource="pack://application:,,,/ivf_tl_Manage;component/Resources/Images/CancelButtonMouseOverIcon.png"/>-->
- <!--<customControl:ButtonImage IsTabStop="False" Canvas.Left="554" Canvas.Top="497" Width="104" Height="56" Click="Ok_Click" IsDefault="True" IconSource="pack://application:,,,/ivf_tl_Manage;component/Resources/Images/OkButtonIcon.png" MouseOverIconSource="pack://application:,,,/ivf_tl_Manage;component/Resources/Images/OkButtonMouseOverIcon.png"/>-->
- </Canvas>
- </Window>
|