WinUI-Gallery icon indicating copy to clipboard operation
WinUI-Gallery copied to clipboard

Change how source codes (C#/XAML) are displayed

Open ghost1372 opened this issue 9 months ago • 4 comments

Issue type

enhancement

Which version of the app?

WinUI 3 Gallery

Description

Currently displaying codes is too long and confusing. Using Pivot/selector bar can shorten the code and make it easier to use.

this Currently design image

I have used pivot for my app and it is as follows Screenshot 2024-05-08 203240

@karkarl If approved, I can create a PR for this.

Screenshots

No response

Windows version

Insider Build (xxxxx), Windows 11 24H2 (26052), Windows 11 23H2 (22631), Windows 11 22H2 (22621), Windows 11 21H2 (22000), Windows 10 22H2 (19045), November 2021 Update/21H2 (19044), May 2021 Update/21H1 (19043), October 2020 Update/20H2 (19042), October 2018 Update/RS5 (17763)

Additional context

No response

ghost1372 avatar May 08 '24 17:05 ghost1372

I've learned that Pivot is deprecated, but SelectorBar is almost identical.

Jay-o-Way avatar May 11 '24 15:05 Jay-o-Way

@karkarl I think this makes sense? We do the same thing in the Windows Community Toolkit Gallery:

image

niels9001 avatar May 16 '24 12:05 niels9001

@karkarl I think this makes sense? We do the same thing in the Windows Community Toolkit Gallery:

image

Let's do it! I like the idea of aligning design patterns with Community toolkit.

karkarl avatar May 16 '24 18:05 karkarl

@karkarl ~~i used SwitchPresenter from communityToolkit.(I copied its codes directly in the repository)~~ i created a pr which is working fine. https://github.com/microsoft/WinUI-Gallery/pull/1540

ghost1372 avatar May 17 '24 18:05 ghost1372