- Admin
- #11
@henso
to bind a command to a button I need source states I think.
Example Home Button:
For the exject button the source state is "*" though. Can I just create a source state with a Guid generator or is there a reason for the "*"?
to bind a command to a button I need source states I think.
Example Home Button:
XML:
<Button x:Name="HomeButton" Style="{ThemeResource HomeButtonStyle}" HorizontalAlignment="Left" VerticalAlignment="Center"
Command="{Command Source={Service WorkflowManager},Path=NavigatePush,Parameters=7F702D9C-F2DD-42da-9ED8-0BA92F07787F}"/>
XML:
<WorkflowContributorAction Id="17D2390E-5B05-4fbd-89F6-24D60CEB427F"
Name="Home->BrowseLocalMedia"
DisplayCategory="a-Media"
SortOrder="a"
SourceStates="7F702D9C-F2DD-42da-9ED8-0BA92F07787F"
ContributorModelId="6455D863-CCF2-403d-8C36-754299B61319"/> <!-- LocalMedia action -->
For the exject button the source state is "*" though. Can I just create a source state with a Guid generator or is there a reason for the "*"?
XML:
<WorkflowContributorAction Id="9EE2C4A6-70FD-4947-9418-A40012925DA6"
Name="*->EjectOpticalDisc"
DisplayCategory="a-Media"
SortOrder="x"
Group="Global"
SourceStates="*"
ContributorModelId="5D67150A-3B09-43C1-8618-FFE3C763AFD1"/>