C# Class ESRI.ArcGIS.SilverlightMapApp.DraggableWindow

Inheritance: System.Windows.Controls.ContentControl
Afficher le fichier Open project: Esri/arcgis-templates-silverlight Class Usage Examples

Méthodes publiques

Свойство 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

Méthodes publiques

Méthode 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

Méthodes protégées

Méthode Description
OnClosed ( ) : void

Called when windows is closed.

OnOpened ( ) : void

Called when windows is opened.

Private Methods

Méthode 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 méthode

Initializes a new instance of the DraggableWindow class.
public DraggableWindow ( ) : System.Windows
Résultat System.Windows

OnApplyTemplate() public méthode

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
Résultat void

OnClosed() protected méthode

Called when windows is closed.
protected OnClosed ( ) : void
Résultat void

OnOpened() protected méthode

Called when windows is opened.
protected OnOpened ( ) : void
Résultat void

showCloseButton() public méthode

public showCloseButton ( bool show ) : void
show bool
Résultat void

Property Details

ContentBackgroundBorderProperty public_oe static_oe property

Identifies the Title dependency property.
public static DependencyProperty,System.Windows ContentBackgroundBorderProperty
Résultat System.Windows.DependencyProperty

ContentBackgroundProperty public_oe static_oe property

Identifies the Title dependency property.
public static DependencyProperty,System.Windows ContentBackgroundProperty
Résultat System.Windows.DependencyProperty

HorizontalOffsetProperty public_oe static_oe property

Identifies the HorizontalOffset dependency property.
public static DependencyProperty,System.Windows HorizontalOffsetProperty
Résultat System.Windows.DependencyProperty

IsCloseButtonVisibleProperty public_oe static_oe property

Identifies the IsCloseButtonHidden dependency property
public static DependencyProperty,System.Windows IsCloseButtonVisibleProperty
Résultat System.Windows.DependencyProperty

IsDraggableProperty public_oe static_oe property

Identifies the IsDraggable dependency property.
public static DependencyProperty,System.Windows IsDraggableProperty
Résultat System.Windows.DependencyProperty

IsHeaderVisibleProperty public_oe static_oe property

Identifies the IsHeaderHidden dependency property
public static DependencyProperty,System.Windows IsHeaderVisibleProperty
Résultat System.Windows.DependencyProperty

IsHeightResizeableProperty public_oe static_oe property

Identifies the IsHeightResizeable dependency property.
public static DependencyProperty,System.Windows IsHeightResizeableProperty
Résultat System.Windows.DependencyProperty

IsOpenProperty public_oe static_oe property

Identifies the IsOpen dependency property.
public static DependencyProperty,System.Windows IsOpenProperty
Résultat System.Windows.DependencyProperty

IsWidthResizeableProperty public_oe static_oe property

Identifies the IsWidthResizeable dependency property.
public static DependencyProperty,System.Windows IsWidthResizeableProperty
Résultat System.Windows.DependencyProperty

TitleProperty public_oe static_oe property

Identifies the Title dependency property.
public static DependencyProperty,System.Windows TitleProperty
Résultat System.Windows.DependencyProperty

VerticalOffsetProperty public_oe static_oe property

Identifies the VerticalOffset dependency property.
public static DependencyProperty,System.Windows VerticalOffsetProperty
Résultat System.Windows.DependencyProperty