Class DataViewRow
One row of a DataViewModel's collection: what a repeater's row template binds to. Its values are by name, and a command its owner offers comes back from it carrying the row's key, so a button on a row says which row.
public sealed class DataViewRow : IDynamicDataContext
- Inheritance
-
DataViewRow
- Implements
- Inherited Members
Properties
Key
The row's key, from the collection's key column. Changes that name a row find it by this key.
public object Key { get; }
Property Value
Values
The row's values, by name.
public IReadOnlyDictionary<string, object> Values { get; }
Property Value
Methods
TryGetValue(string, out object)
Gets a value of the row by name. A command the view offers comes back carrying this row's key. Returns false when there is no value or command with the name.
public bool TryGetValue(string propertyName, out object value)
Parameters
Returns
TrySetValue(string, object)
Keeps value as the row's value for propertyName, so
that a two-way bound control in the row keeps what the player entered. Raises no event.
Returns false when the name is empty.
public bool TrySetValue(string propertyName, object value)