Skip to content

Window

Summary

The window class, you can use it to show a window that can contain other chart controls

Signature

1
public sealed class Window

Namespace

cAlgo.API

Methods

Show

Summary

Shows the window

Signature

1
public void Show()

Return Value

void

Hide

Summary

Hides the window

Signature

1
public void Hide()

Return Value

void

Close

Summary

Closes the window

Signature

1
public void Close()

Return Value

void

SilentUpdate

Signature

1
internal void SilentUpdate(double left, double top, double width, double height, WindowState windowState)

Parameters

Name Type Description
left double
top double
width double
height double
windowState WindowState

Return Value

void

SetIsActive

Signature

1
internal void SetIsActive(bool isActive)

Parameters

Name Type Description
isActive bool

Return Value

void

SetIsVisible

Signature

1
internal void SetIsVisible(bool isVisible)

Parameters

Name Type Description
isVisible bool

Return Value

void

RaiseClosed

Signature

1
internal void RaiseClosed()

Return Value

void

RaiseLocationChanged

Signature

1
internal void RaiseLocationChanged()

Return Value

void

RaiseSizeChanged

Signature

1
internal void RaiseSizeChanged()

Return Value

void

ChangeToZeroIfNegative

Signature

1
private static double ChangeToZeroIfNegative(double value)

Parameters

Name Type Description
value double

Return Value

double

Properties

Child

Summary

Get / Set the main content control of window

Signature

1
public ControlBase Child {get; set;}

Return Value

ControlBase

Left

Summary

Get / Set window left margin (X)

Signature

1
public double Left {get; set;}

Return Value

double

Top

Summary

Get / Set window top margin (Y)

Signature

1
public double Top {get; set;}

Return Value

double

Width

Summary

Get / Set width of the window

Signature

1
public double Width {get; set;}

Return Value

double

Height

Summary

Get / Set height of the Window

Signature

1
public double Height {get; set;}

Return Value

double

Title

Summary

Get / Set the window title

Signature

1
public string Title {get; set;}

Return Value

string

BackgroundColor

Summary

Get / Set the window background color

Signature

1
public Color BackgroundColor {get; set;}

Return Value

Color

Padding

Summary

Get / Set the window padding

Signature

1
public Thickness Padding {get; set;}

Return Value

Thickness

MinHeight

Summary

Get / Set the window minimum height

Signature

1
public double MinHeight {get; set;}

Return Value

double

MaxHeight

Summary

Get / Set the window maximum height

Signature

1
public double MaxHeight {get; set;}

Return Value

double

MinWidth

Summary

Get / Set the window minimum width

Signature

1
public double MinWidth {get; set;}

Return Value

double

MaxWidth

Summary

Get / Set the window maximum width

Signature

1
public double MaxWidth {get; set;}

Return Value

double

ResizeMode

Summary

Get / Set the window resize mode

Signature

1
public ResizeMode ResizeMode {get; set;}

Return Value

ResizeMode

Related Tutorials

Topmost

Summary

Get / Set the window topmost flag, if True then the window will appear on top of all other windows

Signature

1
public bool Topmost {get; set;}

Return Value

bool

WindowStartupLocation

Summary

Get / Set the window startup location

Signature

1
public WindowStartupLocation WindowStartupLocation {get; set;}

Return Value

WindowStartupLocation

Related Tutorials

WindowState

Summary

Get / Set the window state

Signature

1
public WindowState WindowState {get; set;}

Return Value

WindowState

Related Tutorials

IsActive

Summary

Get / Set the window active / de-active flag, if Yes then the window will be active

Signature

1
public bool IsActive {get;}

Return Value

bool

IsVisible

Summary

Get / Set the window visibility flag, if Yes then the window will be shown otherwise it will be hidden

Signature

1
public bool IsVisible {get;}

Return Value

bool

OwnerType

Summary

Get / Set the window owner

Signature

1
public OwnerType OwnerType {get; set;}

Return Value

OwnerType

Related Tutorials

Events

Closed

Summary

This event gets triggered when window is closed

Signature

1
public event Action<WindowClosedEventArgs> Closed;

IsVisibleChanged

Summary

This event gets triggered when window visibility changes

Signature

1
public event Action<WindowIsVisibleChangedEventArgs> IsVisibleChanged;

Activated

Summary

This event gets triggered when window is activated

Signature

1
public event Action<WindowActivatedEventArgs> Activated;

Deactivated

Summary

This event gets triggered when window is deactivated

Signature

1
public event Action<WindowDeactivatedEventArgs> Deactivated;

LocationChanged

Summary

This event gets triggered when window location changes

Signature

1
public event Action<WindowLocationChangedEventArgs> LocationChanged;

SizeChanged

Summary

This event gets triggered when window is size changes

Signature

1
public event Action<WindowSizeChangedEventArgs> SizeChanged;