File tree Expand file tree Collapse file tree 2 files changed +16
-0
lines changed
src/MvvmDialogs.Avalonia.DialogHost Expand file tree Collapse file tree 2 files changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -25,6 +25,9 @@ internal class DialogHostApi : IDialogHostApi
2525 host . CloseOnClickAway = settings . CloseOnClickAway ;
2626 host . CloseOnClickAwayParameter = settings . CloseOnClickAwayParameter ;
2727 host . PopupPositioner = settings . PopupPositioner ;
28+ host . OverlayBackground = settings . OverlayBackground ?? host . OverlayBackground ;
29+ host . DialogMargin = settings . DialogMargin ?? host . DialogMargin ;
30+ host . DisableOpeningAnimation = settings . DisableOpeningAnimation ;
2831 }
2932
3033 var closingHandler = settings . ClosingHandler ?? ( ( _ , _ ) => { } ) ;
Original file line number Diff line number Diff line change 11using System . ComponentModel ;
2+ using Avalonia . Media ;
23using DialogHostAvalonia ;
34using DialogHostAvalonia . Positioners ;
45
@@ -29,4 +30,16 @@ public class DialogHostSettings : DialogSettingsBase
2930 /// A class allowing to customize the positioning of the dialog.
3031 /// </summary>
3132 public IDialogPopupPositioner ? PopupPositioner { get ; set ; }
33+ /// <summary>
34+ /// The background of the overlay.
35+ /// </summary>
36+ public IBrush ? OverlayBackground { get ; set ; }
37+ /// <summary>
38+ /// The margin of the dialog view.
39+ /// </summary>
40+ public Thickness ? DialogMargin { get ; set ; }
41+ /// <summary>
42+ /// Whether to disable the popup animation.
43+ /// </summary>
44+ public bool DisableOpeningAnimation { get ; set ; } = true ;
3245}
You can’t perform that action at this time.
0 commit comments