Class
RadWindow

Represents the Silverlight RadWindow control wrapper.

Definition

Namespace:Telerik.WebAii.Controls.Xaml

Assembly:Telerik.WebAii.Controls.Xaml.dll

Syntax:

cs-api-definition
public class RadWindow : ContentControl, IAutomationPeer, IPeerConverter, IRadWindow, IContentControl, IControl, IFrameworkElement, ITargetElement

Inheritance: objectAutomationObject<FrameworkElement>FrameworkElementSilverlightTestElementControlContentControlRadWindow

Derived Classes: AppointmentItemDialogSchedulerWindow

Implements: IAutomationPeerIContentControlIControlIFrameworkElementIPeerConverterIRadWindowITargetElement

Inherited Members ContentControl.ContentPropertyContentControl.GetRealType()ContentControl.ContentControl.IsTabStopPropertyControl.TabIndexPropertyControl.TabNavigationPropertyControl.PaddingPropertyControl.HorizontalContentAlignmentPropertyControl.VerticalContentAlignmentPropertyControl.BackgroundPropertyControl.BorderBrushPropertyControl.BorderThicknessPropertyControl.FontSizePropertyControl.ForegroundPropertyControl.IsEnabledPropertyControl.FontFamilyPropertyControl.FontStretchPropertyControl.FontStylePropertyControl.FontWeightPropertyControl.IsTabStopControl.TabIndexControl.TabNavigationControl.PaddingControl.HorizontalContentAlignmentControl.VerticalContentAlignmentControl.BackgroundControl.BorderBrushControl.BorderThicknessControl.FontSizeControl.ForegroundControl.IsEnabledControl.FontFamilyControl.FontStretchControl.FontStyleControl.FontWeightSilverlightTestElement.UseLayoutRoundingPropertySilverlightTestElement.UseLayoutRoundingFrameworkElement.ActualWidthPropertyFrameworkElement.ActualHeightPropertyFrameworkElement.WidthPropertyFrameworkElement.HeightPropertyFrameworkElement.MinWidthPropertyFrameworkElement.MaxWidthPropertyFrameworkElement.MinHeightPropertyFrameworkElement.MaxHeightPropertyFrameworkElement.HorizontalAlignmentPropertyFrameworkElement.VerticalAlignmentPropertyFrameworkElement.MarginPropertyFrameworkElement.DesiredSizePropertyFrameworkElement.RenderSizePropertyFrameworkElement.NamePropertyFrameworkElement.TagPropertyFrameworkElement.DataContextPropertyFrameworkElement.OpacityPropertyFrameworkElement.ClipPropertyFrameworkElement.RenderTransformPropertyFrameworkElement.OpacityMaskPropertyFrameworkElement.RenderTransformOriginPropertyFrameworkElement.IsHitTestVisiblePropertyFrameworkElement.VisibilityPropertyFrameworkElement.GetIdentifier(out string, out string)FrameworkElement.IsChild(FrameworkElement)FrameworkElement.GetChildTagIndex(FrameworkElement)FrameworkElement.InitializeMappings(MappingsCollection)FrameworkElement.As<T>()FrameworkElement.CastAs<T>()FrameworkElement.SetProxy(bool)FrameworkElement.SetUid(string)FrameworkElement.SetFindInfo(VisualFindInfo)FrameworkElement.SetXamlTag(string)FrameworkElement.AssignReference(AutomationReference)FrameworkElement.KeyPress(Keys, int, int, int)FrameworkElement.GetRectangle()FrameworkElement.GetRectangle(FrameworkElement)FrameworkElement.GetIntRectangle()FrameworkElement.IsHitTest()FrameworkElement.IsHitTest(bool)FrameworkElement.IsHitTest(FrameworkElement, bool)FrameworkElement.Highlight()FrameworkElement.Highlight(bool)FrameworkElement.Parent()FrameworkElement.Parent<T>()FrameworkElement.Parent(string)FrameworkElement.Parent(string, bool)FrameworkElement.GetNextSibling()FrameworkElement.GetPrevSibling()FrameworkElement.NextSibling(string)FrameworkElement.NextSibling<T>()FrameworkElement.PreviousSibling(string)FrameworkElement.PreviousSibling<T>()FrameworkElement.AnySibling<T>()FrameworkElement.AnySibling(string)FrameworkElement.GetScreenRectangle()FrameworkElement.ScrollToVisible()FrameworkElement.ScrollToVisible(ScrollToVisibleType)FrameworkElement.EnsureClickable()FrameworkElement.ToXml()FrameworkElement.Refresh()FrameworkElement.Equals(object)FrameworkElement.GetHashCode()FrameworkElement.GetProperties()FrameworkElement.GetAttachedProperty<T>(string, string)FrameworkElement.SetAttachedProperty<T>(string, string, T)FrameworkElement.SetFocus()FrameworkElement.ValidateMouseLocationIfNeeded(Point)FrameworkElement.GetStringPresentation()FrameworkElement.ToRealObject()FrameworkElement.FromRealObject(object)FrameworkElement.ValidateType(Type, string)FrameworkElement.GetKnownControlTypes(TechnologyType)FrameworkElement.RegisterElement(Type, string)FrameworkElement.InitKnownWpfControlTypes()FrameworkElement.InitKnownSilverlightControlTypes()FrameworkElement.InitKnownXamlControlTypes(Type)FrameworkElement.GetControlTypeFromInterface(Type)FrameworkElement.Match(IFindExpression)FrameworkElement.SetDepth(int)FrameworkElement.AddChildNode(ITargetElement)FrameworkElement.SetClosingTag(ITargetElement)FrameworkElement.GetChildren()FrameworkElement.GetParent()FrameworkElement.GetHostParent()FrameworkElement.SetParent(ITargetElement)FrameworkElement.GetUniqueHashCode()FrameworkElement.ToString()FrameworkElement.Capture()FrameworkElement.CaptureImage()FrameworkElement.GetProperty<T>(string)FrameworkElement.GetPropertyTypeSafe(string)FrameworkElement.GetAutomationProperty(string)FrameworkElement.SetProperty(string, object)FrameworkElement.ActualWidthFrameworkElement.ActualHeightFrameworkElement.WidthFrameworkElement.HeightFrameworkElement.MinWidthFrameworkElement.MaxWidthFrameworkElement.MinHeightFrameworkElement.MaxHeightFrameworkElement.HorizontalAlignmentFrameworkElement.VerticalAlignmentFrameworkElement.MarginFrameworkElement.DesiredSizeFrameworkElement.RenderSizeFrameworkElement.NameFrameworkElement.OpacityFrameworkElement.ClipFrameworkElement.RenderTransformFrameworkElement.OpacityMaskFrameworkElement.RenderTransformOriginFrameworkElement.IsHitTestVisibleFrameworkElement.VisibilityFrameworkElement.UidFrameworkElement.MappingsFrameworkElement.AutomationIdFrameworkElement.XamlTagBaseFrameworkElement.TextFrameworkElement.TextBlockContentFrameworkElement.TextLiteralContentFrameworkElement.UserFrameworkElement.XamlTagFrameworkElement.WaitFrameworkElement.FindFrameworkElement.ApplicationFrameworkElement.AbsoluteTagIndexFrameworkElement.TagNameIndexFrameworkElement.AbsoluteSiblingTagIndexFrameworkElement.EnableValidateMouseLocationFrameworkElement.ToolTipTextFrameworkElement.ComputedVisibilityFrameworkElement.IsVisibleFrameworkElement.ChildrenFrameworkElement.TechnologyTypeFrameworkElement.DepthFrameworkElement.IsTestRegionFrameworkElement.ParsedElementFrameworkElement.HostAutomationObject<FrameworkElement>.GetProperty(AutomationProperty)AutomationObject<FrameworkElement>.GetProperty(AutomationProperty, object)AutomationObject<FrameworkElement>.SetProperty(AutomationProperty, object)AutomationObject<FrameworkElement>.InvokeMethod(AutomationMethod, params object[])AutomationObject<FrameworkElement>.InvokeMethod(string, params object[])AutomationObject<FrameworkElement>.Serialize()AutomationObject<FrameworkElement>.Deserialize(string)AutomationObject<FrameworkElement>.ReferenceAutomationObject<FrameworkElement>.PropertyBag

