popover refinement

This commit is contained in:
Tig
2024-08-30 13:09:13 -06:00
parent f391f5b040
commit 92c9414050
2 changed files with 8 additions and 3 deletions

View File

@@ -13,7 +13,7 @@
/// the step is active; see also: <see cref="Wizard.StepChanged"/>. To enable or disable a step from being shown to the
/// user, set <see cref="View.Enabled"/>.
/// </remarks>
public class WizardStep : FrameView
public class WizardStep : View
{
///// <summary>
///// The title of the <see cref="WizardStep"/>.
@@ -36,7 +36,7 @@ public class WizardStep : FrameView
//private string title = string.Empty;
// The contentView works like the ContentView in FrameView.
private readonly View _contentView = new () { Id = "WizardContentView" };
private readonly View _contentView = new () { CanFocus = true, TabStop = TabBehavior.TabStop, Id = "WizardContentView" };
private readonly TextView _helpTextView = new ();
/// <summary>
@@ -44,9 +44,13 @@ public class WizardStep : FrameView
/// </summary>
public WizardStep ()
{
TabStop = TabBehavior.TabStop;
CanFocus = true;
BorderStyle = LineStyle.None;
base.Add (_contentView);
_helpTextView.CanFocus = true;
_helpTextView.TabStop = TabBehavior.NoStop;
_helpTextView.ReadOnly = true;
_helpTextView.WordWrap = true;
base.Add (_helpTextView);

View File

@@ -213,7 +213,8 @@ public class Wizards : Scenario
Y = Pos.Bottom (thirdStepEnabledCeckBox) + 2,
Width = Dim.Fill (),
Height = 4,
Title = "A Broken Frame (by Depeche Mode)"
Title = "A Broken Frame (by Depeche Mode)",
TabStop = TabBehavior.TabStop
};
frame.Add (new TextField { Text = "This is a TextField inside of the frame." });
secondStep.Add (frame);