Class ExtendedData
Represents map shape extended data.
Inheritance
Namespace: Telerik.Windows.Controls.Map
Assembly: Telerik.Windows.Controls.DataVisualization.dll
Syntax
public class ExtendedData : Object, INotifyPropertyChanged
Constructors
ExtendedData(ExtendedPropertySet)
Initializes a new instance of the ExtendedData class.
Declaration
public ExtendedData(ExtendedPropertySet propertySet)
Parameters
ExtendedPropertySet
propertySet
Set of the extended properties this extended data can operates with. |
Properties
Data
Return reference to self. This property can be used within Binding in XAML to implement binding which reflect extended property changes.
Declaration
public ExtendedData Data { get; }
Property Value
ExtendedData
|
Item[String]
Gets value from object using format string.
Declaration
public object this[string format] { get; set; }
Parameters
System.String
format
Format string. |
Property Value
System.Object
Formatted value. |
Examples
Format string can be specified in a few different ways: as simple name of the extended property, as formatted extended property, or as format string which can use number of the extended properties.
// Using of the single extended property name.
string value = extendedData["CNTRY_NAME"];
// Using of the formatted extended property.
// The '|' character is used to separate extended property name and its output format.
string value = extendedData["SUM_SQMI_A|F2"];
// Format string with number of the extended properties.
string value = extendedData["{CNTRY_NAME} Miles: {SUM_SQMI_A|F2}, KM: {SUM_SQKM_A|F1}"];
' Using of the single extended property name.
Dim value as String = extendedData("CNTRY_NAME")
' Using of the formatted extended property.
' The '|' character is used to separate extended property name and its output format.
Dim value as String = extendedData("SUM_SQMI_A|F2")
Format string with number of the extended properties.
Dim value as String = extendedData("{CNTRY_NAME} Miles: {SUM_SQMI_A|F2}, KM: {SUM_SQKM_A|F1}")
Item[String, String]
Gets value from object using format string.
Declaration
public object this[string format, string lang] { get; }
Parameters
System.String
format
Format string. |
System.String
lang
Language. |
Property Value
System.Object
Formatted value. |
Examples
Format string can be specified in a few different ways: as simple name of the extended property, as formatted extended property, or as format string which can use number of the extended properties.
// Using of the single extended property name.
string value = extendedData["CNTRY_NAME"];
// Using of the formatted extended property.
// The '|' character is used to separate extended property name and its output format.
string value = extendedData["SUM_SQMI_A|F2"];
// Format string with number of the extended properties.
string value = extendedData["{CNTRY_NAME} Miles: {SUM_SQMI_A|F2}, KM: {SUM_SQKM_A|F1}"];
' Using of the single extended property name.
Dim value as String = extendedData("CNTRY_NAME")
' Using of the formatted extended property.
' The '|' character is used to separate extended property name and its output format.
Dim value as String = extendedData("SUM_SQMI_A|F2")
Format string with number of the extended properties.
Dim value as String = extendedData("{CNTRY_NAME} Miles: {SUM_SQMI_A|F2}, KM: {SUM_SQKM_A|F1}")
PropertySet
Gets set of the extended properties this extended data can operates with.
Declaration
public ExtendedPropertySet PropertySet { get; }
Property Value
ExtendedPropertySet
|
Methods
Clone()
GetPropertyBinding(String)
Gets binding to the specified extended property.
Declaration
public Binding GetPropertyBinding(string propertyName)
Parameters
System.String
propertyName
Name of the property. |
Returns
System.Windows.Data.Binding
Binding. |
GetValue(String)
Gets value of the property.
Declaration
public object GetValue(string propertyName)
Parameters
System.String
propertyName
Name of the property. |
Returns
System.Object
Property value. |
HasValue(String)
Gets value which indicates whether extended data contains specified property.
Declaration
public bool HasValue(string propertyName)
Parameters
System.String
propertyName
Name of the property. |
Returns
System.Boolean
True - when extended data contains specified property. Otherwise - false. |
SetDefaults()
Set default value to every extended property.
Declaration
public void SetDefaults()
SetValue(String, Object)
Sets value of the property.
Declaration
public void SetValue(string propertyName, object propertyValue)
Parameters
System.String
propertyName
Name of the property. |
System.Object
propertyValue
Value to be set. |
SetValue(String, Object, Boolean)
Sets value of the property.
Declaration
public void SetValue(string propertyName, object propertyValue, bool fireEvent)
Parameters
System.String
propertyName
Name of the property. |
System.Object
propertyValue
Value to be set. |
System.Boolean
fireEvent
Indicates whether the layout changed event should be fired. |
Events
ExtendedPropertyChanged
Occurs when extended property changed in the extended data.
Declaration
public event EventHandler<ExtendedPropertyChangedEventArgs> ExtendedPropertyChanged
Event Type
System.EventHandler<ExtendedPropertyChangedEventArgs>
|
PropertyChanged
Occurs when property changed. Implemented for binding.
Declaration
public event PropertyChangedEventHandler PropertyChanged
Event Type
System.ComponentModel.PropertyChangedEventHandler
|