1234567891011121314151617181920212223242526 |
- <UserControl x:Class="NEIntelligentControl2.Views.Windturbine.ComparisonTag"
- 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:NEIntelligentControl2.Views.Windturbine"
- mc:Ignorable="d"
- d:DesignHeight="450" d:DesignWidth="800">
- <Grid>
- <ProgressBar Maximum="1" Value="{Binding RelativeSource={RelativeSource AncestorType=UserControl, Mode=FindAncestor}, Path=Info.Progress}" Foreground="#FF37D253" BorderBrush="{x:Null}" Background="{x:Null}">
- <ProgressBar.Style>
- <Style TargetType="ProgressBar">
- <Style.Triggers>
- <DataTrigger Binding="{Binding RelativeSource={RelativeSource AncestorType=UserControl, Mode=FindAncestor},Path=Info.IsShowProgress}" Value="True">
- <Setter Property="Visibility" Value="Visible"/>
- </DataTrigger>
- <DataTrigger Binding="{Binding RelativeSource={RelativeSource AncestorType=UserControl, Mode=FindAncestor},Path=Info.IsShowProgress}" Value="False">
- <Setter Property="Visibility" Value="Collapsed"/>
- </DataTrigger>
- </Style.Triggers>
- </Style>
- </ProgressBar.Style>
- </ProgressBar>
- <TextBlock x:Name="_TBMain" Text="{Binding RelativeSource={RelativeSource AncestorType=UserControl, Mode=FindAncestor}, Path=Info.Value}" HorizontalAlignment="Right" FontSize="14"/>
- </Grid>
- </UserControl>
|