TLStateInfoUserControl.xaml 3.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. <UserControl x:Class="ivf_tl_Manage.UserControls.TLStateInfoUserControl"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  5. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  6. xmlns:local="clr-namespace:ivf_tl_Manage.UserControls"
  7. xmlns:custom="clr-namespace:ivf_tl_CustomControls;assembly=ivf_tl_CustomControls_PC"
  8. mc:Ignorable="d"
  9. Width="235" Height="348"
  10. FontFamily="{StaticResource sourceHan}"
  11. x:Name="_tLStateInfoUserControl">
  12. <!--<custom:BorderCustom Width="215" Height="318" CornerRadius="14"
  13. State0Background="#CBCBCB" State0MouseOverBackground="#C3C3C3"
  14. State1Background="#E7E7E7" State1MouseOverBackground="#DDDDDD"
  15. State0EffectOpacity="0.28" State1EffectOpacity="0.25"
  16. State="{Binding ElementName=_tLStateInfoUserControl,Path=State}">
  17. </custom:BorderCustom>-->
  18. <custom:CanvasCustom Width="235" Height="348"
  19. BackgroundSource="{Binding ElementName=_tLStateInfoUserControl,Path=State, Converter={StaticResource CustomButtonIconConvert}, ConverterParameter=tlState}"
  20. MouseOverBackgroundSource="{Binding ElementName=_tLStateInfoUserControl,Path=State, Converter={StaticResource CustomButtonMouseOverIconConvert}, ConverterParameter=tlState}">
  21. <Grid Width="235" Height="348" >
  22. <Image Margin="28 33 0 0" Width="24" Height="24"
  23. VerticalAlignment="Top" HorizontalAlignment="Left"
  24. Source="{Binding ElementName=_tLStateInfoUserControl,Path=State, Converter={StaticResource TLStateInfoConvert}, ConverterParameter=1}"/>
  25. <TextBlock Margin="53 33 0 0"
  26. FontSize="16" FontWeight="Medium"
  27. VerticalAlignment="Top" HorizontalAlignment="Left"
  28. Foreground="{Binding ElementName=_tLStateInfoUserControl,Path=State, Converter={StaticResource ForegroundConver}, ConverterParameter=text}"
  29. Text="{Binding ElementName=_tLStateInfoUserControl,Path=State, Converter={StaticResource TLStateInfoConvert}, ConverterParameter=0}"/>
  30. <TextBlock Grid.Row="1" FontSize="22" Margin="20 0 20 0" FontWeight="Medium" TextWrapping="Wrap"
  31. HorizontalAlignment="Center" VerticalAlignment="Center"
  32. Foreground="{Binding ElementName=_tLStateInfoUserControl,Path=State, Converter={StaticResource ForegroundConver}, ConverterParameter=text}"
  33. Text="{Binding ElementName=_tLStateInfoUserControl,Path=TlName}"/>
  34. <TextBlock Grid.Row="1" FontSize="16" Margin="20 0 20 35" FontWeight="Medium" TextWrapping="Wrap"
  35. HorizontalAlignment="Center" VerticalAlignment="Bottom"
  36. Foreground="{Binding ElementName=_tLStateInfoUserControl,Path=State, Converter={StaticResource ForegroundConver}, ConverterParameter=text}"
  37. >
  38. <Run Text="{DynamicResource 0244}"/><Run Text="{Binding ElementName=_tLStateInfoUserControl,Path=Pre,StringFormat={}:{0}mbar}"/>
  39. </TextBlock>
  40. </Grid>
  41. </custom:CanvasCustom>
  42. </UserControl>