Blend throws exeption after I select Edit empty template on my control placed somewhere on test page. Not actually the message box, but it draws it within control's border.
Here is my generic xaml, it's big, so I show only the meaning part
<ResourceDictionary
xmlns="http://schemas.microsoft.com/client/2007"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:UI="clr-namespace:UI;assembly=UI"
xmlns:vsm="clr-namespace:System.Windows;assembly=System.Windows"
>
... helper style
<Style TargetType="Button" x:Key="scrollerStyle">
<Setter Property="IsEnabled" Value="true" />
...setters
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="Button">
<Grid>
<vsm:VisualStateManager.VisualStateGroups>
<vsm:VisualStateGroup x:Name="FocusStates">
.. vsm like button has
</vsm:VisualStateManager.VisualStateGroups>
<Path Data="{TemplateBinding Tag}" Fill="#FF1041C6" Stretch="Fill" x:Name="path"/>
</Grid>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
... the thing! default style for scroller
<Style TargetType="UI:Scroller">
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="UI:Scroller">
<Grid Background="{TemplateBinding Background}">
<UI:ScrollerContent
x:Name="scrollContent"
Content="{TemplateBinding Content}"
ContentTemplate="{TemplateBinding ContentTemplate}"
Cursor="{TemplateBinding Cursor}"
Background="{TemplateBinding Background}"
FontFamily="{TemplateBinding FontFamily}"
FontSize="{TemplateBinding FontSize}"
FontStretch="{TemplateBinding FontStretch}"
FontStyle="{TemplateBinding FontStyle}"
FontWeight="{TemplateBinding FontWeight}"
Foreground="{TemplateBinding Foreground}"
HorizontalContentAlignment="{TemplateBinding HorizontalContentAlignment}"
TextAlignment="{TemplateBinding TextAlignment}"
TextDecorations="{TemplateBinding TextDecorations}"
TextWrapping="{TemplateBinding TextWrapping}"
VerticalContentAlignment="{TemplateBinding VerticalContentAlignment}"
Margin="{TemplateBinding Padding}" />
<Button x:Name="upButton" Tag="M0,0 L-1,1 L1,1z" Style="{StaticResource scrollerStyle}" VerticalAlignment="Top"/>
<Button x:Name="downButton" Tag="M0,0 L-1,-1 L1,-1z" Style="{StaticResource scrollerStyle}" VerticalAlignment="Bottom"/>
</Grid>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
</ResourceDictionary>