Constructors

RadWindow()

Initializes a new instance of the RadWindow class.

Declaration

cs-api-definition
public RadWindow()

Properties

CanClose

Gets a value indicating whether the current RadWindow can be closed.

Declaration

cs-api-definition
public bool CanClose { get; }

Property Value

bool

Implements IRadWindow.CanClose

CanMove

Gets a value indicating whether the current RadWindow can be moved.

Declaration

cs-api-definition
public bool CanMove { get; }

Property Value

bool

Implements IRadWindow.CanMove

ContentPresenterElement

Get the Window content presenter element.

Declaration

cs-api-definition
public ContentPresenter ContentPresenterElement { get; }

Property Value

ContentPresenter

IsActiveWindow

Gets a value indicating whether this instance is active.

Declaration

cs-api-definition
public bool IsActiveWindow { get; }

Property Value

bool

Implements IRadWindow.IsActiveWindow

IsMaximized

Gets a value that represents whether the RadWindow is maximized.

Declaration

cs-api-definition
public bool IsMaximized { get; }

Property Value

bool

Implements IRadWindow.IsMaximized

IsMinimized

Gets a value that represents whether the RadWindow is minimized.

Declaration

cs-api-definition
public bool IsMinimized { get; }

Property Value

bool

Implements IRadWindow.IsMinimized

