Skip to content

Can't use resources/ styles set in App.xaml.cs in a WPF page (System.Windows.Controls.Page) #732

Description

@pushmlk

This works in a WPF window (System.Windows.Window):
<TextBlock Text="This is a Fluent styled TextBlock" Style="{StaticResource CaptionTextBlockStyle}" />

but, not in a WPF page (System.Windows.Controls.Page)

In both cases my App.xaml.cs has the following markup:
<Application.Resources> <ResourceDictionary> <ResourceDictionary.MergedDictionaries> <ResourceDictionary Source="pack://application:,,,/PresentationFramework.Fluent;component/Themes/Fluent.xaml" /> </ResourceDictionary.MergedDictionaries> </ResourceDictionary> </Application.Resources>

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions