Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Style doesn't work for controls that were defined inside DataTemplate #9029

Open
SubashiniMahendran opened this issue Apr 16, 2024 · 0 comments
Labels
Investigate Requires further investigation by the WPF team.

Comments

@SubashiniMahendran
Copy link

Description

In our application, we have customized the style of Hyperlink and TextBlock and merged it to Window resources. But, respective style not apply for the hyperlink and textblock controls that were defined inside the DataTemplate.

image

But suppose if we merge the resource dictionary in Application resources. It works fine.
image

Reproduction Steps

  1. Note, we have merged resource dictionary in Windows.Resources.
  2. Run the sample.
  3. Note, Hyperlink and TextBlock style not applied.

Style-issue.zip

Expected behavior

Style should work for controls that were defined inside DataTemplate

Actual behavior

Style doesn't work for controls that were defined inside DataTemplate

Regression?

No response

Known Workarounds

No response

Impact

No response

Configuration

No response

Other information

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Investigate Requires further investigation by the WPF team.
Projects
None yet
Development

No branches or pull requests

2 participants