The following xaml freezes NoesisGUI during layout loop because of continuous changes to the over element:
<Grid
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:i="http://schemas.microsoft.com/expression/2010/interactivity"
xmlns:ei="http://schemas.microsoft.com/expression/2010/interactions">
<Button Background="Red" BorderThickness="0" HorizontalAlignment="Center" VerticalAlignment="Center" Padding="0">
<Border>
<TextBlock x:Name="ShortcutName" Background="Black" Text="Ctrl+Z" Visibility="Visible" />
</Border>
<i:Interaction.Triggers>
<i:EventTrigger EventName="MouseEnter">
<ei:ChangePropertyAction PropertyName="Visibility" TargetName="ShortcutName" Value="Collapsed" />
</i:EventTrigger>
<i:EventTrigger EventName="MouseLeave">
<ei:ChangePropertyAction PropertyName="Visibility" TargetName="ShortcutName" Value="Visible" />
</i:EventTrigger>
</i:Interaction.Triggers>
</Button>
</Grid> |