Hi,
I am hacking together some code from the internet to make a store app...but am having a problem with one part.
I have a button which has a style on it. This style is based on another style...BasedOn="{StaticResource GlyphButtonStyle}"...see below. NB I have striped out some code to make it simple.
Whenever I have the 'based on' part in the first style then the project will not debug into the breakpoint on page load....it just shows a black page. Once I remove the 'based on' part then it debugs into the breakpoint on page load.
NB The button looks fine on the xaml page in VS.
Am I missing something?
Thanks
<Style TargetType="Button" x:Key="AddGlyphButton" BasedOn="{StaticResource GlyphButtonStyle}">
<Setter Property="AutomationProperties.Name" Value="Add a New" />
<Setter Property="Content" Value="" />
</Style>
<Style TargetType="Button" x:Key="GlyphButtonStyle">
<Setter Property="FontFamily" Value="Segoe UI Symbol" />
<Setter Property="Margin" Value="0" />
<Setter Property="Padding" Value="0" />
<Setter Property="FontSize" Value="18" />
</Style>