chr
2026-04-05 fe750b791d5b517cc4e9bc8e99a9a75139a0cfba
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<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>