终端一体化运控平台
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

32 lines
1.9 KiB

  1. <UserControl x:Class="BPASmartClient.SCADAControl.CustomerControls.NewConveyorBelt"
  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:BPASmartClient.SCADAControl.CustomerControls"
  7. mc:Ignorable="d"
  8. x:Name="gr"
  9. Margin="0,0,0,0"
  10. d:DesignHeight="400" d:DesignWidth="1200">
  11. <Grid >
  12. <Viewbox Width="auto" Height="auto">
  13. <Canvas Width="{Binding ElementName=gr, Path=ActualWidth}" Height="{Binding ElementName=gr, Path=ActualHeight}">
  14. <Path
  15. Tag="mp"
  16. Margin="0"
  17. Stroke="{Binding StrokeFillBrush, RelativeSource={RelativeSource AncestorType=UserControl, Mode=FindAncestor}}"
  18. StrokeDashArray="{Binding StrokeDashArray, RelativeSource={RelativeSource AncestorType=UserControl, Mode=FindAncestor}}"
  19. StrokeThickness="{Binding ConveyorBeltWidth, RelativeSource={RelativeSource AncestorType=UserControl, Mode=FindAncestor}}" />
  20. <Path
  21. Tag="cb"
  22. Fill="Transparent"
  23. Stroke="{Binding StrokeBrush, RelativeSource={RelativeSource AncestorType=UserControl, Mode=FindAncestor}}"
  24. StrokeThickness="{Binding StrokeThickness, RelativeSource={RelativeSource AncestorType=UserControl, Mode=FindAncestor}}" />
  25. </Canvas>
  26. </Viewbox>
  27. <TextBlock Text="{Binding Text,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}" Tag="标题" HorizontalAlignment="Left" VerticalAlignment="Bottom" Margin="0,-40,0,-40" Foreground="#FF25AD12" FontSize="30"></TextBlock>
  28. </Grid>
  29. </UserControl>