From 7bad6149b58de88b2e08ed0ba2e7128514a724ea Mon Sep 17 00:00:00 2001 From: Brant Martin Date: Tue, 3 Jul 2018 14:47:19 -0400 Subject: [PATCH] Refactor ObjectCollectionEditor so it's embeddable in a propertygrid. Make the listbox actually update when items are added/removed. --- Torch/Torch.csproj | 7 ++ Torch/Views/EmbeddedCollectionEditor.xaml | 32 +++++ Torch/Views/EmbeddedCollectionEditor.xaml.cs | 126 +++++++++++++++++++ Torch/Views/ObjectCollectionEditor.xaml | 21 +--- Torch/Views/ObjectCollectionEditor.xaml.cs | 74 +---------- 5 files changed, 167 insertions(+), 93 deletions(-) create mode 100644 Torch/Views/EmbeddedCollectionEditor.xaml create mode 100644 Torch/Views/EmbeddedCollectionEditor.xaml.cs diff --git a/Torch/Torch.csproj b/Torch/Torch.csproj index b10ede3..703a964 100644 --- a/Torch/Torch.csproj +++ b/Torch/Torch.csproj @@ -273,6 +273,9 @@ DictionaryEditor.xaml + + EmbeddedCollectionEditor.xaml + ObjectCollectionEditor.xaml @@ -303,6 +306,10 @@ MSBuild:Compile Designer + + Designer + MSBuild:Compile + Designer MSBuild:Compile diff --git a/Torch/Views/EmbeddedCollectionEditor.xaml b/Torch/Views/EmbeddedCollectionEditor.xaml new file mode 100644 index 0000000..fac4d11 --- /dev/null +++ b/Torch/Views/EmbeddedCollectionEditor.xaml @@ -0,0 +1,32 @@ + + + + + + + + + + + + + + +