Changes
* GeoData
== Accessing from XAML ==
<DataTemplate>
<Grid Width="100" Height="40">
<FontIcon FontFamily="Segoe MDL2 Assets" Glyph="{Binding Content.LiveValueQualitySymbol}" HorizontalAlignment="Left"/> <TextBlock Text="{Binding Content.DisplayValue}" HorizontalAlignment="Right"/>
</Grid>
</DataTemplate>
This code binds the value of the '''LMP_FLOW''' LiveValue-MetaProperty to a <code>TextBlock</code>:
<syntaxhighlight lang="xml">
<TextBlock Text="{Binding Properties.ImportantLiveItems[LMP_FLOW].Content.Value}"/>
</syntaxhighlight>
Attributes can be bound to similarly as to the individual value:
<syntaxhighlight lang="xml">
<TextBlock Text="{Binding Properties.ImportantLiveItems[LMP_FLOW].Content.Attributes[Unit].Value}"/>
</syntaxhighlight>
As an example, the [[OSIPI_(Plugin)|OSIPI Plugin]] defines an Attribute called '''FORMATTED''', which contains the ''Value'' already pre-formatted according to [https://livelibrary.osisoft.com/LiveLibrary/content/en/webparts-v4/GUID-13DC1C74-40B9-4FFE-B0B2-FCD204D8C337#addHistory=true&filename=GUID-A467C65F-C7C1-439D-AB26-7C360DB61865.xml&docid=GUID-13DC1C74-40B9-4FFE-B0B2-FCD204D8C337&inner_id=&tid=&query=&scope=&resource=&toc=false&eventType=lcContent.loadDocGUID-13DC1C74-40B9-4FFE-B0B2-FCD204D8C337 OsiPi's Specification]. In the ''Server-Configuration'', it's possible to adjust the formatting [https://docs.microsoft.com/en-us/dotnet/api/system.globalization.cultureinfo Culture] and leading-zeroes trimming.
=== Binding to Description ===
Like with a regular property, the description of a live value property can be accessed as the following.
<syntaxhighlight lang="xml">
<TextBlock Text="{Binding Properties.ImportantLiveItems[LMP_FLOW].Description}"/>
</syntaxhighlight>
<br/>
{{Version/WinXSince|4.5}}{{Version/XamarinSince|4.5}} It's possible that the description comes not from the property's underlying [[MetaProperty]], but rather from the value of an attribute called "UI_DESCR" (if present).
=== Binding to Unit ===
Like with a regular property, the unit of a live value property can be accessed as the following.
<syntaxhighlight lang="xml">
<TextBlock Text="{Binding Properties.ImportantLiveItems[LMP_FLOW].Unit}"/>
</syntaxhighlight>
<br/>
{{Version/WinXSince|4.5}}{{Version/XamarinSince|4.5}} It's possible that the unit comes not from the property's underlying [[MetaProperty]], but rather from the value of an attribute called "UNIT" (if present).
[[Category:2.5.0|Live Values]]
[[Category:Android|Live Values]]
[[Category:Live Values|Live Values]]
[[Category:Server|Live Values]]
[[Category:WinX|Live Values]]
[[Category:Xamarin|Live Values]]