Making SetFocus (View) private.

This commit is contained in:
BDisp
2020-07-28 18:31:32 +01:00
parent f3d6a1e351
commit fda4e21341
15 changed files with 42 additions and 35 deletions

View File

@@ -94,7 +94,7 @@ namespace UICatalog {
ColorScheme = Colors.TopLevel,
};
_classListView.OpenSelectedItem += (a) => {
Top.SetFocus (_settingsPane);
_settingsPane.SetFocus ();
};
_classListView.SelectedItemChanged += (args) => {
ClearClass (_curView);

View File

@@ -97,7 +97,7 @@ namespace UICatalog {
scenario.Setup ();
scenario.Run ();
_top.Ready += () => {
_top.SetFocus (_rightPane);
_rightPane.SetFocus ();
_top.Ready = null;
};
@@ -176,7 +176,7 @@ namespace UICatalog {
CanFocus = true,
};
_categoryListView.OpenSelectedItem += (a) => {
_top.SetFocus (_rightPane);
_rightPane.SetFocus ();
};
_categoryListView.SelectedItemChanged += CategoryListView_SelectedChanged;
_leftPane.Add (_categoryListView);