SetTrend / UWP-Resource-Dictionary-Issue

Repository to provide a reproducable project, demonstrating an issue with the UWP resource handling system.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

UWP Resource Dictionary Issue

UWP documentation claims that styles can be applied to control types as a whole, by providing a TargetType attribute:

However, that doesn't work.

So, I created this repository to provide a reproducable project, demonstrating an issue with the UWP resource handling system.

In this repository I created a ResourceDictionary file (Dictionary1.xaml) to store a Page's background color. Next, I referenced that ResourceDictionary in my main page (MainPage.xaml).

While the Visual Studio 2019 (16.7.7) designer correctly renders the Page's background color in red, the running program itself doesn't.

Screenshot depicting the issue:

UWP - unsuccessfully setting resources in XAML

Verification

To verify this issue, I posted a corresponding question at StackOverflow.

The result makes me believe that either the Microsoft documentation or the implementation of UWP is faulty.

Before I report this issue to the Microsoft UWP product team, I'll jump off by reporting this issue to the Microsoft UWP documentation team.

About

Repository to provide a reproducable project, demonstrating an issue with the UWP resource handling system.


Languages

Language:C# 100.0%