Skip to content

Fixes #3951. Adds View dependency to DimFunc and PosFunc #4210

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 40 commits into
base: v2_develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
40 commits
Select commit Hold shift + click to select a range
73278bb
Fixes #4208. MainLoopSyncContext doesn't work with the v2 drivers
BDisp Jul 24, 2025
f9202c5
Merge branch 'v2_develop' into v2_3951_dimfunc-with-view-feature
BDisp Jul 25, 2025
b6d0aef
Fixes #3951. Add DimFuncWithView with a View dependency
BDisp Jul 25, 2025
50015ac
Revert to iteration which will handle the necessary processes
BDisp Jul 25, 2025
dadc75e
Revert "Revert to iteration which will handle the necessary processes"
BDisp Jul 25, 2025
4283f01
Layout and draw before position cursor
BDisp Jul 25, 2025
adcb3d0
Resolving merge conflicts
BDisp Jul 25, 2025
8f51903
Add optional View parameter and property to the DimFunc and PosFunc
BDisp Jul 25, 2025
3398222
Trying fix unit test error
BDisp Jul 25, 2025
384cab8
Revert layout changes
BDisp Jul 27, 2025
4032247
Merge branch 'v2_develop' into v2_3951_dimfunc-with-view-feature
BDisp Jul 27, 2025
08dfea6
Fixes #4216. Legacy drivers aren't refreshing the screen correctly on…
BDisp Jul 28, 2025
b111c88
Merge branch 'v2_4216_trail-drag-views-fix' into v2_3951_dimfunc-with…
BDisp Jul 28, 2025
03120b9
Add assertion proving NeedsLayout is always false before call OnSubVi…
BDisp Jul 28, 2025
8552842
Merge branch 'v2_4216_trail-drag-views-fix' into v2_3951_dimfunc-with…
BDisp Jul 28, 2025
58fd81e
Fix unit test error
BDisp Jul 28, 2025
456bad4
Merge branch 'v2_develop' into v2_4216_trail-drag-views-fix
BDisp Jul 28, 2025
ef063b9
Merge branch 'v2_develop' into v2_3951_dimfunc-with-view-feature
BDisp Jul 28, 2025
d7306e7
Increasing time to abort
BDisp Jul 28, 2025
64e0bb5
Revert "Increasing time to abort"
BDisp Jul 28, 2025
f25bcd8
Trying fix integration tests
BDisp Jul 28, 2025
c6774b2
Still trying fix integrations unit tests
BDisp Jul 28, 2025
6d6f62a
Merge branch 'v2_4216_trail-drag-views-fix' into v2_3951_dimfunc-with…
BDisp Jul 28, 2025
62bd31c
Revert comment
BDisp Jul 28, 2025
9329258
Layout is performed during the iteration
BDisp Jul 28, 2025
566b515
Using Dim.Func with status bar view
BDisp Jul 28, 2025
ae75832
Still trying fix integrations tests by locking _subviews
BDisp Jul 28, 2025
fc35486
Still trying fix integrations tests by locking _subviews
BDisp Jul 28, 2025
a892bff
Add internal SnapshotSubviews method
BDisp Jul 28, 2025
302df48
Resolving merge conflicts
BDisp Jul 28, 2025
c67f93a
Remove lock from SnapshotSubviews method
BDisp Jul 28, 2025
83c00f8
Using SnapshotSubviews method in the DrawSubViews method
BDisp Jul 28, 2025
08123da
Remove lock from SnapshotSubviews method
BDisp Jul 28, 2025
3dcb182
Using SnapshotSubviews method in the DrawSubViews method
BDisp Jul 28, 2025
b7dfca6
Using SnapshotSubviews
BDisp Jul 29, 2025
ca52522
Prevent new app if the previous wasn't yet finished
BDisp Jul 29, 2025
732bff4
Replace SnapshotSubviews method with ViewCollectionHelpers class
BDisp Jul 29, 2025
146a290
Lock entire GuiTestContext constructor
BDisp Jul 29, 2025
1d40f80
Using Snapshot in the ordered field
BDisp Jul 29, 2025
05b8628
Resolving merge conflicts
BDisp Jul 29, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Examples/UICatalog/Scenarios/Adornments.cs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public override void Main ()
Title = "The _Window",
Arrangement = ViewArrangement.Overlapped | ViewArrangement.Movable,

Width = Dim.Fill (Dim.Func (() => editor.Frame.Width)),
Width = Dim.Fill (Dim.Func (_ => editor.Frame.Width)),
Height = Dim.Fill ()
};
app.Add (window);
Expand Down
8 changes: 4 additions & 4 deletions Examples/UICatalog/Scenarios/AllViewsTester.cs
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ public override void Main ()
{
Title = "Arrangement [_3]",
X = Pos.Right (_classListView) - 1,
Y = Pos.Bottom (_adornmentsEditor) - Pos.Func (() => _adornmentsEditor.Frame.Height == 1 ? 0 : 1),
Y = Pos.Bottom (_adornmentsEditor) - Pos.Func (_ => _adornmentsEditor.Frame.Height == 1 ? 0 : 1),
Width = Dim.Width (_adornmentsEditor),
Height = Dim.Fill (),
AutoSelectViewToEdit = false,
Expand Down Expand Up @@ -134,7 +134,7 @@ public override void Main ()
{
Title = "ViewportSettings [_5]",
X = Pos.Right (_arrangementEditor) - 1,
Y = Pos.Bottom (_layoutEditor) - Pos.Func (() => _layoutEditor.Frame.Height == 1 ? 0 : 1),
Y = Pos.Bottom (_layoutEditor) - Pos.Func (_ => _layoutEditor.Frame.Height == 1 ? 0 : 1),
Width = Dim.Width (_layoutEditor),
Height = Dim.Auto (),
CanFocus = true,
Expand All @@ -148,7 +148,7 @@ public override void Main ()
{
Title = "View Properties [_6]",
X = Pos.Right (_adornmentsEditor) - 1,
Y = Pos.Bottom (_viewportSettingsEditor) - Pos.Func (() => _viewportSettingsEditor.Frame.Height == 1 ? 0 : 1),
Y = Pos.Bottom (_viewportSettingsEditor) - Pos.Func (_ => _viewportSettingsEditor.Frame.Height == 1 ? 0 : 1),
Width = Dim.Width (_layoutEditor),
Height = Dim.Auto (),
CanFocus = true,
Expand All @@ -171,7 +171,7 @@ public override void Main ()

_layoutEditor.Width = Dim.Fill (
Dim.Func (
() =>
_ =>
{
if (_eventLog.NeedsLayout)
{
Expand Down
2 changes: 1 addition & 1 deletion Examples/UICatalog/Scenarios/Arrangement.cs
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ public override void Main ()
View tiledView3 = CreateTiledView (2, Pos.Right (tiledView2) - 1, Pos.Top (tiledView2));
tiledView3.Height = Dim.Height (tiledView1);
View tiledView4 = CreateTiledView (3, Pos.Left (tiledView1), Pos.Bottom (tiledView1) - 1);
tiledView4.Width = Dim.Func (() => tiledView3.Frame.Width + tiledView2.Frame.Width + tiledView1.Frame.Width - 2);
tiledView4.Width = Dim.Func (_ => tiledView3.Frame.Width + tiledView2.Frame.Width + tiledView1.Frame.Width - 2);

View movableSizeableWithProgress = CreateOverlappedView (2, 10, 8);
movableSizeableWithProgress.Title = "Movable _& Sizable";
Expand Down
3 changes: 2 additions & 1 deletion Examples/UICatalog/Scenarios/CharacterMap/CharacterMap.cs
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ public override void Main ()
{
X = 0,
Y = 1,
Width = Dim.Fill (Dim.Func (() => _categoryList!.Frame.Width)),
Height = Dim.Fill (),
// SchemeName = "Base"

Expand Down Expand Up @@ -172,6 +171,8 @@ public override void Main ()
};
top.Add (menu);

_charMap.Width = Dim.Fill (Dim.Func (v => v!.Frame.Width, _categoryList));

_charMap.SelectedCodePoint = 0;
_charMap.SetFocus ();

Expand Down
2 changes: 1 addition & 1 deletion Examples/UICatalog/Scenarios/ConfigurationEditor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public override void Main ()
_tabView = new ()
{
Width = Dim.Fill (),
Height = Dim.Fill (Dim.Func (() => statusBar.Frame.Height))
Height = Dim.Fill (Dim.Func (_ => statusBar.Frame.Height))
};

win.Add (_tabView, statusBar);
Expand Down
2 changes: 1 addition & 1 deletion Examples/UICatalog/Scenarios/DynamicMenuBar.cs
Original file line number Diff line number Diff line change
Expand Up @@ -598,7 +598,7 @@ public DynamicMenuBarSample ()
X = Pos.Right (btnPrevious) + 1,
Y = Pos.Top (btnPrevious),

Width = Dim.Fill () - Dim.Func (() => btnAdd.Frame.Width + 1),
Width = Dim.Fill () - Dim.Func (_ => btnAdd.Frame.Width + 1),
Height = 1
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ private void AdornmentEditor_Initialized (object? sender, EventArgs e)

_leftEdit = new ()
{
X = Pos.Left (_topEdit) - Pos.Func (() => _topEdit.Text.Length) - 2, Y = Pos.Bottom (_topEdit),
X = Pos.Left (_topEdit) - Pos.Func (_ => _topEdit.Text.Length) - 2, Y = Pos.Bottom (_topEdit),
Format = _topEdit.Format
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ private void AdornmentsEditor_Initialized (object? sender, EventArgs e)
PaddingEditor.Border!.Thickness = PaddingEditor.Border.Thickness with { Bottom = 0 };
Add (PaddingEditor);

Width = Dim.Auto (maximumContentDim: Dim.Func (() => MarginEditor.Frame.Width - 2));
Width = Dim.Auto (maximumContentDim: Dim.Func (_ => MarginEditor.Frame.Width - 2));

MarginEditor.ExpanderButton!.Collapsed = true;
BorderEditor.ExpanderButton!.Collapsed = true;
Expand Down
6 changes: 3 additions & 3 deletions Examples/UICatalog/Scenarios/EditorsAndHelpers/DimEditor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ protected override void OnUpdateLayoutSettings ()
break;
case DimFunc func:
_valueEdit.Enabled = true;
_value = func.Fn ();
_value = func.Fn (null);
_valueEdit!.Text = _value.ToString ();
break;
case DimPercent percent:
Expand Down Expand Up @@ -98,7 +98,7 @@ private void DimEditor_Initialized (object? sender, EventArgs e)
{
X = Pos.Right (label) + 1,
Y = 0,
Width = Dim.Func (() => _radioItems.Max (i => i.GetColumns ()) - label.Frame.Width + 1),
Width = Dim.Func (_ => _radioItems.Max (i => i.GetColumns ()) - label.Frame.Width + 1),
Text = $"{_value}"
};

Expand Down Expand Up @@ -141,7 +141,7 @@ private void DimChanged ()
0 => Dim.Absolute (_value),
1 => Dim.Auto (),
2 => Dim.Fill (_value),
3 => Dim.Func (() => _value),
3 => Dim.Func (_ => _value),
4 => Dim.Percent (_value),
_ => Dimension == Dimension.Width ? ViewToEdit.Width : ViewToEdit.Height
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public EventLog ()
Y = 0;

Width = Dim.Func (
() =>
_ =>
{
if (!IsInitialized)
{
Expand Down
6 changes: 3 additions & 3 deletions Examples/UICatalog/Scenarios/EditorsAndHelpers/PosEditor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ protected override void OnUpdateLayoutSettings ()
break;
case PosFunc func:
_valueEdit.Enabled = true;
_value = func.Fn ();
_value = func.Fn (null);
_valueEdit!.Text = _value.ToString ();

break;
Expand Down Expand Up @@ -98,7 +98,7 @@ private void PosEditor_Initialized (object? sender, EventArgs e)
{
X = Pos.Right (label) + 1,
Y = 0,
Width = Dim.Func (() => _radioItems.Max (i => i.GetColumns ()) - label.Frame.Width + 1),
Width = Dim.Func (_ => _radioItems.Max (i => i.GetColumns ()) - label.Frame.Width + 1),
Text = $"{_value}"
};

Expand Down Expand Up @@ -142,7 +142,7 @@ private void PosChanged ()
1 => Pos.Align (Alignment.Start),
2 => new PosAnchorEnd (),
3 => Pos.Center (),
4 => Pos.Func (() => _value),
4 => Pos.Func (_ => _value),
5 => Pos.Percent (_value),
_ => Dimension == Dimension.Width ? ViewToEdit.X : ViewToEdit.Y
};
Expand Down
2 changes: 1 addition & 1 deletion Examples/UICatalog/Scenarios/ListColumns.cs
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ public override void Main ()

top.Add (menu, appWindow, statusBar);
appWindow.Y = 1;
appWindow.Height = Dim.Fill(Dim.Func (() => statusBar.Frame.Height));
appWindow.Height = Dim.Fill(Dim.Func (_ => statusBar.Frame.Height));

// Run - Start the application.
Application.Run (top);
Expand Down
2 changes: 1 addition & 1 deletion Examples/UICatalog/Scenarios/ListViewWithSelection.cs
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ public override void Main ()
Title = "_ListView",
X = 0,
Y = Pos.Bottom (_allowMarkingCb),
Width = Dim.Func (() => _listView?.MaxLength ?? 10),
Width = Dim.Func (_ => _listView?.MaxLength ?? 10),
Height = Dim.Fill (),
AllowsMarking = false,
AllowsMultipleSelection = false,
Expand Down
2 changes: 1 addition & 1 deletion Examples/UICatalog/Scenarios/Mouse.cs
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ void DemoPaddingOnInitialized (object o, EventArgs eventArgs)
X = 0,
Y = 0,
Width = Dim.Fill (),
Height = Dim.Func (() => demo.Padding.Thickness.Top),
Height = Dim.Func (_ => demo.Padding.Thickness.Top),
Title = "inPadding",
Id = "inPadding"
});
Expand Down
16 changes: 8 additions & 8 deletions Examples/UICatalog/Scenarios/ScrollBarDemo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ int GetMaxLabelWidth (int groupId)
Text = "_Width/Height:",
TextAlignment = Alignment.End,
Y = Pos.Align (Alignment.Start, AlignmentModes.StartToEnd, groupId: 1),
Width = Dim.Func (() => GetMaxLabelWidth (1))
Width = Dim.Func (_ => GetMaxLabelWidth (1))
};
demoFrame.Add (lblWidthHeight);

Expand Down Expand Up @@ -114,7 +114,7 @@ int GetMaxLabelWidth (int groupId)
Text = "_Orientation:",
TextAlignment = Alignment.End,
Y = Pos.Align (Alignment.Start, groupId: 1),
Width = Dim.Func (() => GetMaxLabelWidth (1))
Width = Dim.Func (_ => GetMaxLabelWidth (1))
};
demoFrame.Add (lblOrientationLabel);

Expand Down Expand Up @@ -160,7 +160,7 @@ int GetMaxLabelWidth (int groupId)
Text = "Scrollable_ContentSize:",
TextAlignment = Alignment.End,
Y = Pos.Align (Alignment.Start, groupId: 1),
Width = Dim.Func (() => GetMaxLabelWidth (1))
Width = Dim.Func (_ => GetMaxLabelWidth (1))
};
demoFrame.Add (lblSize);

Expand Down Expand Up @@ -193,7 +193,7 @@ int GetMaxLabelWidth (int groupId)
Text = "_VisibleContentSize:",
TextAlignment = Alignment.End,
Y = Pos.Align (Alignment.Start, groupId: 1),
Width = Dim.Func (() => GetMaxLabelWidth (1))
Width = Dim.Func (_ => GetMaxLabelWidth (1))
};
demoFrame.Add (lblVisibleContentSize);

Expand Down Expand Up @@ -226,7 +226,7 @@ int GetMaxLabelWidth (int groupId)
Text = "_Position:",
TextAlignment = Alignment.End,
Y = Pos.Align (Alignment.Start, groupId: 1),
Width = Dim.Func (() => GetMaxLabelWidth (1))
Width = Dim.Func (_ => GetMaxLabelWidth (1))

};
demoFrame.Add (lblPosition);
Expand Down Expand Up @@ -264,7 +264,7 @@ int GetMaxLabelWidth (int groupId)
Text = "Options:",
TextAlignment = Alignment.End,
Y = Pos.Align (Alignment.Start, groupId: 1),
Width = Dim.Func (() => GetMaxLabelWidth (1))
Width = Dim.Func (_ => GetMaxLabelWidth (1))
};
demoFrame.Add (lblOptions);
var autoShow = new CheckBox
Expand All @@ -282,7 +282,7 @@ int GetMaxLabelWidth (int groupId)
Text = "SliderPosition:",
TextAlignment = Alignment.End,
Y = Pos.Align (Alignment.Start, groupId: 1),
Width = Dim.Func (() => GetMaxLabelWidth (1))
Width = Dim.Func (_ => GetMaxLabelWidth (1))
};
demoFrame.Add (lblSliderPosition);

Expand All @@ -299,7 +299,7 @@ int GetMaxLabelWidth (int groupId)
Text = "Scrolled:",
TextAlignment = Alignment.End,
Y = Pos.Align (Alignment.Start, groupId: 1),
Width = Dim.Func (() => GetMaxLabelWidth (1))
Width = Dim.Func (_ => GetMaxLabelWidth (1))

};
demoFrame.Add (lblScrolled);
Expand Down
14 changes: 7 additions & 7 deletions Examples/UICatalog/Scenarios/Shortcuts.cs
Original file line number Diff line number Diff line change
Expand Up @@ -43,14 +43,14 @@ private void App_Loaded (object? sender, EventArgs e)
};

