You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to set provide a static resource in the OnPropertyChanged event for setting the static resource to the Label.Text by concatenating the value of a bindable property using a stringbuilder
e.g. from your repo , inside the property changed event
When you set the text via code-behind, it takes the string literally as is to display rather than run it on the XAML compilation engine. Thus, your string is presented plainly as "{x:Static helpers:FontAwesomeWeb550Font.[BaseIconSrc]}" rather than fetching the resource from the dictionary and presenting it.
What you should do in this case is: BaseIcon.Text = (string)Application.Current.Resources["FontAwesomeWeb550Font"+BaseIconSrc];
Hi Johan, thank you sharing this repo.
I am trying to set provide a static resource in the OnPropertyChanged event for setting the static resource to the Label.Text by concatenating the value of a bindable property using a stringbuilder
e.g. from your repo , inside the property changed event
But, when rendered, it shows the text value in the label starting "{x ….. depending on the side of the label width set.
Any thought, what I may be missing ?
Thanks
The text was updated successfully, but these errors were encountered: