[quote author=petitspirou link=topic=9881.msg45363#msg45363 date=1480936171]
Do you find how to focus ?
[b]WDE focuses on the last tab opened in the previous interaction[/b]
I need to focus always on my custom tab, regardless the previous one
Thus, how to desactivate the last-information-panel process ?
[/quote]
That. As petitspirou said, our WDE works on that way, opening last tab on the previous interaction.
You can try to work launching and event on load like the button "splitToggleButton" of the views (if you work with customized view, i supose you have one) works whenever you click on it.
See the interaction example on WDE samples, but must be something like:
private void splitToggleButton_Click(object sender, System.Windows.RoutedEventArgs e)
{
// Lock MinSize
viewEventManager.Publish(new GenericEvent()
{
SourceId = null,
Target = GenericContainerView.ContainerView,
Context = Model.Case.CaseId,
TargetId = null,
Action = new GenericAction[]
{
new GenericAction ()
{
Action = ActionGenericContainerView.LockMinSize,
Parameters = new object[] { true, "InteractionContainerView" }
}
}
});
viewEventManager.Publish(new GenericEvent()
{
Target = GenericContainerView.ContainerView,
Context = Model.Case.CaseId,
Action = new GenericAction[]
{
new GenericAction ()
{
Action = ActionGenericContainerView.ShowHidePanelRight,
Parameters = new object[] { splitToggleButton.IsChecked ?? false ? Visibility.Visible : Visibility.Collapsed, "Interaction" }
},
new GenericAction ()
{
Action = ActionGenericContainerView.ActivateThisPanel,
Parameters = new object[] { "Interaction" }
}
}
});
// Unlock MinSize
viewEventManager.Publish(new GenericEvent()
{
SourceId = null,
Target = GenericContainerView.ContainerView,
Context = Model.Case.CaseId,
TargetId = null,
Action = new GenericAction[]
{
new GenericAction ()
{
Action = ActionGenericContainerView.LockMinSize,
Parameters = new object[] { false, "InteractionContainerView" }
}
}
});
}
Regards.