Fixes #4051 - Adds cancellable_work_pattern.md (#4052)

* touching publish.yml

* Updated md files

* Updated md files 2

* Updated md files 3

* Updated API docs to point

* commmand->command

* Update Terminal.Gui/View/View.Command.cs

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
Tig
2025-04-28 06:40:24 -06:00
committed by GitHub
parent 3f38d8104e
commit 8e5d2eeafd
11 changed files with 741 additions and 88 deletions

View File

@@ -24,7 +24,11 @@ public sealed class Transparent : Scenario
appWindow.VerticalTextAlignment = Alignment.Center;
appWindow.ClearingViewport += (s, e) =>
{
appWindow!.FillRect (appWindow!.Viewport, Glyphs.Stipple);
if (s is View sender)
{
sender.FillRect (sender.Viewport, Glyphs.Stipple);
}
e.Cancel = true;
};
ViewportSettingsEditor viewportSettingsEditor = new ViewportSettingsEditor ()