Skip to content

Window.Padding

property · Window · cAlgo.API

DesktopCLICloud

Get / Set the window padding

Environment behaviour

CLI — not supported. Never shown: Show, Hide and Close send nothing; IsVisible stays false and window events never fire.

Cloud — not supported. Never shown: Show, Hide and Close send nothing; IsVisible stays false and window events never fire.

Definition

public Thickness Padding {get; set;}
window.Padding: Thickness

Returns Thickness

Examples

var window = new Window { Title = "Padded", Width = 300, Height = 200, Padding = new Thickness(15) };
window.Child = new TextBlock { Text = "Content with 15 px padding" };
window.Show();
window = Window()
window.Title = "Padded"
window.Width = 300
window.Height = 200
window.Padding = Thickness(15)
textBlock = TextBlock()
textBlock.Text = "Content with 15 px padding"
window.Child = textBlock
window.Show()