Add SelectedContentControl to HeaderedControls library

Aperta
#811 2 commenti 2 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
42/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
csharp
Ambito
desktop, frontend

Direzione di ricerca

Inizia esaminando la libreria HeaderedControls e i relativi controlli header/footer esistenti, quindi confronta il gist SelectedContentControl collegato e l'implementazione alternativa SelectedViewSampleApp. Verifica se un test labs può stabilire lo scenario previsto di un documento con schede; l'attività è completata quando il controllo supporta una selezione condivisa con un TabView ed espone la disposizione header/footer richiesta, con test che coprano il comportamento.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

components::controls::headeredcontrols feature request :mailbox_with_mail: need more info :pushpin:
Describe the bug

We should add the SelectedContentControl to the HeaderedControls library (after adding header/footer). Maybe we should have a labs test first, though this is a fairly straight-forward setup.

Initial discussion in Discord: https://discord.com/channels/372137812037730304/580484470877061120/1433674424024043540

Alternate implementation from @AndrewKeepCoding: https://github.com/AndrewKeepCoding/SelectedViewSampleApp

I built the code in the first link for XAML Studio, it's been working pretty good, I think. Tests would be good of course.

Steps to reproduce
---
Expected behavior

Scenario: If you need to drive tabbed documents separately from a TabView.

For instance, if you look at Edge itself:

Image

Between the tabs at the top and the document (webpage in this case) below, there's the address bar. With the existing TabView that has to be part of the document's view, it can't easily be centralized to the main parent container.

With the SelectedContentControl you could instead have the same collection drive both the TabView and the SCC with another control in a grid between or within the Header of the SCC.

Screenshots

No response

Code Platform
  • UWP
  • WinAppSDK / WinUI 3
  • Web Assembly (WASM)
  • Android
  • iOS
  • MacOS
  • Linux / GTK
Windows Build Number
  • Windows 10 1809 (Build 17763)
  • Windows 10 1903 (Build 18362)
  • Windows 10 1909 (Build 18363)
  • Windows 10 2004 (Build 19041)
  • Windows 10 20H2 (Build 19042)
  • Windows 10 21H1 (Build 19043)
  • Windows 10 21H2 (Build 19044)
  • Windows 10 22H2 (Build 19045)
  • Windows 11 21H2 (Build 22000)
  • Other (specify)
Other Windows Build number

No response

App minimum and target SDK version
  • Windows 10, version 1809 (Build 17763)
  • Windows 10, version 1903 (Build 18362)
  • Windows 10, version 1909 (Build 18363)
  • Windows 10, version 2004 (Build 19041)
  • Windows 10, version 2104 (Build 20348)
  • Windows 11, version 22H2 (Build 22000)
  • Other (specify)
Other SDK version

No response

Visual Studio Version

No response

Visual Studio Build Number

No response

Device form factor

No response

Additional context

No response

Help us help you

Yes, but only if others can assist.

Lingua principale
C#
Stelle
1.1k
Fork
171
Merge medio
2h 48m
PR unite (30g)
2

Preparare l'ambiente

Apri in Codespaces

Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di CommunityToolkit/Windows

Tutte le issue di CommunityToolkit/Windows

Issue simili

Altre issue su C#

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.