Open simonrozsival opened 9 months ago
/cc @StephaneDelcroix
We've added this issue to our backlog, and we will work to address it as time and resources allow. If you have any additional information or questions about this issue, please leave a comment. For additional info about issue management, please read our Triage Process.
The
x:Reference
markup extension is used to point to another element in the XAML tree which has a correspondingx:Name
. To lookup an reference, we useReferenceExtension
which looks up the referenced object in the available namescopes.When the XAML is compiled, we should be able to reference the local variable corresponding to the XAML element with
x:Name
directly.Example
XAML
Generated code (decompiled)
Motivation
{Binding Text, Source={x:Reference label}}
extensions which have aSource
with a type known at build time without a need to specifyx:DataType
explicitly.