feat: WIP set up interface.

This commit is contained in:
rabbitism
2024-02-04 12:32:08 +08:00
parent ed21ee8189
commit f3cd4fb74b
6 changed files with 122 additions and 71 deletions

View File

@@ -42,7 +42,7 @@ public class DialogControl: ContentControl
remove => RemoveHandler(LayerChangedEvent, value);
}
public static readonly RoutedEvent<ResultEventArgs> ClosedEvent = RoutedEvent.Register<DrawerControl, ResultEventArgs>(
public static readonly RoutedEvent<ResultEventArgs> ClosedEvent = RoutedEvent.Register<DrawerControlBase, ResultEventArgs>(
nameof(Closed), RoutingStrategies.Bubble);
public event EventHandler<ResultEventArgs> Closed

View File

@@ -168,6 +168,11 @@ public class OverlayDialogHost : Canvas
ResetZIndices();
}
internal void AddDrawer(DrawerControlBase control)
{
}
private void OnDialogControlClosing(object sender, object? e)
{
if (sender is DialogControl control)