I’m looking for command or method which is firing while starting application, while we get main window.
What I need to reach? I want to open My Workspace after login agent immediately. I need something Create() method for MyWorkplaceContainerView.
To open MyWorkplace window I use this code
viewEventManager.Publish(new GenericEvent()
{
Target = GenericContainerView.ContainerView,
Context = "ToolbarWorksheet",
Action = new GenericAction[]
{
new GenericAction ()
{
Action = ActionGenericContainerView.ShowHidePanelRight,
Parameters = new object[] { Visibility.Visible, "MyWorkplaceContainerView" }
},
new GenericAction ()
{
Action = ActionGenericContainerView.ActivateThisPanel,
Parameters = new object[] { "MyWorkplaceContainerView" }
}
}
});
but I can use above code only when MyWorkplaceContainer is prepared so this is possible only after login. I can’t find any command like ApplicationOpenCommand or something, do you know how can I reach it?
Thank you for all answers.