Skip to content

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

Closed

Description

@vatsan-madhavan

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: dotnet/sdk#3265
This issue tracks work in dotnet/sdk: dotnet/sdk#3512

Activity

  1. added
    urgent
    Bug
    regression
    on Aug 6, 2019
  2. added this to the 3.0 milestone on Aug 6, 2019
  3. added
    issue-type-tracking-external
    on Aug 6, 2019
  4. vatsan-madhavan commented on Aug 10, 2019

    @vatsan-madhavan
    MemberAuthor
  5. rladuca commented on Aug 10, 2019

    @rladuca
    Member

    I was able to build a simple project referencing SystemDropShadowChrome from different theme assemblies using 3.0.100-preview9-013756.

    Closing.

  6. ghost locked as resolved and limited conversation to collaborators on Apr 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Bugissue-type-tracking-externalregressionurgent

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions