New to Telerik UI for WPFStart a free 30-day trial

IDragAware

Interface

Represents an interface that defines methods and properties for drag-aware window behaviors.

Definition

Namespace:Telerik.Windows.Controls.InternalWindow

Assembly:Telerik.Windows.Controls.Navigation.dll

Syntax:

C#
public interface IDragAware

Derived Classes: RadDiagramPrintPreviewDialogDialogWindowBaseToolWindowFindDialogPasswordRequiredDialogSignSignatureDialogSignaturePropertiesDialogRadOpenFileDialogRadOpenFolderDialogRadSaveFileDialogRadTabbedWindowRadVirtualKeyboardWindowRadWindowAddModifyChoiceDialogAddNewBibliographicSourceDialogChangeEditingPermissionsDialogCheckBoxPropertiesDialogCodeFormattingDialogContentControlsConfirmDialogDatePickerPropertiesDialogDropDownListPropertiesDialogEditCustomDictionaryDialogFindReplaceDialogFloatingBlockPropertiesDialogFontPropertiesDialogImageEditorDialogInsertCaptionDialogInsertCrossReferenceWindowInsertDateTimeDialogInsertTableDialogInsertTableOfContentsDialogLineNumberingDialogManageBibliographicSourcesDialogManageBookmarksDialogManageStylesDialogModifyMultiLevelListDialogModifyTableStyleBandingNewCaptionLabelDialogNotesDialogParagraphPropertiesDialogBasePicturePropertiesDialogPlainTextPropertiesDialogProtectDocumentDialogRadInsertHyperlinkDialogRadInsertSymbolDialogRadParagraphPropertiesDialogRadRichTextBoxWindowRepeatingSectionPropertiesDialogRichTextPropertiesDialogSectionColumnsDialogSectionColumnsDialogBaseSetNumberingValueDialogSpellCheckingDialogStyleFormattingPropertiesDialogTabStopsPropertiesDialogTableBordersDialogTablePropertiesDialogUnprotectDocumentDialogWatermarkSettingsDialogSchedulerWindowWindowBaseEditCustomDictionaryDialogSpellCheckAllAtOnceWindowSpellCheckWordByWordWindow...

Methods

Called to handle the drag delta event, allowing the implementation to respond to changes in the dragging state.

C#
Rect OnDragDelta(Point globalMousePosition, Rect initialRect, Rect destinationRect, bool isResize)
Parameters:globalMousePositionPointinitialRectRectdestinationRectRectisResizeboolReturns:

Rect

Called when a drag operation ends. This method allows for cleanup or finalization of the drag process within the drag-aware component.

C#
void OnDragEnd(Point globalMousePosition, bool isCancel, bool isResize)
Parameters:globalMousePositionPointisCancelboolisResizebool

Initiates the drag operation for the window.

C#
void OnDragStart(Point globalMousePosition, bool isResize)
Parameters:globalMousePositionPointisResizebool