How to access context via MarkpExtension.ProvideValue #9000
Replies: 3 comments
-
|
To clarify, in the context of a |
Beta Was this translation helpful? Give feedback.
-
|
I wonder, for instance, is [System.Windows.Markup.Ambient]
public System.Windows.ResourceDictionary Resources { get; set; }Much of that API is geared toward knowing the key, usually a string, via indexing operator, or |
Beta Was this translation helpful? Give feedback.
-
|
Sorry I missed this question. Did you see how |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Apparently with
MarkupExtension.ProvideValuebeing the key, in particularIServiceProvider serviceProvider...Need some basic guidance on how to gain insights into a particular usage context, the control, the outermost XAML element, and any resources that might be had in this context, i.e.
Control.Resources,Windows.Resources, if at all possible.For background, I am scanning through the Learn docs, but nothing is really standing out as an obvious this is the way moment, to be honest. More probably, I have just not asked the right question yet, but I am getting there.
Beta Was this translation helpful? Give feedback.
All reactions