eventLog.Width = Dim.Func (
() => Math.Min (
Application.Top.Viewport.Width / 2,
eventLog?.MaxLength + eventLog!.GetAdornmentsThickness ().Horizontal ?? 0));
_ => Math.Min (
Application.Top.Viewport.Width / 2,
eventLog?.MaxLength + eventLog!.GetAdornmentsThickness ().Horizontal ?? 0));

eventLog.Width = Dim.Func (
() => Math.Min (
eventLog.SuperView!.Viewport.Width / 2,
eventLog?.MaxLength + eventLog!.GetAdornmentsThickness ().Horizontal ?? 0));
_ => Math.Min (
eventLog.SuperView!.Viewport.Width / 2,
eventLog?.MaxLength + eventLog!.GetAdornmentsThickness ().Horizontal ?? 0));
Application.Top.Add (eventLog);

var alignKeysShortcut = new Shortcut
Expand Down Expand Up @@ -193,7 +193,7 @@ select peer.Key.ToString ().GetColumns ()).Prepend (max)
Id = "appShortcut",
X = 0,
Y = Pos.Bottom (canFocusShortcut),
Width = Dim.Fill (Dim.Func (() => eventLog.Frame.Width)),
Width = Dim.Fill (Dim.Func (_ => eventLog.Frame.Width)),
Title = "A_pp Shortcut",
Key = Key.F1,
Text = "Width is DimFill",
Expand Down
2 changes: 1 addition & 1 deletion Examples/UICatalog/Scenarios/SingleBackgroundWorker.cs
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ public MainApp ()
workerLogTop.Add (_listLog);

