Hi
I have a problem initializing a UserControl containing a Menu control from another MainWindow.xaml. The UserControl has a Property NavPage which I initialize and set the Page selected by user from the Menu.
Basically, I am initializing the resource as :
<Window.Resources><myApp:NavigationControl x:Key="NavControl" /></Window.Resources>
and using it like :
<Frame x:Name="DisplayFrame" Grid.Row="1" Content="{Binding Source={StaticResource NavControl},Path=NavPage, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged }" />
Problem, as soon as I put the <Window.Resources> </..> code, everything just freezes with this exception:
Provide value on 'System.Windows.StaticResourceExtension'
Any advice? Thanks.