C# Класс ESRI.ArcGIS.SilverlightMapApp.DraggableWindow

Наследование: System.Windows.Controls.ContentControl
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
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

Открытые методы

Метод Описание
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

Защищенные методы

Метод Описание
OnClosed ( ) : void

Called when windows is closed.

OnOpened ( ) : void

Called when windows is opened.

Приватные методы

Метод Описание
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

Описание методов

DraggableWindow() публичный Метод

Initializes a new instance of the DraggableWindow class.
public DraggableWindow ( ) : System.Windows
Результат System.Windows

OnApplyTemplate() публичный Метод

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
Результат void

OnClosed() защищенный Метод

Called when windows is closed.
protected OnClosed ( ) : void
Результат void

OnOpened() защищенный Метод

Called when windows is opened.
protected OnOpened ( ) : void
Результат void

showCloseButton() публичный Метод

public showCloseButton ( bool show ) : void
show bool
Результат void

Описание свойств

ContentBackgroundBorderProperty публичное статическое свойство

Identifies the Title dependency property.
public static DependencyProperty,System.Windows ContentBackgroundBorderProperty
Результат System.Windows.DependencyProperty

ContentBackgroundProperty публичное статическое свойство

Identifies the Title dependency property.
public static DependencyProperty,System.Windows ContentBackgroundProperty
Результат System.Windows.DependencyProperty

HorizontalOffsetProperty публичное статическое свойство

Identifies the HorizontalOffset dependency property.
public static DependencyProperty,System.Windows HorizontalOffsetProperty
Результат System.Windows.DependencyProperty

IsCloseButtonVisibleProperty публичное статическое свойство

Identifies the IsCloseButtonHidden dependency property
public static DependencyProperty,System.Windows IsCloseButtonVisibleProperty
Результат System.Windows.DependencyProperty

IsDraggableProperty публичное статическое свойство

Identifies the IsDraggable dependency property.
public static DependencyProperty,System.Windows IsDraggableProperty
Результат System.Windows.DependencyProperty

IsHeaderVisibleProperty публичное статическое свойство

Identifies the IsHeaderHidden dependency property
public static DependencyProperty,System.Windows IsHeaderVisibleProperty
Результат System.Windows.DependencyProperty

IsHeightResizeableProperty публичное статическое свойство

Identifies the IsHeightResizeable dependency property.
public static DependencyProperty,System.Windows IsHeightResizeableProperty
Результат System.Windows.DependencyProperty

IsOpenProperty публичное статическое свойство

Identifies the IsOpen dependency property.
public static DependencyProperty,System.Windows IsOpenProperty
Результат System.Windows.DependencyProperty

IsWidthResizeableProperty публичное статическое свойство

Identifies the IsWidthResizeable dependency property.
public static DependencyProperty,System.Windows IsWidthResizeableProperty
Результат System.Windows.DependencyProperty

TitleProperty публичное статическое свойство

Identifies the Title dependency property.
public static DependencyProperty,System.Windows TitleProperty
Результат System.Windows.DependencyProperty

VerticalOffsetProperty публичное статическое свойство

Identifies the VerticalOffset dependency property.
public static DependencyProperty,System.Windows VerticalOffsetProperty
Результат System.Windows.DependencyProperty