Comments (2)
Docked content doesn't have a set size. It inherits the size of the area instead. The area sizes are not directly accessible from outside of the DarkUI project as they are set to private.
The library was designed around workspaces which could be saved and loaded, rather than programatically setting these values directly. Personally I had a pre-defined workspace configuration which I shipped with the application as the default, then allowed users to save their own custom configurations alongside that. Within that, I set the default area sizes to what I found to be suitable.
There's a working method of doing this in the example project:
DarkUI/Example/Forms/MainForm.cs
Lines 198 to 223 in 31603ae
However, if you do want to directly set the size of an area programatically, you can add the following method to DarkDockPanel.cs and it should allow you to do this.
public void SetAreaSize(DarkDockArea area, Size size)
{
switch (area)
{
case DarkDockArea.Left:
_regions[DarkDockArea.Left].Size = size;
break;
case DarkDockArea.Right:
_regions[DarkDockArea.Right].Size = size;
break;
case DarkDockArea.Bottom:
_regions[DarkDockArea.Bottom].Size = size;
break;
}
}
from darkui.
Closing due to inactivity
from darkui.
Related Issues (20)
- ToolStripSplitButton is not displaying dropdown arrow HOT 1
- [FEATURE] Dark DataGridView HOT 1
- Combobox does not honor 'Displaymember'
- Application crashes when a Form contains a ComboBox and is minimized
- Add Custom Chrome Support
- [Feature] List view index from point HOT 1
- dotnet build / dotnet msbuild failing HOT 4
- [FEATURE REQUEST] .NET 5 support? HOT 1
- DarkCheckBox change BackColor?
- DarkTreeView nodes
- There are some incorrect layout behavior in DarkToolStrip
- DarkButton can not found ImageAlign Field?
- .net 5,.net 6 support HOT 2
- Error CS0234 The type or namespace name 'Icons' does not exist in the namespace 'DarkUI' (are you missing an assembly reference?) HOT 1
- I need panel + Darkscrollbar,what can i do ?
- I can't add nodes items in DarkTreeView, because there is no function in properties to add that HOT 3
- Turn theming on or off HOT 1
- Adding Button And text is blurry
- How Can I Get Panel + Darkscrollbar HOT 1
- Robin Passed Away HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from darkui.