Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/xamarin/Xamarin.PropertyEditing.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Maupin <ermaup@microsoft.com>2017-11-02 22:05:45 +0300
committerEric Maupin <ermaup@microsoft.com>2017-11-15 23:11:31 +0300
commit4224195a387d378ec08efe1b7f63d7b1efbdbc1f (patch)
treef6626abdeee23f398cbecd1d16c199a24d3bdfcb /Xamarin.PropertyEditing.Mac/PropertyTableDataSource.cs
parent0791544cd10862159bf45851b25510ff4a3b35a3 (diff)
[Core] Refactor PropertiesVM usage into EditorVM
Functionality largely hasn't changed but with group editors the panel-wide VMs need to be thinking about children in terms of editors and not individual properties. This is largely only manifest in the group editor.
Diffstat (limited to 'Xamarin.PropertyEditing.Mac/PropertyTableDataSource.cs')
-rw-r--r--Xamarin.PropertyEditing.Mac/PropertyTableDataSource.cs10
1 files changed, 5 insertions, 5 deletions
diff --git a/Xamarin.PropertyEditing.Mac/PropertyTableDataSource.cs b/Xamarin.PropertyEditing.Mac/PropertyTableDataSource.cs
index f46220b..1f53fe2 100644
--- a/Xamarin.PropertyEditing.Mac/PropertyTableDataSource.cs
+++ b/Xamarin.PropertyEditing.Mac/PropertyTableDataSource.cs
@@ -22,14 +22,14 @@ namespace Xamarin.PropertyEditing.Mac
public override nint GetChildrenCount (NSOutlineView outlineView, NSObject item)
{
- if (this.vm.ArrangedProperties.Count == 0)
+ if (this.vm.ArrangedEditors.Count == 0)
return 0;
if (this.vm.ArrangeMode == PropertyArrangeMode.Name)
- return this.vm.ArrangedProperties[0].Count;
+ return this.vm.ArrangedEditors[0].Count;
if (item == null)
- return this.vm.ArrangedProperties.Count;
+ return this.vm.ArrangedEditors.Count;
else
return ((IGroupingList<string, PropertyViewModel>)((NSObjectFacade)item).Target).Count;
}
@@ -38,10 +38,10 @@ namespace Xamarin.PropertyEditing.Mac
{
object element;
if (this.vm.ArrangeMode == PropertyArrangeMode.Name) {
- element = (this.vm.ArrangedProperties[0][(int)childIndex]);
+ element = (this.vm.ArrangedEditors[0][(int)childIndex]);
} else {
if (item == null)
- element = this.vm.ArrangedProperties[(int)childIndex];
+ element = this.vm.ArrangedEditors[(int)childIndex];
else {
element = ((IGroupingList<string, PropertyViewModel>)((NSObjectFacade)item).Target)[(int)childIndex];
}