C# Class ESRI.ArcGIS.SilverlightMapApp.DraggableWindow

Inheritance: System.Windows.Controls.ContentControl
Mostra file Open project: Esri/arcgis-templates-silverlight Class Usage Examples

Public Properties

Property Type Description
ContentBackgroundBorderProperty System.Windows.DependencyProperty
ContentBackgroundProperty System.Windows.DependencyProperty
HorizontalOffsetProperty System.Windows.DependencyProperty
IsCloseButtonVisibleProperty System.Windows.DependencyProperty
IsDraggableProperty System.Windows.DependencyProperty
IsHeaderVisibleProperty System.Windows.DependencyProperty
IsHeightResizeableProperty System.Windows.DependencyProperty
IsOpenProperty System.Windows.DependencyProperty
IsWidthResizeableProperty System.Windows.DependencyProperty
TitleProperty System.Windows.DependencyProperty
VerticalOffsetProperty System.Windows.DependencyProperty

Public Methods

Method Description
DraggableWindow ( ) : System.Windows

Initializes a new instance of the DraggableWindow class.

OnApplyTemplate ( ) : void

When overridden in a derived class, is invoked whenever application code or internal processes (such as a rebuilding layout pass) call M:System.Windows.Controls.Control.ApplyTemplate. In simplest terms, this means the method is called just before a UI element displays in an application.

showCloseButton ( bool show ) : void

Protected Methods

Method Description
OnClosed ( ) : void

Called when windows is closed.

OnOpened ( ) : void

Called when windows is opened.

Private Methods

Method Description
ChangeVisualState ( bool useTransitions ) : void

Updates the visual state of the control.

GoToState ( bool useTransitions, string stateName ) : bool
OnContentBackgroundBorderPropertyChanged ( DependencyObject d, System.Windows.DependencyPropertyChangedEventArgs e ) : void
OnContentBackgroundPropertyChanged ( DependencyObject d, System.Windows.DependencyPropertyChangedEventArgs e ) : void
OnHorizontalOffsetPropertyChanged ( DependencyObject d, System.Windows.DependencyPropertyChangedEventArgs e ) : void

HorisontalOffsetProperty property changed handler.

OnIsCloseButtonVisiblePropertyChanged ( DependencyObject d, System.Windows.DependencyPropertyChangedEventArgs e ) : void
OnIsHeaderVisiblePropertyChanged ( DependencyObject d, System.Windows.DependencyPropertyChangedEventArgs e ) : void
OnIsHeightResizeablePropertyChanged ( DependencyObject d, System.Windows.DependencyPropertyChangedEventArgs e ) : void

IsHeightResizeableProperty property changed handler.

OnIsOpenPropertyChanged ( DependencyObject d, System.Windows.DependencyPropertyChangedEventArgs e ) : void

IsOpenProperty property changed handler.

OnIsWidthResizeablePropertyChanged ( DependencyObject d, System.Windows.DependencyPropertyChangedEventArgs e ) : void

IsWidthResizeableProperty property changed handler.

OnVerticalOffsetPropertyChanged ( DependencyObject d, System.Windows.DependencyPropertyChangedEventArgs e ) : void

VerticalOffsetProperty property changed handler.

Resize_MouseLeave ( object sender, System.Windows.Input.MouseEventArgs e ) : void

Handles the MouseLeave event of the Resize area.

Resize_MouseLeftButtonDown ( object sender, System.Windows.Input.MouseButtonEventArgs e ) : void

Handles the MouseLeftButtonDown event of the Resize area.

Resize_MouseLeftButtonUp ( object sender, System.Windows.Input.MouseButtonEventArgs e ) : void

Handles the MouseLeftButtonUp event of the Resize area.

Resize_MouseMove ( object sender, System.Windows.Input.MouseEventArgs e ) : void

Handles the MouseMove event of the Resize area.

RootVisual_MouseLeave ( object sender, System.Windows.Input.MouseEventArgs e ) : void

Handles the MouseLeave event of the RootVisual control.

RootVisual_MouseLeftButtonUp ( object sender, System.Windows.Input.MouseButtonEventArgs e ) : void

Handles the MouseLeftButtonUp event of the RootVisual control.

RootVisual_MouseMove ( object sender, System.Windows.Input.MouseEventArgs e ) : void

Handles the MouseMove event of the RootVisual control.

StopDrag ( ) : void

Stops tracking window drag.

StopResize ( ) : void

Cleanup of event handlers. Called when resize has ended.

topbar_LostMouseCapture ( object sender, System.Windows.Input.MouseEventArgs e ) : void
topbar_MouseLeftButtonDown ( object sender, System.Windows.Input.MouseButtonEventArgs e ) : void

Starts tracking window drag

Method Details

DraggableWindow() public method

Initializes a new instance of the DraggableWindow class.
public DraggableWindow ( ) : System.Windows
return System.Windows

OnApplyTemplate() public method

When overridden in a derived class, is invoked whenever application code or internal processes (such as a rebuilding layout pass) call M:System.Windows.Controls.Control.ApplyTemplate. In simplest terms, this means the method is called just before a UI element displays in an application.
public OnApplyTemplate ( ) : void
return void

OnClosed() protected method

Called when windows is closed.
protected OnClosed ( ) : void
return void

OnOpened() protected method

Called when windows is opened.
protected OnOpened ( ) : void
return void

showCloseButton() public method

public showCloseButton ( bool show ) : void
show bool
return void

Property Details

ContentBackgroundBorderProperty public_oe static_oe property

Identifies the Title dependency property.
public static DependencyProperty,System.Windows ContentBackgroundBorderProperty
return System.Windows.DependencyProperty

ContentBackgroundProperty public_oe static_oe property

Identifies the Title dependency property.
public static DependencyProperty,System.Windows ContentBackgroundProperty
return System.Windows.DependencyProperty

HorizontalOffsetProperty public_oe static_oe property

Identifies the HorizontalOffset dependency property.
public static DependencyProperty,System.Windows HorizontalOffsetProperty
return System.Windows.DependencyProperty

IsCloseButtonVisibleProperty public_oe static_oe property

Identifies the IsCloseButtonHidden dependency property
public static DependencyProperty,System.Windows IsCloseButtonVisibleProperty
return System.Windows.DependencyProperty

IsDraggableProperty public_oe static_oe property

Identifies the IsDraggable dependency property.
public static DependencyProperty,System.Windows IsDraggableProperty
return System.Windows.DependencyProperty

IsHeaderVisibleProperty public_oe static_oe property

Identifies the IsHeaderHidden dependency property
public static DependencyProperty,System.Windows IsHeaderVisibleProperty
return System.Windows.DependencyProperty

IsHeightResizeableProperty public_oe static_oe property

Identifies the IsHeightResizeable dependency property.
public static DependencyProperty,System.Windows IsHeightResizeableProperty
return System.Windows.DependencyProperty

IsOpenProperty public_oe static_oe property

Identifies the IsOpen dependency property.
public static DependencyProperty,System.Windows IsOpenProperty
return System.Windows.DependencyProperty

IsWidthResizeableProperty public_oe static_oe property

Identifies the IsWidthResizeable dependency property.
public static DependencyProperty,System.Windows IsWidthResizeableProperty
return System.Windows.DependencyProperty

TitleProperty public_oe static_oe property

Identifies the Title dependency property.
public static DependencyProperty,System.Windows TitleProperty
return System.Windows.DependencyProperty

VerticalOffsetProperty public_oe static_oe property

Identifies the VerticalOffset dependency property.
public static DependencyProperty,System.Windows VerticalOffsetProperty
return System.Windows.DependencyProperty