workerLogTop.Y = 1;
workerLogTop.Height = Dim.Fill (Dim.Func (() => statusBar.Frame.Height));
workerLogTop.Height = Dim.Fill (Dim.Func (_ => statusBar.Frame.Height));

Add (menu, workerLogTop, statusBar);
Title = "MainApp";
Expand Down
6 changes: 3 additions & 3 deletions Examples/UICatalog/Scenarios/ViewportSettings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -124,8 +124,8 @@ public override void Main ()
var view = new ViewportSettingsDemoView
{
Title = "ViewportSettings Demo View",
Width = Dim.Fill (Dim.Func (() => app.IsInitialized ? adornmentsEditor.Frame.Width + 1 : 1)),
Height = Dim.Fill (Dim.Func (() => app.IsInitialized ? viewportSettingsEditor.Frame.Height : 1))
Width = Dim.Fill (Dim.Func (_ => app.IsInitialized ? adornmentsEditor.Frame.Width + 1 : 1)),
Height = Dim.Fill (Dim.Func (_ => app.IsInitialized ? viewportSettingsEditor.Frame.Height : 1))
};

app.Add (view);
Expand Down Expand Up @@ -164,7 +164,7 @@ public override void Main ()
{
X = Pos.Center (),
Y = Pos.Bottom (textView) + 1,
Width = Dim.Auto (DimAutoStyle.Content, maximumContentDim: Dim.Func (() => view.GetContentSize ().Width)),
Width = Dim.Auto (DimAutoStyle.Content, maximumContentDim: Dim.Func (_ => view.GetContentSize ().Width)),
Height = Dim.Auto (DimAutoStyle.Content, maximumContentDim: Dim.Percent (20)),
};