IsModal

Gets a value that represents whether the RadWindow is modal.

Declaration

cs-api-definition
public bool IsModal { get; }

Property Value

bool

Implements IRadWindow.IsModal

IsOpen

Gets a value representing the current RadWindow open state.

Declaration

cs-api-definition
public bool IsOpen { get; }

Property Value

bool

Implements IRadWindow.IsOpen

Left

Gets or sets a value that represents the distance between the left side of an element and the left side of the page.

Declaration

cs-api-definition
public double Left { get; set; }

Property Value

double

Implements IRadWindow.Left

LeftOffset

Gets or sets an offset value for the Left position in case of 'WindowStartupLocation' is set to CenterParent.

Declaration

cs-api-definition
[Obsolete("The property is deprecated. The property is removed from RadWindow in 2011.2.712")]
public double LeftOffset { get; set; }

Property Value

double

Implements IRadWindow.LeftOffset

RestoreMinimizedLocation

Gets the value determining whether the window preserves its size and location when the state is changed.

Declaration

cs-api-definition
public bool RestoreMinimizedLocation { get; }

Property Value

bool

Implements IRadWindow.RestoreMinimizedLocation

Title

Get the title of the window.

Declaration

cs-api-definition
public string Title { get; }

Property Value

string

Implements IRadWindow.Title

Top

Gets or sets a value that represents the distance between the top of an element and the top of the page.

Declaration

cs-api-definition
public double Top { get; set; }

Property Value

double

Implements IRadWindow.Top

TopOffset

Gets or sets an offset value for the Top position in case of 'WindowStartupLocation' is set to 'CenterParent'.

Declaration

cs-api-definition
[Obsolete("The property is deprecated. The property is removed from RadWindow in 2011.2.712")]
public double TopOffset { get; set; }

Property Value

double

Implements IRadWindow.TopOffset

Methods

Close()

Closes the window by a 'Close' button Click action.

Declaration

cs-api-definition
public void Close()

Implements IRadWindow.Close()

HeightCloseTo(double)

Round the height of the window.

Declaration

cs-api-definition
public bool HeightCloseTo(double height)

Parameters

height

double

The current height.

Returns

bool

HorizontalCoordinateCloseTo(double)

Round the horizontal coordinates of the window.

Declaration

cs-api-definition
public bool HorizontalCoordinateCloseTo(double horizontalCoordinates)

Parameters

horizontalCoordinates

double

Passed by user horizontal coordinates.

Returns

bool

Maximize()

Maximizes the window by a 'Maximize' button Click action.

Declaration

cs-api-definition
public void Maximize()

Implements IRadWindow.Maximize()

