Skip to content

Theme assemblies cannot be referenced from XAML in latest SDK #3512

Closed

Description

@vatsan-madhavan

@vatsan-madhavan commented on Tue Aug 06 2019

This is related to #765, which primarily deals with the inability to reference theme assemblies for consumption in C#/VB etc. code.

In recent preview8 builds, XAML like this no longer builds because the WPF theme assembles are no longer referenced by default by Microsoft.WindowsDesktop.

... xmlns:theme="clr-namespace:Microsoft.Windows.Themes;assembly=PresentationFramework.Aero"

<theme:SystemDropShadowChrome>
       <HeaderedContentControl Padding="10" Foreground="#CCFFFFFF">
              <HeaderedContentControl.Header>

Given there is no way to reference these directly at build-time, the theme assemblies are not complete unusable.

This change was made by https://github.com/dotnet/core-setup/issues/7218, which was done in due to a miscommunication between the WPF and the SDK teams. We are working together to undo this change for .NET Core 3.0.

Also related: #3265

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

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions