Setting a ""ControlTemplate"" with a ""TargetType"" B on a control of type A causes Cider to hang.
For example:
<Window
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Name="MainWindow"
Background="White"
Width="325" Height="300"
x:Class="AvalonCSWindowApplication.Window1"
Title="My Application">
<Window.Resources>
[<ControlTemplate] x:Key="ButtonEncutizer" TargetType="{x:Type CheckBox}">
[<StackPanel>]
<Ellipse Width="40" Height="40" Fill="Orchid" />
[<TextBlock] Text="hoho"></TextBlock>
[</StackPanel>]
[</ControlTemplate>]
</Window.Resources>
<Grid>
<Button Template="{StaticResource ButtonEncutizer}">Yoyo</Button>
</Grid>
</Window>
The RoutedEvent Property of ""EventTriggers"" in Control Templates Are Not Resolved:
For example, in the following example, the ""RoutedEvent"" properties cause design time failures:
[<ControlTemplate.Triggers>]
[<EventTrigger] RoutedEvent="Canvas.MouseEnter">
[<EventTrigger.Actions>]
[<BeginStoryboard] Storyboard="{StaticResource PieceEntryStoryboard}" />
[</EventTrigger.Actions>]
[</EventTrigger>]
[<EventTrigger] RoutedEvent="Canvas.MouseLeave">
[<EventTrigger.Actions>]
[<BeginStoryboard] Storyboard="{StaticResource PieceExitStoryboard}" />
[</EventTrigger.Actions>]
[</EventTrigger>]
[</ControlTemplate.Triggers>]
The Value for a Trigger Condition Property is Not Resolved
For example, the following will result in an error indicationg that the 'True' value is not valid for the ""IsMouseOver"" property:
[<MultiTrigger>]
[<MultiTrigger.Conditions>]
<Condition Property="IsMouseOver" Value="True"/>
[</MultiTrigger.Conditions>]
<Setter Property="Background" Value="{DynamicResource CheckedBrush}"/>
[</MultiTrigger>]
A workaround to this issue is to explictly specify the value with element syntax:
[<MultiTrigger>]
[<MultiTrigger.Conditions>]
<Condition Property="IsMouseOver">
<Condition.Value>
<s:Bool>True</s:Bool>
</Condition.Value>
</Condition>
[</MultiTrigger.Conditions>]
<Setter Property="Background" Value="{DynamicResource CheckedBrush}"/>
[</MultiTrigger>]