Jump to: navigation, search

Changes


XAML Tips

No change in size, 11:06, 7 November 2023
/* Object by UID {{Version/WinXSince|4.6}} {{Version/XamarinSince|4.6}} */
=== Object by UID Access to an arbitrary object {{Version/WinXSince|4.6}} {{Version/XamarinSince|4.6}} ===With the ObjectByUID feature it is possible to access any local arbitrary object by its UID and , for example, display a value of it.
It can be accessed from ContentViewModel, AuthenticationViewModel, and RootPageViewModel levels.
<tab name="UWP">
<source lang = "xml">
<TextBlock Text="{Binding ObjectByUID[5343cb08paste-e296your-4a22-bd4d-d4fe3f18823duid].Properties.VisibleItems[Nameadd-your-property-name].DisplayValue}" />
</source>
</tab>
<tab name="Xamarin">
<source lang = "xml">
<Label Text="{Binding ObjectByUID[5343cb08paste-e296your-4a22-bd4d-d4fe3f18823duid].Properties.VisibleItems[Nameadd-your-property-name].DisplayValueValue}" />
</source>
</tab>
<tab name="UWP">
<source lang = "xml">
<TextBlock Text="{Binding CallingViewModel.ObjectByUID[5343cb08paste-e296your-4a22-bd4d-d4fe3f18823duid].Properties.VisibleItems[Nameadd-your-property-name].DisplayValue}" />
</source>
</tab>
<tab name="Xamarin">
<source lang = "xml">
<Label Text="{Binding CallingViewModel.ObjectByUID[5343cb08paste-e296your-4a22-bd4d-d4fe3f18823duid].Properties.VisibleItems[Nameadd-your-property-name].DisplayValueValue}" />
</source>
</tab>
274
edits