Permalink
Browse files

Initial import.

  • Loading branch information...
1 parent 5d1fae4 commit ee3ff63392a20fe2885623383c0306017f4bc6be weifenluo committed Mar 2, 2007
Showing with 23,048 additions and 0 deletions.
  1. +118 −0 DockSample/AboutDialog.Designer.cs
  2. +26 −0 DockSample/AboutDialog.cs
  3. +120 −0 DockSample/AboutDialog.resx
  4. +113 −0 DockSample/Customization/DockHelper.cs
  5. +55 −0 DockSample/Customization/Extender.cs
  6. +619 −0 DockSample/Customization/InertButton.cs
  7. +133 −0 DockSample/Customization/Resources.Designer.cs
  8. +151 −0 DockSample/Customization/Resources.resx
  9. BIN DockSample/Customization/Resources/DockIndicator_PaneDiamond.bmp
  10. BIN DockSample/Customization/Resources/DockIndicator_PaneDiamond_Bottom.bmp
  11. BIN DockSample/Customization/Resources/DockIndicator_PaneDiamond_Hotspot.bmp
  12. BIN DockSample/Customization/Resources/DockIndicator_PaneDiamond_HotspotIndex.bmp
  13. BIN DockSample/Customization/Resources/DockIndicator_PaneDiamond_Left.bmp
  14. BIN DockSample/Customization/Resources/DockIndicator_PaneDiamond_Right.bmp
  15. BIN DockSample/Customization/Resources/DockIndicator_PaneDiamond_Top.bmp
  16. BIN DockSample/Customization/Resources/DockIndicator_PanelBottom.bmp
  17. BIN DockSample/Customization/Resources/DockIndicator_PanelBottom_Active.bmp
  18. BIN DockSample/Customization/Resources/DockIndicator_PanelFill.bmp
  19. BIN DockSample/Customization/Resources/DockIndicator_PanelFill_Active.bmp
  20. BIN DockSample/Customization/Resources/DockIndicator_PanelLeft.bmp
  21. BIN DockSample/Customization/Resources/DockIndicator_PanelLeft_Active.bmp
  22. BIN DockSample/Customization/Resources/DockIndicator_PanelRight.bmp
  23. BIN DockSample/Customization/Resources/DockIndicator_PanelRight_Active.bmp
  24. BIN DockSample/Customization/Resources/DockIndicator_PanelTop.bmp
  25. BIN DockSample/Customization/Resources/DockIndicator_PanelTop_Active.bmp
  26. BIN DockSample/Customization/Resources/DockPaneCaption_AutoHideNo.bmp
  27. BIN DockSample/Customization/Resources/DockPaneCaption_AutoHideYes.bmp
  28. BIN DockSample/Customization/Resources/DockPaneCaption_CloseDisabled.bmp
  29. BIN DockSample/Customization/Resources/DockPaneCaption_CloseEnabled.bmp
  30. BIN DockSample/Customization/Resources/DockPaneStrip_CloseDisabled.bmp
  31. BIN DockSample/Customization/Resources/DockPaneStrip_CloseEnabled.bmp
  32. BIN DockSample/Customization/Resources/DockPaneStrip_ScrollLeftDisabled.bmp
  33. BIN DockSample/Customization/Resources/DockPaneStrip_ScrollLeftEnabled.bmp
  34. BIN DockSample/Customization/Resources/DockPaneStrip_ScrollRightDisabled.bmp
  35. BIN DockSample/Customization/Resources/DockPaneStrip_ScrollRightEnabled.bmp
  36. BIN DockSample/Customization/Resources/Dockindicator_PaneDiamond_Fill.bmp
  37. +108 −0 DockSample/Customization/Strings.Designer.cs
  38. +135 −0 DockSample/Customization/Strings.resx
  39. +507 −0 DockSample/Customization/VS2003AutoHideStrip.cs
  40. +359 −0 DockSample/Customization/VS2003DockPaneCaption.cs
  41. +1,085 −0 DockSample/Customization/VS2003DockPaneStrip.cs
  42. +314 −0 DockSample/DockSample.csproj
  43. +147 −0 DockSample/DummyDoc.Designer.cs
  44. +83 −0 DockSample/DummyDoc.cs
  45. +140 −0 DockSample/DummyDoc.resx
  46. +83 −0 DockSample/DummyOutputWindow.Designer.cs
  47. +19 −0 DockSample/DummyOutputWindow.cs
  48. +167 −0 DockSample/DummyOutputWindow.resx
  49. +95 −0 DockSample/DummyPropertyWindow.Designer.cs
  50. +21 −0 DockSample/DummyPropertyWindow.cs
  51. +141 −0 DockSample/DummyPropertyWindow.resx
  52. +462 −0 DockSample/DummySolutionExplorer.Designer.cs
  53. +24 −0 DockSample/DummySolutionExplorer.cs
  54. +220 −0 DockSample/DummySolutionExplorer.resx
  55. +111 −0 DockSample/DummyTaskList.Designer.cs
  56. +19 −0 DockSample/DummyTaskList.cs
  57. +138 −0 DockSample/DummyTaskList.resx
  58. +96 −0 DockSample/DummyToolbox.Designer.cs
  59. +19 −0 DockSample/DummyToolbox.cs
  60. +181 −0 DockSample/DummyToolbox.resx
  61. BIN DockSample/Images/ArrowDown.bmp
  62. BIN DockSample/Images/ArrowUp.bmp
  63. BIN DockSample/Images/Bitmap.ico
  64. BIN DockSample/Images/BlankIcon.ico
  65. BIN DockSample/Images/CSFile.ico
  66. BIN DockSample/Images/CSProject.ico
  67. BIN DockSample/Images/ClosedFolder.ICO
  68. BIN DockSample/Images/File.ico
  69. BIN DockSample/Images/Form.ico
  70. BIN DockSample/Images/Mouse.bmp
  71. BIN DockSample/Images/New.ico
  72. BIN DockSample/Images/Open.ico
  73. BIN DockSample/Images/OpenFolder.ICO
  74. BIN DockSample/Images/OutputWindow.ico
  75. BIN DockSample/Images/PropertyWindow.ico
  76. BIN DockSample/Images/Reference.ico
  77. BIN DockSample/Images/References.ico
  78. BIN DockSample/Images/SolutionExplorer.ico
  79. BIN DockSample/Images/TaskListWindow.ico
  80. BIN DockSample/Images/ToolboxWindow.ico
  81. BIN DockSample/Images/XmlFile.ico
  82. BIN DockSample/Images/msenv22.ico
  83. +614 −0 DockSample/MainForm.Designer.cs
  84. +446 −0 DockSample/MainForm.cs
  85. +194 −0 DockSample/MainForm.resx
  86. +20 −0 DockSample/Program.cs
  87. +33 −0 DockSample/Properties/AssemblyInfo.cs
  88. +63 −0 DockSample/Properties/Resources.Designer.cs
  89. +117 −0 DockSample/Properties/Resources.resx
  90. +26 −0 DockSample/Properties/Settings.Designer.cs
  91. +7 −0 DockSample/Properties/Settings.settings
  92. BIN DockSample/Resources/DockPanel.xml
  93. +91 −0 DockSample/ToolWindow.Designer.cs
  94. +19 −0 DockSample/ToolWindow.cs
  95. +123 −0 DockSample/ToolWindow.resx
  96. +9 −0 DockSample/license.txt
  97. +25 −0 WinFormsUI.Docking.sln
  98. BIN WinFormsUI.Docking.suo
  99. +527 −0 WinFormsUI/Docking/AutoHideStripBase.cs
  100. +142 −0 WinFormsUI/Docking/DockAreasEditor.cs
  101. +273 −0 WinFormsUI/Docking/DockContent.cs
  102. +195 −0 WinFormsUI/Docking/DockContentCollection.cs
  103. +19 −0 WinFormsUI/Docking/DockContentEventArgs.cs
  104. +1,031 −0 WinFormsUI/Docking/DockContentHandler.cs
  105. +161 −0 WinFormsUI/Docking/DockOutlineBase.cs
  106. +157 −0 WinFormsUI/Docking/DockPane.SplitterControl.cs
  107. +1,277 −0 WinFormsUI/Docking/DockPane.cs
  108. +96 −0 WinFormsUI/Docking/DockPaneCaptionBase.cs
  109. +47 −0 WinFormsUI/Docking/DockPaneCollection.cs
  110. +249 −0 WinFormsUI/Docking/DockPaneStripBase.cs
  111. +608 −0 WinFormsUI/Docking/DockPanel.AutoHideWindow.cs
  112. +836 −0 WinFormsUI/Docking/DockPanel.DockDragHandler.cs
  113. +135 −0 WinFormsUI/Docking/DockPanel.DragHandler.cs
  114. +564 −0 WinFormsUI/Docking/DockPanel.FocusManager.cs
  115. +430 −0 WinFormsUI/Docking/DockPanel.MdiClientController.cs
  116. +780 −0 WinFormsUI/Docking/DockPanel.Persistor.cs
  117. +165 −0 WinFormsUI/Docking/DockPanel.SplitterDragHandler.cs
  118. +926 −0 WinFormsUI/Docking/DockPanel.cs
  119. +224 −0 WinFormsUI/Docking/DockPanelExtender.cs
  120. +28 −0 WinFormsUI/Docking/DockWindow.SplitterControl.cs
  121. +243 −0 WinFormsUI/Docking/DockWindow.cs
  122. +38 −0 WinFormsUI/Docking/DockWindowCollection.cs
  123. +64 −0 WinFormsUI/Docking/DragForm.cs
  124. +13 −0 WinFormsUI/Docking/DummyControl.cs
  125. +51 −0 WinFormsUI/Docking/Enums.cs
  126. +436 −0 WinFormsUI/Docking/FloatWindow.cs
  127. +42 −0 WinFormsUI/Docking/FloatWindowCollection.cs
  128. +103 −0 WinFormsUI/Docking/Helpers/DockHelper.cs
  129. +88 −0 WinFormsUI/Docking/Helpers/DrawHelper.cs
  130. +29 −0 WinFormsUI/Docking/Helpers/ResourceHelper.cs
  131. +19 −0 WinFormsUI/Docking/Helpers/Win32Helper.cs
  132. +69 −0 WinFormsUI/Docking/InertButtonBase.cs
  133. +44 −0 WinFormsUI/Docking/Interfaces.cs
  134. +46 −0 WinFormsUI/Docking/Localization.cs
  135. +14 −0 WinFormsUI/Docking/Measures.cs
  136. +108 −0 WinFormsUI/Docking/NestedDockingStatus.cs
  137. +116 −0 WinFormsUI/Docking/NestedPaneCollection.cs
  138. +350 −0 WinFormsUI/Docking/Resources.Designer.cs
  139. +244 −0 WinFormsUI/Docking/Resources.resx
  140. BIN WinFormsUI/Docking/Resources/DockIndicator_PaneDiamond.bmp
  141. BIN WinFormsUI/Docking/Resources/DockIndicator_PaneDiamond_Bottom.bmp
  142. BIN WinFormsUI/Docking/Resources/DockIndicator_PaneDiamond_Hotspot.bmp
  143. BIN WinFormsUI/Docking/Resources/DockIndicator_PaneDiamond_HotspotIndex.bmp
  144. BIN WinFormsUI/Docking/Resources/DockIndicator_PaneDiamond_Left.bmp
  145. BIN WinFormsUI/Docking/Resources/DockIndicator_PaneDiamond_Right.bmp
  146. BIN WinFormsUI/Docking/Resources/DockIndicator_PaneDiamond_Top.bmp
  147. BIN WinFormsUI/Docking/Resources/DockIndicator_PanelBottom.bmp
  148. BIN WinFormsUI/Docking/Resources/DockIndicator_PanelBottom_Active.bmp
  149. BIN WinFormsUI/Docking/Resources/DockIndicator_PanelFill.bmp
  150. BIN WinFormsUI/Docking/Resources/DockIndicator_PanelFill_Active.bmp
  151. BIN WinFormsUI/Docking/Resources/DockIndicator_PanelLeft.bmp
  152. BIN WinFormsUI/Docking/Resources/DockIndicator_PanelLeft_Active.bmp
  153. BIN WinFormsUI/Docking/Resources/DockIndicator_PanelRight.bmp
  154. BIN WinFormsUI/Docking/Resources/DockIndicator_PanelRight_Active.bmp
  155. BIN WinFormsUI/Docking/Resources/DockIndicator_PanelTop.bmp
  156. BIN WinFormsUI/Docking/Resources/DockIndicator_PanelTop_Active.bmp
  157. BIN WinFormsUI/Docking/Resources/DockPaneCaption_AutoHide0.bmp
  158. BIN WinFormsUI/Docking/Resources/DockPaneCaption_AutoHide1.bmp
  159. BIN WinFormsUI/Docking/Resources/DockPaneCaption_AutoHide2.bmp
  160. BIN WinFormsUI/Docking/Resources/DockPaneCaption_AutoHide3.bmp
  161. BIN WinFormsUI/Docking/Resources/DockPaneCaption_AutoHide4.bmp
  162. BIN WinFormsUI/Docking/Resources/DockPaneCaption_AutoHide5.bmp
  163. BIN WinFormsUI/Docking/Resources/DockPaneCaption_AutoHide6.bmp
  164. BIN WinFormsUI/Docking/Resources/DockPaneCaption_AutoHide7.bmp
  165. BIN WinFormsUI/Docking/Resources/DockPaneCaption_Close0.bmp
  166. BIN WinFormsUI/Docking/Resources/DockPaneCaption_Close1.bmp
  167. BIN WinFormsUI/Docking/Resources/DockPaneCaption_Close2.bmp
  168. BIN WinFormsUI/Docking/Resources/DockPaneCaption_Close3.bmp
  169. BIN WinFormsUI/Docking/Resources/DockPaneCaption_Options0.bmp
  170. BIN WinFormsUI/Docking/Resources/DockPaneCaption_Options1.bmp
  171. BIN WinFormsUI/Docking/Resources/DockPaneCaption_Options2.bmp
  172. BIN WinFormsUI/Docking/Resources/DockPaneCaption_Options3.bmp
  173. BIN WinFormsUI/Docking/Resources/DockPaneStrip_CloseActive.bmp
  174. BIN WinFormsUI/Docking/Resources/DockPaneStrip_CloseInactive.bmp
  175. BIN WinFormsUI/Docking/Resources/DockPaneStrip_WindowListActive.bmp
  176. BIN WinFormsUI/Docking/Resources/DockPaneStrip_WindowListActiveOverflow.bmp
  177. BIN WinFormsUI/Docking/Resources/DockPaneStrip_WindowListInactive.bmp
  178. BIN WinFormsUI/Docking/Resources/DockPaneStrip_WindowListInactiveOverflow.bmp
  179. BIN WinFormsUI/Docking/Resources/DockPanel.bmp
  180. BIN WinFormsUI/Docking/Resources/Dockindicator_PaneDiamond_Fill.bmp
  181. BIN WinFormsUI/Docking/Resources/Thumbs.db
  182. +70 −0 WinFormsUI/Docking/SplitterBase.cs
  183. +729 −0 WinFormsUI/Docking/Strings.Designer.cs
  184. +342 −0 WinFormsUI/Docking/Strings.resx
  185. +491 −0 WinFormsUI/Docking/VS2005AutoHideStrip.cs
  186. +483 −0 WinFormsUI/Docking/VS2005DockPaneCaption.cs
  187. +1,280 −0 WinFormsUI/Docking/VS2005DockPaneStrip.cs
  188. +168 −0 WinFormsUI/Docking/VisibleNestedPaneCollection.cs
  189. +369 −0 WinFormsUI/Docking/Win32/Enums.cs
  190. +67 −0 WinFormsUI/Docking/Win32/NativeMethods.cs
  191. +28 −0 WinFormsUI/Properties/AssemblyInfo.cs
  192. BIN WinFormsUI/WeifenLuo.pfx
  193. +220 −0 WinFormsUI/WinFormsUI.csproj
  194. +9 −0 WinFormsUI/license.txt
  195. +9 −0 license.txt

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
View
@@ -0,0 +1,26 @@
+using System;
+using System.Collections.Generic;
+using System.ComponentModel;
+using System.Data;
+using System.Drawing;
+using System.Text;
+using System.Windows.Forms;
+using System.Reflection;
+using WeifenLuo.WinFormsUI.Docking;
+
+namespace DockSample
+{
+ public partial class AboutDialog : Form
+ {
+ public AboutDialog()
+ {
+ InitializeComponent();
+ }
+
+ private void AboutDialog_Load(object sender, EventArgs e)
+ {
+ labelAppVersion.Text = typeof(MainForm).Assembly.GetName().Version.ToString();
+ labelLibVersion.Text = typeof(DockPanel).Assembly.GetName().Version.ToString();
+ }
+ }
+}
View
@@ -0,0 +1,120 @@
+<?xml version="1.0" encoding="utf-8"?>
+<root>
+ <!--
+ Microsoft ResX Schema
+
+ Version 2.0
+
+ The primary goals of this format is to allow a simple XML format
+ that is mostly human readable. The generation and parsing of the
+ various data types are done through the TypeConverter classes
+ associated with the data types.
+
+ Example:
+
+ ... ado.net/XML headers & schema ...
+ <resheader name="resmimetype">text/microsoft-resx</resheader>
+ <resheader name="version">2.0</resheader>
+ <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
+ <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
+ <data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
+ <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
+ <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
+ <value>[base64 mime encoded serialized .NET Framework object]</value>
+ </data>
+ <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
+ <value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
+ <comment>This is a comment</comment>
+ </data>
+
+ There are any number of "resheader" rows that contain simple
+ name/value pairs.
+
+ Each data row contains a name, and value. The row also contains a
+ type or mimetype. Type corresponds to a .NET class that support
+ text/value conversion through the TypeConverter architecture.
+ Classes that don't support this are serialized and stored with the
+ mimetype set.
+
+ The mimetype is used for serialized objects, and tells the
+ ResXResourceReader how to depersist the object. This is currently not
+ extensible. For a given mimetype the value must be set accordingly:
+
+ Note - application/x-microsoft.net.object.binary.base64 is the format
+ that the ResXResourceWriter will generate, however the reader can
+ read any of the formats listed below.
+
+ mimetype: application/x-microsoft.net.object.binary.base64
+ value : The object must be serialized with
+ : System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
+ : and then encoded with base64 encoding.
+
+ mimetype: application/x-microsoft.net.object.soap.base64
+ value : The object must be serialized with
+ : System.Runtime.Serialization.Formatters.Soap.SoapFormatter
+ : and then encoded with base64 encoding.
+
+ mimetype: application/x-microsoft.net.object.bytearray.base64
+ value : The object must be serialized into a byte array
+ : using a System.ComponentModel.TypeConverter
+ : and then encoded with base64 encoding.
+ -->
+ <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
+ <xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
+ <xsd:element name="root" msdata:IsDataSet="true">
+ <xsd:complexType>
+ <xsd:choice maxOccurs="unbounded">
+ <xsd:element name="metadata">
+ <xsd:complexType>
+ <xsd:sequence>
+ <xsd:element name="value" type="xsd:string" minOccurs="0" />
+ </xsd:sequence>
+ <xsd:attribute name="name" use="required" type="xsd:string" />
+ <xsd:attribute name="type" type="xsd:string" />
+ <xsd:attribute name="mimetype" type="xsd:string" />
+ <xsd:attribute ref="xml:space" />
+ </xsd:complexType>
+ </xsd:element>
+ <xsd:element name="assembly">
+ <xsd:complexType>
+ <xsd:attribute name="alias" type="xsd:string" />
+ <xsd:attribute name="name" type="xsd:string" />
+ </xsd:complexType>
+ </xsd:element>
+ <xsd:element name="data">
+ <xsd:complexType>
+ <xsd:sequence>
+ <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
+ <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
+ </xsd:sequence>
+ <xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
+ <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
+ <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
+ <xsd:attribute ref="xml:space" />
+ </xsd:complexType>
+ </xsd:element>
+ <xsd:element name="resheader">
+ <xsd:complexType>
+ <xsd:sequence>
+ <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
+ </xsd:sequence>
+ <xsd:attribute name="name" type="xsd:string" use="required" />
+ </xsd:complexType>
+ </xsd:element>
+ </xsd:choice>
+ </xsd:complexType>
+ </xsd:element>
+ </xsd:schema>
+ <resheader name="resmimetype">
+ <value>text/microsoft-resx</value>
+ </resheader>
+ <resheader name="version">
+ <value>2.0</value>
+ </resheader>
+ <resheader name="reader">
+ <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
+ </resheader>
+ <resheader name="writer">
+ <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
+ </resheader>
+</root>
@@ -0,0 +1,113 @@
+using System;
+using System.Drawing;
+using System.Windows.Forms;
+using WeifenLuo.WinFormsUI.Docking;
+
+namespace DockSample.Customization
+{
+ internal class DockHelper
+ {
+ public static bool IsDockStateAutoHide(DockState dockState)
+ {
+ if (dockState == DockState.DockLeftAutoHide ||
+ dockState == DockState.DockRightAutoHide ||
+ dockState == DockState.DockTopAutoHide ||
+ dockState == DockState.DockBottomAutoHide)
+ return true;
+ else
+ return false;
+ }
+
+ public static bool IsDockStateDocked(DockState dockState)
+ {
+ return (dockState == DockState.DockLeft ||
+ dockState == DockState.DockRight ||
+ dockState == DockState.DockTop ||
+ dockState == DockState.DockBottom);
+ }
+
+ public static bool IsDockBottom(DockState dockState)
+ {
+ return (dockState == DockState.DockBottom || dockState == DockState.DockBottomAutoHide) ? true : false;
+ }
+
+ public static bool IsDockLeft(DockState dockState)
+ {
+ return (dockState == DockState.DockLeft || dockState == DockState.DockLeftAutoHide) ? true : false;
+ }
+
+ public static bool IsDockRight(DockState dockState)
+ {
+ return (dockState == DockState.DockRight || dockState == DockState.DockRightAutoHide) ? true : false;
+ }
+
+ public static bool IsDockTop(DockState dockState)
+ {
+ return (dockState == DockState.DockTop || dockState == DockState.DockTopAutoHide ) ? true : false;
+ }
+
+ public static bool IsDockStateValid(DockState dockState, DockAreas dockableAreas)
+ {
+ if (((dockableAreas & DockAreas.Float) == 0) &&
+ (dockState == DockState.Float))
+ return false;
+ else if (((dockableAreas & DockAreas.Document) == 0) &&
+ (dockState == DockState.Document))
+ return false;
+ else if (((dockableAreas & DockAreas.DockLeft) == 0) &&
+ (dockState == DockState.DockLeft || dockState == DockState.DockLeftAutoHide))
+ return false;
+ else if (((dockableAreas & DockAreas.DockRight) == 0) &&
+ (dockState == DockState.DockRight || dockState == DockState.DockRightAutoHide))
+ return false;
+ else if (((dockableAreas & DockAreas.DockTop) == 0) &&
+ (dockState == DockState.DockTop || dockState == DockState.DockTopAutoHide))
+ return false;
+ else if (((dockableAreas & DockAreas.DockBottom) == 0) &&
+ (dockState == DockState.DockBottom || dockState == DockState.DockBottomAutoHide))
+ return false;
+ else
+ return true;
+ }
+
+ public static bool IsDockWindowState(DockState state)
+ {
+ if (state == DockState.DockTop || state == DockState.DockBottom || state == DockState.DockLeft ||
+ state == DockState.DockRight || state == DockState.Document)
+ return true;
+ else
+ return false;
+ }
+
+ public static bool IsValidRestoreState(DockState state)
+ {
+ if (state == DockState.DockLeft || state == DockState.DockRight || state == DockState.DockTop ||
+ state == DockState.DockBottom || state == DockState.Document)
+ return true;
+ else
+ return false;
+ }
+
+ public static DockState ToggleAutoHideState(DockState state)
+ {
+ if (state == DockState.DockLeft)
+ return DockState.DockLeftAutoHide;
+ else if (state == DockState.DockRight)
+ return DockState.DockRightAutoHide;
+ else if (state == DockState.DockTop)
+ return DockState.DockTopAutoHide;
+ else if (state == DockState.DockBottom)
+ return DockState.DockBottomAutoHide;
+ else if (state == DockState.DockLeftAutoHide)
+ return DockState.DockLeft;
+ else if (state == DockState.DockRightAutoHide)
+ return DockState.DockRight;
+ else if (state == DockState.DockTopAutoHide)
+ return DockState.DockTop;
+ else if (state == DockState.DockBottomAutoHide)
+ return DockState.DockBottom;
+ else
+ return state;
+ }
+ }
+}
Oops, something went wrong.

0 comments on commit ee3ff63

Please sign in to comment.