| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- <UserControl x:Class="ivf_tl_Manage.UserControls.TLStateInfoUserControl"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
- xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
- xmlns:local="clr-namespace:ivf_tl_Manage.UserControls"
- xmlns:custom="clr-namespace:ivf_tl_CustomControls;assembly=ivf_tl_CustomControls_PC"
- mc:Ignorable="d"
- Width="235" Height="348"
- FontFamily="{StaticResource sourceHan}"
- x:Name="_tLStateInfoUserControl">
- <!--<custom:BorderCustom Width="215" Height="318" CornerRadius="14"
- State0Background="#CBCBCB" State0MouseOverBackground="#C3C3C3"
- State1Background="#E7E7E7" State1MouseOverBackground="#DDDDDD"
- State0EffectOpacity="0.28" State1EffectOpacity="0.25"
- State="{Binding ElementName=_tLStateInfoUserControl,Path=State}">
- </custom:BorderCustom>-->
- <custom:CanvasCustom Width="235" Height="348"
- BackgroundSource="{Binding ElementName=_tLStateInfoUserControl,Path=State, Converter={StaticResource CustomButtonIconConvert}, ConverterParameter=tlState}"
- MouseOverBackgroundSource="{Binding ElementName=_tLStateInfoUserControl,Path=State, Converter={StaticResource CustomButtonMouseOverIconConvert}, ConverterParameter=tlState}">
- <Grid Width="235" Height="348" >
- <Image Margin="28 33 0 0" Width="24" Height="24"
- VerticalAlignment="Top" HorizontalAlignment="Left"
- Source="{Binding ElementName=_tLStateInfoUserControl,Path=State, Converter={StaticResource TLStateInfoConvert}, ConverterParameter=1}"/>
- <TextBlock Margin="53 33 0 0"
- FontSize="16" FontWeight="Medium"
- VerticalAlignment="Top" HorizontalAlignment="Left"
- Foreground="{Binding ElementName=_tLStateInfoUserControl,Path=State, Converter={StaticResource ForegroundConver}, ConverterParameter=text}"
- Text="{Binding ElementName=_tLStateInfoUserControl,Path=State, Converter={StaticResource TLStateInfoConvert}, ConverterParameter=0}"/>
- <TextBlock Grid.Row="1" FontSize="22" Margin="20 0 20 0" FontWeight="Medium" TextWrapping="Wrap"
- HorizontalAlignment="Center" VerticalAlignment="Center"
- Foreground="{Binding ElementName=_tLStateInfoUserControl,Path=State, Converter={StaticResource ForegroundConver}, ConverterParameter=text}"
- Text="{Binding ElementName=_tLStateInfoUserControl,Path=TlName}"/>
- <TextBlock Grid.Row="1" FontSize="16" Margin="20 0 20 35" FontWeight="Medium" TextWrapping="Wrap"
- HorizontalAlignment="Center" VerticalAlignment="Bottom"
- Foreground="{Binding ElementName=_tLStateInfoUserControl,Path=State, Converter={StaticResource ForegroundConver}, ConverterParameter=text}"
- >
- <Run Text="{DynamicResource 0244}"/><Run Text="{Binding ElementName=_tLStateInfoUserControl,Path=Pre,StringFormat={}:{0}mbar}"/>
- </TextBlock>
- </Grid>
- </custom:CanvasCustom>
- </UserControl>
|