feat: add recall as internal function to overlay dialog.
This commit is contained in:
@@ -189,4 +189,10 @@ public partial class OverlayDialogHost: Canvas
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
internal T? Recall<T>()
|
||||
{
|
||||
var element = _layers.LastOrDefault(a => a.Element.Content?.GetType() == typeof(T));
|
||||
return element?.Element.Content is T t ? t : default;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user