Skip to content

How to resolve resource keys from embedded xaml files? #1146

Closed

Description

@weltkante

In #865 the xaml theme files were embedded into their theme assemblies to allow tools like VS/Blend to copy them for editing the templates.

I wanted to take a look and compared the current nightly build against the xaml files delivered with VS and noticed that the embedded resources did not provide named keys, for example

Reference xaml installed with Visual Studio:

<SolidColorBrush x:Key="Button.Pressed.Border" Color="#FF2C628B" />

Embedded resource xaml:

<SolidColorBrush x:Key="&#214;" Color="#FF2C628B" />

How are Visual Studio / Blend resolving these IDs to resource keys when copying a template (I'd like to provide similar logic in my own msbuild-based tooling), or is this a bug and the wrong xaml files got embedded?

Activity

  1. vatsan-madhavan commented on Jul 2, 2019

    @vatsan-madhavan
    Member

    @chabiss, can you help?

  2. added
    Question
    on Jul 2, 2019
  3. added this to the Future milestone on Jul 8, 2019
  4. weltkante commented on Jul 26, 2019

    @weltkante
    Author

    I assume this becomes irrelevant, #1393 is removing the embedded resources, so standalone tooling will also need to carry its own copy of the reference xaml files for now.

  5. vatsan-madhavan commented on Jul 26, 2019

    @vatsan-madhavan
    Member

    I assume this becomes irrelevant, #1393 is removing the embedded resources, so standalone tooling will also need to carry its own copy of the reference xaml files for now.

    You are right. Also, please see #1402.

  6. ghost locked as resolved and limited conversation to collaborators on Apr 16, 2022
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

    Question

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions