Method wpfBuilder.StartCanvas(+ 2 overloads)
Overload
Adds System.Windows.Controls.Canvas panel that will contain elements added with wpfBuilder.Add etc. Finally call wpfBuilder.End to return to current panel.
public wpfBuilder StartCanvas(bool childOfLast = false)
Parameters
childOfLast (bool)
Add as child of wpfBuilder.Last, which can be of type (or base type):
|
Returns
Remarks
For each added control call wpfBuilder.XY or use indexer like [x, y]
or [x, y, width, height]
.
Overload(next)
Adds a headered content control (System.Windows.Controls.GroupBox, System.Windows.Controls.Expander, etc) with child System.Windows.Controls.Canvas panel that will contain elements added with wpfBuilder.Add etc. Finally call wpfBuilder.End to return to current panel.
public wpfBuilder StartCanvas<T>(object header) where T : HeaderedContentControl, new()
Parameters
header (object)
Header text/content. |
Returns
Type Parameters
T |
Overload(top)
Adds a headered content control (System.Windows.Controls.GroupBox, System.Windows.Controls.Expander, etc) with child System.Windows.Controls.Canvas panel that will contain elements added with wpfBuilder.Add etc. Finally call wpfBuilder.End to return to current panel.
public wpfBuilder StartCanvas<T>(out T container, object header) where T : HeaderedContentControl, new()
Parameters
container (T)
Receives the content control's variable. The function creates new control of the type. |
header (object)
Header text/content. |
Returns
Type Parameters
T |