|
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384 |
- <UserControl x:Class="BPASmartClient.SCADAControl.CustomerControls.Silos"
- 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:BPASmartClient.SCADAControl"
- mc:Ignorable="d"
- d:DesignHeight="270" d:DesignWidth="180" >
- <Grid>
- <Viewbox Width="auto" Height="auto" Grid.Row="1">
- <Grid Width="180" Height="270">
- <Grid.RowDefinitions>
- <RowDefinition />
- <RowDefinition />
- </Grid.RowDefinitions>
- <TextBlock
- HorizontalAlignment="Center"
- VerticalAlignment="Top"
- Margin="0 10 0 35"
- FontSize="20"
- Foreground="#FF1FD622"
- Tag="出料控制"
- Text="出料中..." Visibility="Collapsed"/>
- <Ellipse Grid.Row="0" Tag="出料圆" Margin="0,40,0,0" Visibility="Collapsed" StrokeThickness="60" Width="150" Height="70" RenderTransformOrigin="0.5,0.5" VerticalAlignment="Top">
- <Ellipse.RenderTransform>
- <TransformGroup>
- <ScaleTransform/>
- <SkewTransform AngleY="0"/>
- <RotateTransform Angle="0"/>
- <TranslateTransform/>
- </TransformGroup>
- </Ellipse.RenderTransform>
- <Ellipse.Stroke>
- <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0" Opacity="0.4">
- <GradientStop Color="#CCA48E42"/>
- <GradientStop Color="#CC2D48DA" Offset="1"/>
- <GradientStop Color="#FF3FD256" Offset="0.305"/>
- <!--<GradientStop Color="#FFB12C87" Offset="0.67"/>-->
- </LinearGradientBrush>
- </Ellipse.Stroke>
- </Ellipse>
-
-
- <TextBlock
- HorizontalAlignment="Center"
- VerticalAlignment="Bottom"
- Margin="0 0 0 35"
- FontSize="45"
- Foreground="#FFCCD61F" Tag="Title"
- Text="{Binding Title,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}" />
- <StackPanel Grid.Row="1" Orientation="Horizontal" HorizontalAlignment="Center">
- <TextBlock
- Margin="0,20,0,0"
- HorizontalAlignment="Center"
- FontSize="20"
- Foreground="#FF00FFF9" Tag="Value"
- Text="{Binding Value,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}" />
- <TextBlock
- Margin="0,20,0,0"
- HorizontalAlignment="Center"
- FontSize="20"
- Foreground="#FF00FFF9"
- Text="(g)" />
- </StackPanel>
- <TextBlock
- Grid.Row="1" Tag="Text"
- Margin="0,70,0,0"
- HorizontalAlignment="Center"
- FontSize="25"
- Foreground="#FFFFA400"
- Text="{Binding Text,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}" />
- <Image
- Grid.RowSpan="2"
- Source="/BPASmartClient.SCADAControl;component/Images/光柱.png"
- Stretch="Fill" />
- <!--<StackPanel Tag="ControlEvent" HorizontalAlignment="Right" Orientation="Vertical" Grid.Row="1" VerticalAlignment="Bottom" >
- <Image Margin="20,10,0,0" Tag="出料" Source="/BPASmartClient.SCADAControl;component/Images/借出.png" Cursor="Hand" ToolTip="出料" Width="24" ></Image>
- <Image Margin="20,10,0,10" Tag="停止出料" Source="/BPASmartClient.SCADAControl;component/Images/退出.png" Cursor="Hand" Width="24" ToolTip="停止出料"></Image>
- </StackPanel>-->
- </Grid>
- </Viewbox>
-
- </Grid>
- </UserControl>
|