Styles and Frames

Hi,

I have a top level window with a style applied to it. This windows contains, amongst other things, a frame control that loads xaml from files on the HDD.

My question is, how do I make the contents of the frame control apply the same style as the top level window? Right now it just uses the default style within the frame.

Thanks,

[367 byte] By [ColinBurn] at [2008-1-4]
# 1

How are you referencing the styles in the loaded content?

The Style references in the loaded content will need DynamicResource references.

The Styles should be defined at the application level, in the App.xaml as they do not inherit their resources from their parents.

WPCoder at 2007-10-11 > top of Msdn Tech,Visual Studio Orcas,Windows Presentation Foundation (WPF)...
# 2

Putting the styles in App.xaml worked.

Cheers

ColinBurn at 2007-10-11 > top of Msdn Tech,Visual Studio Orcas,Windows Presentation Foundation (WPF)...

Visual Studio Orcas

Site Classified