Class DialogWindow
Base class for modal dialog windows.
public class DialogWindow : Window, INotifyPropertyChanged, IDataContextProvider, IThemeVariantHost, IResourceHost, IResourceNode, ISetLogicalParent, ISetInheritanceParent, ISupportInitialize, INamed, IInputElement, IDataTemplateHost, ISetterValue, ICloseable, IStyleHost, ILogicalRoot, ILogical, IFocusScope
- Inheritance
-
AvaloniaObjectAnimatableStyledElementVisualLayoutableInteractiveInputElementControlTemplatedControlContentControlTopLevelWindowBaseWindowDialogWindow
- Implements
-
IDataContextProviderIThemeVariantHostIResourceHostIResourceNodeISetLogicalParentISetInheritanceParentINamedIInputElementIDataTemplateHostISetterValueICloseableIStyleHostILogicalRootILogicalIFocusScope
- Derived
- Inherited Members
-
Window.SizeToContentPropertyWindow.ExtendClientAreaToDecorationsHintPropertyWindow.ExtendClientAreaTitleBarHeightHintPropertyWindow.IsExtendedIntoWindowDecorationsPropertyWindow.WindowDecorationMarginPropertyWindow.OffScreenMarginPropertyWindow.WindowDecorationsPropertyWindow.WindowDecorationsThemePropertyWindow.ShowActivatedPropertyWindow.ShowInTaskbarPropertyWindow.ClosingBehaviorPropertyWindow.WindowStatePropertyWindow.TitlePropertyWindow.IconPropertyWindow.WindowStartupLocationPropertyWindow.CanResizePropertyWindow.CanMinimizePropertyWindow.CanMaximizePropertyWindow.WindowClosedEventWindow.WindowOpenedEventWindow.BeginMoveDrag(PointerPressedEventArgs)Window.BeginResizeDrag(WindowEdge, PointerPressedEventArgs)Window.Close()Window.Hide()Window.Show()Window.OnApplyTemplate(TemplateAppliedEventArgs)Window.IsVisibleChanged(AvaloniaPropertyChangedEventArgs)Window.Show(Window)Window.ShowDialog(Window)Window.ShowDialog<TResult>(Window)Window.MeasureOverride(Size)Window.OnClosing(WindowClosingEventArgs)Window.OnPropertyChanged(AvaloniaPropertyChangedEventArgs)Window.OnCreateAutomationPeer()Window.PlatformImplWindow.OwnedWindowsWindow.SizeToContentWindow.TitleWindow.ExtendClientAreaToDecorationsHintWindow.ExtendClientAreaTitleBarHeightHintWindow.IsExtendedIntoWindowDecorationsWindow.WindowDecorationMarginWindow.OffScreenMarginWindow.WindowDecorationsWindow.WindowDecorationsThemeWindow.SystemDecorationsWindow.ShowActivatedWindow.ShowInTaskbarWindow.ClosingBehaviorWindow.WindowStateWindow.CanResizeWindow.CanMinimizeWindow.CanMaximizeWindow.IconWindow.WindowStartupLocationWindow.PositionWindow.IsDialogWindow.StyleKeyOverrideWindow.ClosingWindowBase.IsActivePropertyWindowBase.OwnerPropertyWindowBase.TopmostPropertyWindowBase.Activate()WindowBase.EnsureInitialized()WindowBase.OnResized(WindowResizedEventArgs)WindowBase.MeasureCore(Size)WindowBase.ArrangeCore(Rect)WindowBase.IgnoreVisibilityChangesWindowBase.IsActiveWindowBase.ScreensWindowBase.OwnerWindowBase.TopmostWindowBase.DesktopScalingWindowBase.ActivatedWindowBase.DeactivatedWindowBase.PositionChangedWindowBase.ResizedTopLevel.ClientSizePropertyTopLevel.FrameSizePropertyTopLevel.TransparencyLevelHintPropertyTopLevel.ActualTransparencyLevelPropertyTopLevel.TransparencyBackgroundFallbackPropertyTopLevel.ActualThemeVariantPropertyTopLevel.RequestedThemeVariantPropertyTopLevel.SystemBarColorPropertyTopLevel.AutoSafeAreaPaddingPropertyTopLevel.BackRequestedEventTopLevel.TryGetPlatformHandle()TopLevel.SetSystemBarColor(Control, SolidColorBrush)TopLevel.GetSystemBarColor(Control)TopLevel.GetAutoSafeAreaPadding(Control)TopLevel.GetTopLevel(Visual)TopLevel.InvalidateMirrorTransform()TopLevel.ClientSizeTopLevel.FrameSizeTopLevel.TransparencyLevelHintTopLevel.ActualTransparencyLevelTopLevel.TransparencyBackgroundFallbackTopLevel.RequestedThemeVariantTopLevel.RendererDiagnosticsTopLevel.RenderScalingTopLevel.StorageProviderTopLevel.InsetsManagerTopLevel.InputPaneTopLevel.LauncherTopLevel.ClipboardTopLevel.FocusManagerTopLevel.BypassFlowDirectionPoliciesTopLevel.OpenedTopLevel.ClosedTopLevel.ScalingChangedTopLevel.BackRequestedContentControl.ContentPropertyContentControl.ContentTemplatePropertyContentControl.HorizontalContentAlignmentPropertyContentControl.VerticalContentAlignmentPropertyContentControl.RegisterContentPresenter(ContentPresenter)ContentControl.ContentContentControl.ContentTemplateContentControl.PresenterContentControl.HorizontalContentAlignmentContentControl.VerticalContentAlignmentTemplatedControl.BackgroundPropertyTemplatedControl.BackgroundSizingPropertyTemplatedControl.BorderBrushPropertyTemplatedControl.BorderThicknessPropertyTemplatedControl.CornerRadiusPropertyTemplatedControl.FontFamilyPropertyTemplatedControl.FontFeaturesPropertyTemplatedControl.FontSizePropertyTemplatedControl.FontStylePropertyTemplatedControl.FontWeightPropertyTemplatedControl.FontStretchPropertyTemplatedControl.ForegroundPropertyTemplatedControl.LetterSpacingPropertyTemplatedControl.PaddingPropertyTemplatedControl.TemplatePropertyTemplatedControl.IsTemplateFocusTargetPropertyTemplatedControl.TemplateAppliedEventTemplatedControl.GetIsTemplateFocusTarget(Control)TemplatedControl.ApplyTemplate()TemplatedControl.GetTemplateFocusTarget()TemplatedControl.OnAttachedToLogicalTree(LogicalTreeAttachmentEventArgs)TemplatedControl.OnDetachedFromLogicalTree(LogicalTreeAttachmentEventArgs)TemplatedControl.OnTemplateChanged(AvaloniaPropertyChangedEventArgs)TemplatedControl.BackgroundTemplatedControl.BackgroundSizingTemplatedControl.BorderBrushTemplatedControl.BorderThicknessTemplatedControl.CornerRadiusTemplatedControl.FontFamilyTemplatedControl.FontFeaturesTemplatedControl.FontSizeTemplatedControl.FontStyleTemplatedControl.FontWeightTemplatedControl.FontStretchTemplatedControl.ForegroundTemplatedControl.LetterSpacingTemplatedControl.PaddingTemplatedControl.TemplateTemplatedControl.TemplateAppliedControl.FocusAdornerPropertyControl.TagPropertyControl.ContextMenuPropertyControl.ContextFlyoutPropertyControl.RequestBringIntoViewEventControl.LoadedEventControl.UnloadedEventControl.SizeChangedEventControl.OnLoaded(RoutedEventArgs)Control.OnUnloaded(RoutedEventArgs)Control.OnSizeChanged(SizeChangedEventArgs)Control.OnAttachedToVisualTreeCore(VisualTreeAttachmentEventArgs)Control.OnDetachedFromVisualTreeCore(VisualTreeAttachmentEventArgs)Control.OnGotFocus(FocusChangedEventArgs)Control.OnLostFocus(FocusChangedEventArgs)Control.OnPointerReleased(PointerReleasedEventArgs)Control.OnKeyUp(KeyEventArgs)Control.FocusAdornerControl.DataTemplatesControl.ContextMenuControl.ContextFlyoutControl.IsLoadedControl.TagControl.LoadedControl.UnloadedControl.SizeChangedInputElement.FocusablePropertyInputElement.IsEnabledPropertyInputElement.IsEffectivelyEnabledPropertyInputElement.CursorPropertyInputElement.IsKeyboardFocusWithinPropertyInputElement.IsFocusedPropertyInputElement.IsHitTestVisiblePropertyInputElement.IsPointerOverPropertyInputElement.IsTabStopPropertyInputElement.GotFocusEventInputElement.GettingFocusEventInputElement.LostFocusEventInputElement.LosingFocusEventInputElement.KeyDownEventInputElement.KeyUpEventInputElement.TabIndexPropertyInputElement.TextInputEventInputElement.TextInputMethodClientRequestedEventInputElement.PointerEnteredEventInputElement.PointerExitedEventInputElement.PointerMovedEventInputElement.PointerPressedEventInputElement.PointerReleasedEventInputElement.PointerCaptureLostEventInputElement.PointerWheelChangedEventInputElement.ContextRequestedEventInputElement.ContextCanceledEventInputElement.IsHoldingEnabledPropertyInputElement.IsHoldWithMouseEnabledPropertyInputElement.PinchEventInputElement.PinchEndedEventInputElement.PullGestureEventInputElement.PullGestureEndedEventInputElement.SwipeGestureEventInputElement.SwipeGestureEndedEventInputElement.ScrollGestureEventInputElement.ScrollGestureInertiaStartingEventInputElement.ScrollGestureEndedEventInputElement.PointerTouchPadGestureMagnifyEventInputElement.PointerTouchPadGestureRotateEventInputElement.PointerTouchPadGestureSwipeEventInputElement.TappedEventInputElement.RightTappedEventInputElement.HoldingEventInputElement.DoubleTappedEventInputElement.Focus(NavigationMethod, KeyModifiers)InputElement.OnAccessKey(RoutedEventArgs)InputElement.OnGettingFocus(FocusChangingEventArgs)InputElement.OnLosingFocus(FocusChangingEventArgs)InputElement.OnKeyDown(KeyEventArgs)InputElement.OnTextInput(TextInputEventArgs)InputElement.OnPointerEntered(PointerEventArgs)InputElement.OnPointerExited(PointerEventArgs)InputElement.OnPointerMoved(PointerEventArgs)InputElement.OnPointerPressed(PointerPressedEventArgs)InputElement.GetNextTabStopOverride()InputElement.GetPreviousTabStopOverride()InputElement.GetFirstFocusableElementOverride()InputElement.GetLastFocusableElementOverride()InputElement.OnPointerCaptureLost(PointerCaptureLostEventArgs)InputElement.OnPointerWheelChanged(PointerWheelEventArgs)InputElement.OnTapped(TappedEventArgs)InputElement.OnRightTapped(TappedEventArgs)InputElement.OnDoubleTapped(TappedEventArgs)InputElement.OnHolding(HoldingRoutedEventArgs)InputElement.UpdateIsEffectivelyEnabled()InputElement.GetIsHoldingEnabled(StyledElement)InputElement.GetIsHoldWithMouseEnabled(StyledElement)InputElement.FocusableInputElement.IsEnabledInputElement.CursorInputElement.IsKeyboardFocusWithinInputElement.IsFocusedInputElement.IsHitTestVisibleInputElement.IsPointerOverInputElement.IsTabStopInputElement.IsEffectivelyEnabledInputElement.TabIndexInputElement.KeyBindingsInputElement.IsEnabledCoreInputElement.GestureRecognizersInputElement.GotFocusInputElement.GettingFocusInputElement.LostFocusInputElement.LosingFocusInputElement.KeyDownInputElement.KeyUpInputElement.TextInputInputElement.TextInputMethodClientRequestedInputElement.PointerEnteredInputElement.PointerExitedInputElement.PointerMovedInputElement.PointerPressedInputElement.PointerReleasedInputElement.PointerCaptureLostInputElement.PointerWheelChangedInputElement.ContextRequestedInputElement.ContextCanceledInputElement.PinchInputElement.PinchEndedInputElement.PullGestureInputElement.PullGestureEndedInputElement.ScrollGestureInputElement.ScrollGestureInertiaStartingInputElement.ScrollGestureEndedInputElement.PointerTouchPadGestureMagnifyInputElement.PointerTouchPadGestureRotateInputElement.SwipeGestureInputElement.SwipeGestureEndedInputElement.PointerTouchPadGestureSwipeInputElement.TappedInputElement.RightTappedInputElement.HoldingInputElement.DoubleTappedInteractive.RaiseEvent(RoutedEventArgs)Interactive.BuildEventRoute(RoutedEvent)Layoutable.DesiredSizePropertyLayoutable.WidthPropertyLayoutable.HeightPropertyLayoutable.MinWidthPropertyLayoutable.MaxWidthPropertyLayoutable.MinHeightPropertyLayoutable.MaxHeightPropertyLayoutable.MarginPropertyLayoutable.HorizontalAlignmentPropertyLayoutable.VerticalAlignmentPropertyLayoutable.UseLayoutRoundingPropertyLayoutable.UpdateLayout()Layoutable.Measure(Size)Layoutable.Arrange(Rect)Layoutable.InvalidateMeasure()Layoutable.InvalidateArrange()Layoutable.AffectsMeasure<T>(params AvaloniaProperty[])Layoutable.AffectsArrange<T>(params AvaloniaProperty[])Layoutable.ArrangeOverride(Size)Layoutable.OnMeasureInvalidated()Layoutable.OnVisualParentChanged(Visual, Visual)Layoutable.WidthLayoutable.HeightLayoutable.MinWidthLayoutable.MaxWidthLayoutable.MinHeightLayoutable.MaxHeightLayoutable.MarginLayoutable.HorizontalAlignmentLayoutable.VerticalAlignmentLayoutable.DesiredSizeLayoutable.IsMeasureValidLayoutable.IsArrangeValidLayoutable.UseLayoutRoundingLayoutable.EffectiveViewportChangedLayoutable.LayoutUpdatedVisual.BoundsPropertyVisual.ClipToBoundsPropertyVisual.ClipPropertyVisual.IsVisiblePropertyVisual.OpacityPropertyVisual.OpacityMaskPropertyVisual.CacheModePropertyVisual.EffectPropertyVisual.HasMirrorTransformPropertyVisual.RenderTransformPropertyVisual.RenderTransformOriginPropertyVisual.FlowDirectionPropertyVisual.VisualParentPropertyVisual.ZIndexPropertyVisual.GetFlowDirection(Visual)Visual.SetFlowDirection(Visual, FlowDirection)Visual.InvalidateVisual()Visual.Render(DrawingContext)Visual.AffectsRender<T>(params AvaloniaProperty[])Visual.OnAttachedToVisualTree(VisualTreeAttachmentEventArgs)Visual.OnDetachedFromVisualTree(VisualTreeAttachmentEventArgs)Visual.BoundsVisual.ClipToBoundsVisual.ClipVisual.IsEffectivelyVisibleVisual.IsVisibleVisual.OpacityVisual.OpacityMaskVisual.CacheModeVisual.EffectVisual.HasMirrorTransformVisual.RenderTransformVisual.RenderTransformOriginVisual.FlowDirectionVisual.ZIndexVisual.VisualChildrenVisual.VisualRootVisual.AttachedToVisualTreeVisual.DetachedFromVisualTreeStyledElement.DataContextPropertyStyledElement.NamePropertyStyledElement.ParentPropertyStyledElement.TemplatedParentPropertyStyledElement.ThemePropertyStyledElement.BeginInit()StyledElement.EndInit()StyledElement.ApplyStyling()StyledElement.InitializeIfNeeded()StyledElement.OnDataContextBeginUpdate()StyledElement.OnDataContextEndUpdate()StyledElement.OnInitialized()StyledElement.NameStyledElement.ClassesStyledElement.DataContextStyledElement.IsInitializedStyledElement.StylesStyledElement.StyleKeyStyledElement.ResourcesStyledElement.TemplatedParentStyledElement.ThemeStyledElement.LogicalChildrenStyledElement.PseudoClassesStyledElement.ParentStyledElement.ActualThemeVariantStyledElement.AttachedToLogicalTreeStyledElement.DetachedFromLogicalTreeStyledElement.DataContextChangedStyledElement.InitializedStyledElement.ResourcesChangedStyledElement.ActualThemeVariantChangedAnimatable.TransitionsPropertyAnimatable.OnPropertyChangedCore(AvaloniaPropertyChangedEventArgs)Animatable.TransitionsAvaloniaObject.CheckAccess()AvaloniaObject.VerifyAccess()AvaloniaObject.ClearValue(AvaloniaProperty)AvaloniaObject.ClearValue<T>(AvaloniaProperty<T>)AvaloniaObject.ClearValue<T>(StyledProperty<T>)AvaloniaObject.ClearValue<T>(DirectPropertyBase<T>)AvaloniaObject.GetHashCode()AvaloniaObject.GetValue(AvaloniaProperty)AvaloniaObject.GetValue<T>(StyledProperty<T>)AvaloniaObject.GetValue<T>(DirectPropertyBase<T>)AvaloniaObject.GetBaseValue<T>(StyledProperty<T>)AvaloniaObject.IsAnimating(AvaloniaProperty)AvaloniaObject.IsSet(AvaloniaProperty)AvaloniaObject.SetValue<T>(StyledProperty<T>, T, BindingPriority)AvaloniaObject.SetValue<T>(DirectPropertyBase<T>, T)AvaloniaObject.SetCurrentValue<T>(StyledProperty<T>, T)AvaloniaObject.Bind(AvaloniaProperty, BindingBase)AvaloniaObject.CoerceValue(AvaloniaProperty)AvaloniaObject.RaisePropertyChanged<T>(DirectPropertyBase<T>, T, T)AvaloniaObject.SetAndRaise<T>(DirectPropertyBase<T>, ref T, T)AvaloniaObject.InheritanceParentAvaloniaObject.this[AvaloniaProperty]AvaloniaObject.this[IndexerDescriptor]AvaloniaObject.DispatcherAvaloniaObject.PropertyChanged
- Extension Methods
Constructors
DialogWindow()
Initializes a new instance of the DialogWindow class.
public DialogWindow()
Properties
Info
Gets or sets the dialog information.
public DialogInfo Info { get; set; }
Property Value
InputData
Gets the input data passed to the dialog.
public object InputData { get; }
Property Value
ModalResult
Gets or sets the modal result.
public virtual ModalResult ModalResult { get; set; }
Property Value
ResultData
Gets or sets the result data returned by the dialog.
public object ResultData { get; set; }
Property Value
Methods
ControlsToItem()
Saves dialog control values to the item.
protected virtual Task ControlsToItem()
Returns
ItemToControls()
Loads item values into the dialog controls.
protected virtual Task ItemToControls()
Returns
ShowModal<T>(Control)
Shows a dialog window modally.
public static Task<DialogInfo> ShowModal<T>(Control Caller) where T : DialogWindow, new()
Parameters
CallerControlThe caller control.
Returns
- Task<DialogInfo>
The dialog information.
Type Parameters
TThe dialog window type.
ShowModal<T>(object)
Shows a dialog window modally.
public static Task<DialogInfo> ShowModal<T>(object InputData) where T : DialogWindow, new()
Parameters
InputDataobjectThe input data passed to the dialog.
Returns
- Task<DialogInfo>
The dialog information.
Type Parameters
TThe dialog window type.
ShowModal<T>(object, Control)
Shows a dialog window modally.
public static Task<DialogInfo> ShowModal<T>(object InputData = null, Control Caller = null) where T : DialogWindow, new()
Parameters
InputDataobjectThe input data passed to the dialog.
CallerControlThe caller control.
Returns
- Task<DialogInfo>
The dialog information.
Type Parameters
TThe dialog window type.
WindowInitialize()
Initializes the window.
protected virtual Task WindowInitialize()