Tooling-Windows-Submodule icon indicating copy to clipboard operation
Tooling-Windows-Submodule copied to clipboard

Collapse/Remove namespace/header info at the top of C# code display

Open michael-hawker opened this issue 3 years ago • 1 comments

We should either have a collapsible region at the top of the C# code display for samples that hides the license info and namespaces to better focus on the code for the specific sample (or remove it entirely).

We may also want to hide the page constructor if it's completely default and just calling InitializeComponent.

michael-hawker avatar Feb 11 '22 19:02 michael-hawker

Including the namespaces will be almost necessary for samples, so we probably shouldn't remove them completely.

Things that may help:

  • Raising the severity for unused namespaces at the top of sample pages
  • Sample tabs for compilation-conditional code that swaps between UWP and WinAppSDK

Arlodotexe avatar Feb 18 '22 01:02 Arlodotexe