Expand Down
10 changes: 5 additions & 5 deletions Examples/UICatalog/Scenarios/Wizards.cs
Original file line number Diff line number Diff line change
Expand Up @@ -282,11 +282,11 @@ void Win_Loaded (object sender, EventArgs args)

someText.Height = Dim.Fill (
Dim.Func (
() => someText.SuperView is { IsInitialized: true }
? someText.SuperView.SubViews
.First (view => view.Y.Has<PosAnchorEnd> (out _))
.Frame.Height
: 1));
v => someText.SuperView is { IsInitialized: true }
? someText.SuperView.SubViews
.First (view => view.Y.Has<PosAnchorEnd> (out _))
.Frame.Height
: 1));
var help = "This is helpful.";
fourthStep.Add (someText);

Expand Down
33 changes: 4 additions & 29 deletions Examples/UICatalog/UICatalogTop.cs
Original file line number Diff line number Diff line change
Expand Up @@ -404,20 +404,7 @@ private TableView CreateScenarioList ()
X = Pos.Right (_categoryList!) - 1,
Y = Pos.Bottom (_menuBar!),
Width = Dim.Fill (),
Height = Dim.Fill (
Dim.Func (
() =>
{
if (_statusBar!.NeedsLayout)
{
throw new LayoutException ("DimFunc.Fn aborted because dependent View needs layout.");

//_statusBar.Layout ();
}

return _statusBar.Frame.Height;
})),

