diff --git a/src/AddIns/DisplayBindings/AvalonEdit.AddIn/Src/Snippets/SnippetOptionPanel.xaml b/src/AddIns/DisplayBindings/AvalonEdit.AddIn/Src/Snippets/SnippetOptionPanel.xaml
index 698428dafb..8c692f03a2 100644
--- a/src/AddIns/DisplayBindings/AvalonEdit.AddIn/Src/Snippets/SnippetOptionPanel.xaml
+++ b/src/AddIns/DisplayBindings/AvalonEdit.AddIn/Src/Snippets/SnippetOptionPanel.xaml
@@ -6,15 +6,13 @@
+ Height="2*" MinHeight="120" />
+ Height="1*" MinHeight="80" />
+ Grid.Row="0">
@@ -37,6 +35,7 @@
DisplayMemberPath="Extensions"
Grid.Column="1"
Grid.Row="0"
+ Margin="0,0,4,0"
Height="23" />
-->
-
-
-
-
-
-
+ Grid.Column="0">
+
+
+
+
+
+
+
-
+ Grid.Row="2">
+
+
\ No newline at end of file
diff --git a/src/Libraries/AvalonEdit/ICSharpCode.AvalonEdit/Folding/FoldingManager.cs b/src/Libraries/AvalonEdit/ICSharpCode.AvalonEdit/Folding/FoldingManager.cs
index e9b8dd0711..06a99adc92 100644
--- a/src/Libraries/AvalonEdit/ICSharpCode.AvalonEdit/Folding/FoldingManager.cs
+++ b/src/Libraries/AvalonEdit/ICSharpCode.AvalonEdit/Folding/FoldingManager.cs
@@ -164,7 +164,7 @@ namespace ICSharpCode.AvalonEdit.Folding
}
///
- /// Gets all foldings that contain .
+ /// Gets all foldings that contain .
///
public ReadOnlyCollection GetFoldingsContaining(int offset)
{
diff --git a/src/Main/Base/Project/ICSharpCode.SharpDevelop.csproj b/src/Main/Base/Project/ICSharpCode.SharpDevelop.csproj
index 7ac2b650f7..c038e117d0 100644
--- a/src/Main/Base/Project/ICSharpCode.SharpDevelop.csproj
+++ b/src/Main/Base/Project/ICSharpCode.SharpDevelop.csproj
@@ -351,9 +351,6 @@
Form
-
- Form
-
UserControl
@@ -550,7 +547,6 @@
-
diff --git a/src/Main/Base/Project/Resources/EditTemplateDialog.xfrm b/src/Main/Base/Project/Resources/EditTemplateDialog.xfrm
deleted file mode 100644
index be6138b2e7..0000000000
--- a/src/Main/Base/Project/Resources/EditTemplateDialog.xfrm
+++ /dev/null
@@ -1,67 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/src/Main/Base/Project/Src/Gui/Dialogs/OptionPanels/EditTemplateDialog.cs b/src/Main/Base/Project/Src/Gui/Dialogs/OptionPanels/EditTemplateDialog.cs
deleted file mode 100644
index 5fc060a64e..0000000000
--- a/src/Main/Base/Project/Src/Gui/Dialogs/OptionPanels/EditTemplateDialog.cs
+++ /dev/null
@@ -1,37 +0,0 @@
-//
-//
-//
-//
-// $Revision$
-//
-
-using System;
-using System.Drawing;
-using System.Windows.Forms;
-
-using ICSharpCode.SharpDevelop.Gui.XmlForms;
-using ICSharpCode.SharpDevelop.Internal.Templates;
-
-namespace ICSharpCode.SharpDevelop.Gui
-{
- public class EditTemplateDialog : BaseSharpDevelopForm
- {
- void AcceptEvent(object sender, EventArgs e)
- {
-// codeTemplate.Shortcut = ControlDictionary["templateTextBox"].Text;
-// codeTemplate.Description = ControlDictionary["descriptionTextBox"].Text;
- }
-
- void InitializeComponents()
- {
- SetupFromXmlStream(this.GetType().Assembly.GetManifestResourceStream("Resources.EditTemplateDialog.xfrm"));
-
-// ControlDictionary["templateTextBox"].Text = codeTemplate.Shortcut;
-// ControlDictionary["descriptionTextBox"].Text = codeTemplate.Description;
-
- ControlDictionary["okButton"].Click += new EventHandler(AcceptEvent);
-
- Icon = null;
- }
- }
-}
diff --git a/src/Main/Base/Project/Src/Gui/Dialogs/TreeViewOptionsDialog.xaml b/src/Main/Base/Project/Src/Gui/Dialogs/TreeViewOptionsDialog.xaml
index 3a2bb39ce4..59688bea26 100644
--- a/src/Main/Base/Project/Src/Gui/Dialogs/TreeViewOptionsDialog.xaml
+++ b/src/Main/Base/Project/Src/Gui/Dialogs/TreeViewOptionsDialog.xaml
@@ -3,6 +3,8 @@
x:Class="ICSharpCode.SharpDevelop.Gui.TreeViewOptionsDialog"
Height="414"
Width="552"
+ MinHeight="260"
+ MinWidth="480"
Style="{StaticResource DialogWindow}">
diff --git a/src/Main/ICSharpCode.Core.Presentation/ICSharpCode.Core.Presentation.csproj b/src/Main/ICSharpCode.Core.Presentation/ICSharpCode.Core.Presentation.csproj
index 30f9d94eee..abe4ddcaab 100644
--- a/src/Main/ICSharpCode.Core.Presentation/ICSharpCode.Core.Presentation.csproj
+++ b/src/Main/ICSharpCode.Core.Presentation/ICSharpCode.Core.Presentation.csproj
@@ -67,6 +67,7 @@
Properties\GlobalAssemblyInfo.cs
+
diff --git a/src/Main/ICSharpCode.Core.Presentation/RestrictDesiredSize.cs b/src/Main/ICSharpCode.Core.Presentation/RestrictDesiredSize.cs
new file mode 100644
index 0000000000..670a25e3aa
--- /dev/null
+++ b/src/Main/ICSharpCode.Core.Presentation/RestrictDesiredSize.cs
@@ -0,0 +1,37 @@
+//
+//
+//
+//
+// $Revision$
+//
+
+using System;
+using System.Diagnostics;
+using System.Windows;
+using System.Windows.Controls;
+
+namespace ICSharpCode.Core.Presentation
+{
+ ///
+ /// Cancels the desired size of the child elements. Use this control around scrolling containers (e.g. ListBox) used
+ /// inside auto-scroll contexts.
+ ///
+ public class RestrictDesiredSize : Decorator
+ {
+ Size lastArrangeSize = new Size(double.NaN, double.NaN);
+
+ protected override Size MeasureOverride(Size constraint)
+ {
+ return new Size(0, 0);
+ }
+
+ protected override Size ArrangeOverride(Size arrangeSize)
+ {
+ if (lastArrangeSize != arrangeSize) {
+ lastArrangeSize = arrangeSize;
+ base.MeasureOverride(arrangeSize);
+ }
+ return base.ArrangeOverride(arrangeSize);
+ }
+ }
+}