<UserControl x:Class="OpenTapEditor.ErrorSpan"
|
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:OpenTapEditor"
|
mc:Ignorable="d"
|
x:Name="self"
|
VerticalAlignment="Center"
|
d:DesignHeight="450" d:DesignWidth="800">
|
<Grid ToolTip="{Binding ErrorMessage,ElementName=self}">
|
<Grid.Style>
|
<Style TargetType="Grid">
|
<Setter Property="Visibility" Value="Collapsed"/>
|
<Style.Triggers>
|
<DataTrigger Binding="{Binding HasError,ElementName=self}" Value="True">
|
<Setter Property="Visibility" Value="Visible"/>
|
</DataTrigger>
|
</Style.Triggers>
|
</Style>
|
</Grid.Style>
|
|
<Ellipse Height="14" Width="14" VerticalAlignment="Center" Fill="Red">
|
|
</Ellipse>
|
<Label FontWeight="UltraBold" HorizontalContentAlignment="Center" VerticalContentAlignment="Center"
|
Foreground="White" Content="!" Margin="0" Padding="0">
|
</Label>
|
</Grid>
|
</UserControl>
|