FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
MapWindow5/src/MW5.UI/Helpers/SplitContainerHelper.cs at develop · MapWindow/MapWindow5 · GitHub
MapWindow
/
MapWindow5
Public
Notifications
You must be signed in to change notification settings
Fork
102
Star
308
Code
Issues
14
Pull requests
12
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
MapWindow5
/
src
/
MW5.UI
/
Helpers
/
SplitContainerHelper.cs
Copy path
More file actions
More file actions
Latest commit
History
History
History
28 lines (27 loc) · 924 Bytes
Breadcrumbs
MapWindow5
/
src
/
MW5.UI
/
Helpers
/
SplitContainerHelper.cs
Copy path
File metadata and controls
28 lines (27 loc) · 924 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
using
System
;
using
System
.
Collections
.
Generic
;
using
System
.
Linq
;
using
System
.
Text
;
using
System
.
Threading
.
Tasks
;
using
System
.
Windows
.
Forms
;
using
Syncfusion
.
Windows
.
Forms
.
Tools
;
namespace
MW5
.
UI
.
Helpers
{
/// <summary>
/// Extension methods for SplitContainer control
/// </summary>
public
static
class
SplitContainerHelper
{
/// <summary>
/// Initializes split container in the dock panel.
/// </summary>
public
static
void
InitDockPanel
(
this
SplitContainerAdv
splitContainer
,
double
splitterDistanceRatio
)
{
splitContainer
.
Orientation
=
Orientation
.
Vertical
;
splitContainer
.
BorderStyle
=
BorderStyle
.
None
;
splitContainer
.
Panel1MinSize
=
0
;
splitContainer
.
Panel2MinSize
=
0
;
splitContainer
.
SplitterDistance
=
Convert
.
ToInt32
(
splitContainer
.
Height
*
splitterDistanceRatio
)
;
}
}
}
Back
|
FazBrowse Home
|
New Git URL