dotnet / dotnet/wpf

WPF . NetCore DynamicResource broken by Visibility

Open
#3,768 0 comments 0 reactions 0 assignees View on GitHub
.NET Framework
Dominant language
C#
Stars
7.7k
Forks
1.3k
Avg merge
1d 11h
Merged PRs (30d)
61

Description

_This issue has been moved from [a ticket on Developer Community](https://developercommunity2.visualstudio.com/t/WPF--NetCore-DynamicResource-broken-by-/927043)._

---
I have a button that is placed into a grid. The button has the content property set to a **DynamicResource Icon** and the grid has the visibility property set to **Collapsed**.

If i use the method that set the grid property Visibility to **Visible**, then the **DynamicResource Icon** from the button is **not shown**.

The **Icon** has the type Path and is placed into ResourceDictionary file. This ResourceDictionary file is placed in a second Project (CustomControlLibrary).

The main project is WPF . NetCore . The Second project is referenced to the main project and the ResourceDictionary file from the second project is set in App.xaml in MergedDictionaries as Resource.

If i use **Hidden** instead of **Collapsed** and then the method, then works fine. If i use **Visible** instead of **Collapsed** without method then it works.

---
### Original Comments

#### Feedback Bot on 2/24/2020, 00:50 PM:

We have directed your feedback to the appropriate engineering team for further evaluation. The team will review the feedback and notify you about the next steps.

#### Feedback Bot on 4/3/2020, 04:46 PM:

I have detected that for the last 35 days, this issue didn't have much product team activity and a very small amount of new votes or comments. Based on this, its severity, and affected area, it’s my experience that this issue is very unlikely to be fixed.
#### Huber Patrik on 4/3/2020, 06:28 PM:

(private comment, text removed)

---
### Original Solutions
(no solutions)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.