home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
MediaPortal 2
Plugin Development
Using IWorkflowManager and IScreenManager
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="FreakyJ" data-source="post: 1154290" data-attributes="member: 106003"><p>[USER=48495]@morpheus_xx[/USER] </p><p>Sorry to bother you again <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite3" alt=":(" title="Frown :(" loading="lazy" data-shortname=":(" /></p><p></p><p>I basically have one workflow model with several Screens.</p><p>Inside the plugin.xml it is defined like this:</p><p>[CODE=XML]<Register Location="/Workflow/States"></p><p> <WorkflowState Id="CB09DF01-65FA-4550-977C-B685C237ED3D"</p><p> Name="TEST"</p><p> MainScreen="ConfigScreen"</p><p> DisplayLabel="InputDevices"</p><p> WorkflowModel="CC11183C-01A9-4F96-AF90-FAA046981006"/></p><p> <WorkflowState Id="6ABF367E-346B-459F-B5A6-B61A1E285A64"</p><p> Name="changingInputsMain" MainScreen="ConfigScreenKeyMapping"</p><p> DisplayLabel="changingInputsMain"/></p><p> <WorkflowState Id="9907E2BF-CCE9-4CF7-9F4D-807F14A5DF47"</p><p> Name="AddKey" MainScreen="ConfigScreenAddKey"</p><p> DisplayLabel="ConfigScreenAddKey"/></p><p> <WorkflowState Id="FD7FEDE0-9268-41AE-AD0A-CC8066A41ED9"</p><p> Name="AddAction" MainScreen="ConfigScreenAddAction"</p><p> DisplayLabel="ConfigScreenAddAction"/></p><p> </Register>[/CODE]</p><p></p><p>Inside the Workflow Model I use:</p><p>[code]ServiceRegistration.Get<IWorkflowManager>().NavigatePush(Guid.Parse("6ABF367E-346B-459F-B5A6-B61A1E285A64"));[/code]</p><p></p><p>It works, but the problem is that the screen gets added to the Navigation Stack. That means the user can go backwards by using Esc, but this screws up my workflow <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite3" alt=":(" title="Frown :(" loading="lazy" data-shortname=":(" /></p><p></p><p>So I basically want to swap screens (.xaml files) without putting them on the navigation Stack (read: you can't go back by using Esc, it doesn't appear in the Navigation list on the top left corner.)</p><p></p><p>I am sure this is a easy one, but I already spend sooo many hours on it... I promise I always try to figure it out myself first before I start asking you, but I am lost <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite3" alt=":(" title="Frown :(" loading="lazy" data-shortname=":(" /></p></blockquote><p></p>
[QUOTE="FreakyJ, post: 1154290, member: 106003"] [USER=48495]@morpheus_xx[/USER] Sorry to bother you again :( I basically have one workflow model with several Screens. Inside the plugin.xml it is defined like this: [CODE=XML]<Register Location="/Workflow/States"> <WorkflowState Id="CB09DF01-65FA-4550-977C-B685C237ED3D" Name="TEST" MainScreen="ConfigScreen" DisplayLabel="InputDevices" WorkflowModel="CC11183C-01A9-4F96-AF90-FAA046981006"/> <WorkflowState Id="6ABF367E-346B-459F-B5A6-B61A1E285A64" Name="changingInputsMain" MainScreen="ConfigScreenKeyMapping" DisplayLabel="changingInputsMain"/> <WorkflowState Id="9907E2BF-CCE9-4CF7-9F4D-807F14A5DF47" Name="AddKey" MainScreen="ConfigScreenAddKey" DisplayLabel="ConfigScreenAddKey"/> <WorkflowState Id="FD7FEDE0-9268-41AE-AD0A-CC8066A41ED9" Name="AddAction" MainScreen="ConfigScreenAddAction" DisplayLabel="ConfigScreenAddAction"/> </Register>[/CODE] Inside the Workflow Model I use: [code]ServiceRegistration.Get<IWorkflowManager>().NavigatePush(Guid.Parse("6ABF367E-346B-459F-B5A6-B61A1E285A64"));[/code] It works, but the problem is that the screen gets added to the Navigation Stack. That means the user can go backwards by using Esc, but this screws up my workflow :( So I basically want to swap screens (.xaml files) without putting them on the navigation Stack (read: you can't go back by using Esc, it doesn't appear in the Navigation list on the top left corner.) I am sure this is a easy one, but I already spend sooo many hours on it... I promise I always try to figure it out myself first before I start asking you, but I am lost :( [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 2
Plugin Development
Using IWorkflowManager and IScreenManager
Contact us
RSS
Top
Bottom