CommunityToolkit/WindowsCommunityToolkit
Ver no GitHub[Sample App] Commands for Sample Pages should have more options for manipulation
Open
#1.960 aberto em 9 de abr. de 2018
help wantedno-recent-activity :chart_with_downwards_trend:sample app 🖼
Métricas do repositório
- Stars
- (5.708 stars)
- Métricas de merge de PR
- (Nenhuma PRs mesclada em 30d)
Description
I'm submitting a...
- Sample app request
Should be related to general improvements #1438 and originally needed by PR #1896.
Current behavior
A sample page can only add new commands for the sample at the commandbar, but outside of the user clicking to invoke them has no way to interact with the button. This makes it hard to enable/disable buttons, hide/show buttons, or have toggle buttons.
Expected behavior
We should extend the SampleCommand and RegisterNewCommand paradigms to allow for:
- Returning the
SampleCommandonRegisterNewCommand - Shell CommandBar listens to updates to properties for
Labeland newParameter,IsVisible, andIsEnabledproperties on theSampleCommand - P2: Provide the option when registering to set the button type to a 'togglable' one.