Silverlight / WPF - how to call window style from resource dictionary in xaml page.

Asked By sushant kumar kesari on 13-Mar-12 01:54 AM


hello frnd

i m using this code in resource dictionary. 
how to call this style in this xaml page.

Style x:Key="WindowStyle"  TargetType="{x:Type Window}">
        <Setter Property="Background">
            <Setter.Value>
                <ImageBrush ImageSource="/RealEState;component/Images/bg 21.jpg" />
                <!--<SolidColorBrush Color="Blue"/>-->
            </Setter.Value>
        </Setter>
    </Style>

Please reply asap
Jitendra Faye replied to sushant kumar kesari on 13-Mar-12 02:03 AM
Try like this-

Style="{StaticResource DefaultPage}"