Console DialogService

This commit is contained in:
2023-08-14 11:50:59 +02:00
parent 6797c26bf9
commit 1f4b938358
41 changed files with 807 additions and 269 deletions

View File

@@ -10,9 +10,20 @@ public class FocusManager : IFocusManager
{
get
{
if (_focused is not null && !_focused.IsVisible)
if (_focused is not null)
{
_focused = null;
var visible = _focused.IsVisible;
var parent = _focused.VisualParent;
while (parent != null)
{
visible &= parent.IsVisible;
parent = parent.VisualParent;
}
if (!visible)
{
_focused = null;
}
}
return _focused;