DockPanel
Summary
Defines the area where you can arrange child elemens either horizontally or vertically, relative to each other.
Signature
| public class DockPanel : Panel
|
Namespace
cAlgo.API
Examples
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
29
30
31
32
33
34
35
36
37
38 | using cAlgo.API;
namespace cAlgo
{
// This sample indicator shows how to use DockPanel
[Indicator(IsOverlay = true, TimeZone = TimeZones.UTC, AccessRights = AccessRights.None)]
public class DockPanelSample : Indicator
{
protected override void Initialize()
{
var dockPanel = new DockPanel
{
HorizontalAlignment = HorizontalAlignment.Center,
VerticalAlignment = VerticalAlignment.Center,
BackgroundColor = Color.Gold,
Opacity = 0.8
};
dockPanel.AddChild(new TextBlock
{
Text = "Enter Your Name",
Margin = 5,
Dock = Dock.Top,
HorizontalAlignment = HorizontalAlignment.Center,
ForegroundColor = Color.Black,
FontWeight = FontWeight.ExtraBold
});
dockPanel.AddChild(new TextBox
{
Dock = Dock.Bottom,
Margin = 5,
Width = 100
});
Chart.AddControl(dockPanel);
}
public override void Calculate(int index)
{
}
}
}
|
Properties
LastChildFill
Summary
Indicates whether the last child element within a DockPanel stretches to fill the remaining available space.
Signature
| public bool LastChildFill {get; set;}
|
Return Value
bool
Last update: June 1, 2023