Minimize()

Minimizes the window by a 'Minimize' button Click action.

Declaration

cs-api-definition
public void Minimize()

Implements IRadWindow.Minimize()

MoveBy(int, int)

Moves the window dragging its header thumb by the given pixels on X and Y coordinates.

Declaration

cs-api-definition
public void MoveBy(int offsetByX, int offsetByY)

Parameters

offsetByX

int

By 'X' pixels left or right.

offsetByY

int

By 'Y' pixels up or down.

Implements IRadWindow.MoveBy(int, int)

Resize(OffsetReference, int, int)

Resize the window from a given pont with specified offset.

Declaration

cs-api-definition
public void Resize(OffsetReference startPoint, int offsetByX, int offsetByY)

Parameters

startPoint

OffsetReference

The start point from which the resizing starts.

offsetByX

int

The offset of resizing by X.

offsetByY

int

The offset of resizing by Y.

Implements IRadWindow.Resize(OffsetReference, int, int)

ResizeDown(int)

Resizes (Down) the window with given pixels.

Declaration

cs-api-definition
public void ResizeDown(int offsetByY)

Parameters

offsetByY

int

The pixels to add on down resizing.

Implements IRadWindow.ResizeDown(int)

ResizeDownLeft(int, int)

Resizes to down/left the window with given pixels.

Declaration

cs-api-definition
public void ResizeDownLeft(int offsetByX, int offsetByY)

Parameters

offsetByX

int

The pixels to add on left resizing.

offsetByY

int

The pixels to add on down resizing.

Implements IRadWindow.ResizeDownLeft(int, int)

ResizeDownRight(int, int)

Resizes to down/right the window with given pixels.

Declaration

cs-api-definition
public void ResizeDownRight(int offsetByX, int offsetByY)

Parameters

offsetByX

int

The pixels to add on right resizing.

offsetByY

int

The pixels to add on down resizing.

Implements IRadWindow.ResizeDownRight(int, int)

ResizeLeft(int)

Resizes (Left) the window with given pixels.

Declaration

cs-api-definition
public void ResizeLeft(int offsetByX)

Parameters

offsetByX

int

The pixels to add on left resizing.

Implements IRadWindow.ResizeLeft(int)

ResizeRight(int)

Resizes (Right) the window with given pixels.

Declaration

cs-api-definition
public void ResizeRight(int offsetByX)

Parameters

offsetByX

int

The pixels to add on right resizing.

Implements IRadWindow.ResizeRight(int)

ResizeUp(int)

Resizes (UP) the window with given pixels.

Declaration

cs-api-definition
public void ResizeUp(int offsetByY)

Parameters

offsetByY

int

The pixels to add on up resizing.

Implements IRadWindow.ResizeUp(int)

ResizeUpLeft(int, int)

Resizes to up/left the window with given pixels.

Declaration

cs-api-definition
public void ResizeUpLeft(int offsetByX, int offsetByY)

Parameters

offsetByX

int

The pixels to add on left resizing.

offsetByY

int

The pixels to add on up resizing.

Implements IRadWindow.ResizeUpLeft(int, int)

ResizeUpRight(int, int)

Resizes to up/right the window with given pixels.

Declaration

cs-api-definition
public void ResizeUpRight(int offsetByX, int offsetByY)

Parameters

offsetByX

int

The pixels to add on right resizing.

offsetByY

int

The pixels to add on up resizing.

Implements IRadWindow.ResizeUpRight(int, int)

Restore()

Restores the state (from maximized/minimized to normal) of the window by Click action on the respective button.

Declaration

cs-api-definition
public void Restore()

Implements IRadWindow.Restore()

VerticalCoordinateCloseTo(double)

Round the vertical coordinates of the window.

Declaration

cs-api-definition
public bool VerticalCoordinateCloseTo(double verticalCoordinates)

Parameters

verticalCoordinates

double

Passed by user vertical coordinates.

Returns

bool

WidthCloseTo(double)

Round the width of the window.

Declaration

cs-api-definition
public bool WidthCloseTo(double width)

Parameters

width

double

The current width.

Returns

bool