Bath.xaml 1.0 KB

12345678910111213141516
  1. <UserControl x:Class="Aitex.Core.UI.Control.Bath"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:local="clr-namespace:Aitex.Core.UI.Control"
  5. x:Name="bathControl"
  6. Panel.ZIndex="-1"
  7. Height="60" Width="260" BorderThickness="1"
  8. MouseEnter="OnMouseEnter">
  9. <Canvas x:Name="waterArea" Background="Transparent" >
  10. <Polyline Points="0,0 0,100 280,100 280,0" Width="{Binding ElementName=bathControl,Path=Width}" Stroke="Silver" Height="60" />
  11. <Label Name="lblBathTemperature" Panel.ZIndex="99" Canvas.Top="45" Width="{Binding ElementName=bathControl,Path=Width}" HorizontalAlignment="Center" FontSize="18" VerticalAlignment="Center" HorizontalContentAlignment="Center" VerticalContentAlignment="Center">10℃</Label>
  12. <Canvas Canvas.Top="10" x:Name="cavBath" Width="{Binding ElementName=bathControl,Path=Width}" Height="{Binding ElementName=bathControl,Path=Height}" Background="SkyBlue" />
  13. </Canvas>
  14. </UserControl>