Hi..
I have a custom button... the XAML is JUST
<Button x:Class=".BaseTypes.NoteBu
tton"
xmlns="
http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="
http://schemas.microsoft.com/winfx/2006/xaml"
Style="{StaticResource DefaultButton}">
</Button>
Along with code behind...
I get an error that the static resource cannot be found...
I've tried adding the Resource Dictionary like this.. but it doesn't work either
<Button x:Class="LandonIP.PWBReade
r.BaseType
s.NoteButt
on"
xmlns="
http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="
http://schemas.microsoft.com/winfx/2006/xaml"
Style="{StaticResource DefaultButton}">
<ResourceDictionary>
<ResourceDictionary.Merged
Dictionari
es>
<ResourceDictionary Source="/BaseTypes;compone
nt/StyleRe
source.xam
l" />
<ResourceDictionary </ResourceDictionary.Merge
dDictionar
ies>
</ResourceDictionary>
</Button>
How can I reference the static resource..? What's wrong with my XAML?
thx
Our community of experts have been thoroughly vetted for their expertise and industry experience.