From fae1df0351289b5fd91817a5bde85209273cb124 Mon Sep 17 00:00:00 2001 From: jkuehner Date: Thu, 22 Oct 2015 23:31:23 +0200 Subject: [PATCH] Performance / UI fixes --- .../Project/Controls/ClearableTextBox.cs | 5 -- .../Project/Controls/ControlStyles.xaml | 25 +++--- .../PropertyGrid/Editors/ComboBoxEditor.xaml | 3 + .../Editors/ComboBoxEditor.xaml.cs | 12 --- .../PropertyGrid/Editors/TextBoxEditor.xaml | 7 +- .../Project/PropertyGrid/PropertyGridView.cs | 7 -- .../PropertyGrid/PropertyGridView.xaml | 87 +++++++++++++++++-- WpfDesign/Project/PropertyGrid/Category.cs | 8 +- .../Project/PropertyGrid/PropertyNode.cs | 3 - 9 files changed, 100 insertions(+), 57 deletions(-) diff --git a/WpfDesign.Designer/Project/Controls/ClearableTextBox.cs b/WpfDesign.Designer/Project/Controls/ClearableTextBox.cs index c1b26fb..014d51d 100644 --- a/WpfDesign.Designer/Project/Controls/ClearableTextBox.cs +++ b/WpfDesign.Designer/Project/Controls/ClearableTextBox.cs @@ -16,14 +16,9 @@ // OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; using System.Windows; using System.Windows.Input; using System.Windows.Controls; -using System.Windows.Data; namespace ICSharpCode.WpfDesign.Designer.Controls { diff --git a/WpfDesign.Designer/Project/Controls/ControlStyles.xaml b/WpfDesign.Designer/Project/Controls/ControlStyles.xaml index ce5a035..140f2f8 100644 --- a/WpfDesign.Designer/Project/Controls/ControlStyles.xaml +++ b/WpfDesign.Designer/Project/Controls/ControlStyles.xaml @@ -660,25 +660,24 @@ - - - + + + + + + + + + diff --git a/WpfDesign.Designer/Project/PropertyGrid/Editors/ComboBoxEditor.xaml b/WpfDesign.Designer/Project/PropertyGrid/Editors/ComboBoxEditor.xaml index a511967..b79b6fd 100644 --- a/WpfDesign.Designer/Project/PropertyGrid/Editors/ComboBoxEditor.xaml +++ b/WpfDesign.Designer/Project/PropertyGrid/Editors/ComboBoxEditor.xaml @@ -8,6 +8,9 @@ Background="{x:Null}" Focusable="False" IsNullable="False" + VirtualizingStackPanel.ScrollUnit="Pixel" + VirtualizingStackPanel.IsVirtualizing="True" + ScrollViewer.CanContentScroll="True" > diff --git a/WpfDesign.Designer/Project/PropertyGrid/Editors/ComboBoxEditor.xaml.cs b/WpfDesign.Designer/Project/PropertyGrid/Editors/ComboBoxEditor.xaml.cs index 85e43f6..cd3add5 100644 --- a/WpfDesign.Designer/Project/PropertyGrid/Editors/ComboBoxEditor.xaml.cs +++ b/WpfDesign.Designer/Project/PropertyGrid/Editors/ComboBoxEditor.xaml.cs @@ -17,19 +17,7 @@ // DEALINGS IN THE SOFTWARE. using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; using System.Windows; -using System.Windows.Controls; -using System.Windows.Data; -using System.Windows.Documents; -using System.Windows.Input; -using System.Windows.Media; -using System.Windows.Media.Imaging; -using System.Windows.Navigation; -using System.Windows.Shapes; -using ICSharpCode.WpfDesign.PropertyGrid; using System.Windows.Controls.Primitives; using ICSharpCode.WpfDesign.Designer.themes; diff --git a/WpfDesign.Designer/Project/PropertyGrid/Editors/TextBoxEditor.xaml b/WpfDesign.Designer/Project/PropertyGrid/Editors/TextBoxEditor.xaml index 1fee98e..5415e3b 100644 --- a/WpfDesign.Designer/Project/PropertyGrid/Editors/TextBoxEditor.xaml +++ b/WpfDesign.Designer/Project/PropertyGrid/Editors/TextBoxEditor.xaml @@ -1,9 +1,10 @@ - - + diff --git a/WpfDesign.Designer/Project/PropertyGrid/PropertyGridView.cs b/WpfDesign.Designer/Project/PropertyGrid/PropertyGridView.cs index a854a6e..c7728c1 100644 --- a/WpfDesign.Designer/Project/PropertyGrid/PropertyGridView.cs +++ b/WpfDesign.Designer/Project/PropertyGrid/PropertyGridView.cs @@ -19,16 +19,9 @@ using System; using System.Collections.Generic; using System.Linq; -using System.Text; using System.Windows; using System.Windows.Controls; -using System.Windows.Data; -using System.Windows.Documents; using System.Windows.Input; -using System.Windows.Media; -using System.Windows.Media.Imaging; -using System.Windows.Navigation; -using System.Windows.Shapes; using System.Windows.Controls.Primitives; using ICSharpCode.WpfDesign.PropertyGrid; diff --git a/WpfDesign.Designer/Project/PropertyGrid/PropertyGridView.xaml b/WpfDesign.Designer/Project/PropertyGrid/PropertyGridView.xaml index cc254dc..3ee3ba7 100644 --- a/WpfDesign.Designer/Project/PropertyGrid/PropertyGridView.xaml +++ b/WpfDesign.Designer/Project/PropertyGrid/PropertyGridView.xaml @@ -116,7 +116,20 @@ - + + + + + + + + + + + + + + @@ -134,9 +147,37 @@ - + + + + + + + + + + + + + + - + + + + + + + + + + + + + + + + @@ -211,12 +252,44 @@ - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/WpfDesign/Project/PropertyGrid/Category.cs b/WpfDesign/Project/PropertyGrid/Category.cs index d1af72e..12867ec 100644 --- a/WpfDesign/Project/PropertyGrid/Category.cs +++ b/WpfDesign/Project/PropertyGrid/Category.cs @@ -16,13 +16,7 @@ // OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Collections.ObjectModel; -using System.ComponentModel; -using ICSharpCode.WpfDesign.PropertyGrid; +using System.ComponentModel; namespace ICSharpCode.WpfDesign.PropertyGrid { diff --git a/WpfDesign/Project/PropertyGrid/PropertyNode.cs b/WpfDesign/Project/PropertyGrid/PropertyNode.cs index 98e94eb..9edfdac 100644 --- a/WpfDesign/Project/PropertyGrid/PropertyNode.cs +++ b/WpfDesign/Project/PropertyGrid/PropertyNode.cs @@ -17,12 +17,9 @@ // DEALINGS IN THE SOFTWARE. using System; -using System.Collections.Generic; using System.Linq; -using System.Text; using System.ComponentModel; using System.Windows; -using System.Windows.Controls; using System.Collections.ObjectModel; using System.Windows.Data; using System.Windows.Media;