Height = Dim.Fill (Dim.Func (v => v!.Frame.Height, _statusBar)),
//AllowsMarking = false,
CanFocus = true,
Title = "_Scenarios",
Expand Down Expand Up @@ -515,19 +502,7 @@ private ListView CreateCategoryList ()
X = 0,
Y = Pos.Bottom (_menuBar!),
Width = Dim.Auto (),
Height = Dim.Fill (
Dim.Func (
() =>
{
if (_statusBar!.NeedsLayout)
{
throw new LayoutException ("DimFunc.Fn aborted because dependent View needs layout.");

//_statusBar.Layout ();
}

return _statusBar.Frame.Height;
})),
Height = Dim.Fill (Dim.Func (v => v!.Frame.Height, _statusBar)),
AllowsMarking = false,
CanFocus = true,
Title = "_Categories",
Expand Down Expand Up @@ -595,8 +570,8 @@ private StatusBar CreateStatusBar ()
// ReSharper disable All
statusBar.Height = Dim.Auto (
DimAutoStyle.Auto,
minimumContentDim: Dim.Func (() => statusBar.Visible ? 1 : 0),
maximumContentDim: Dim.Func (() => statusBar.Visible ? 1 : 0));
minimumContentDim: Dim.Func (_ => statusBar.Visible ? 1 : 0),
maximumContentDim: Dim.Func (_ => statusBar.Visible ? 1 : 0));
// ReSharper restore All

_shQuit = new ()
Expand Down
Loading
Loading