PlaybackWpfUserControl: get the Timeline interval set by zoom menu

I’m developing a workspace plugin.

I’m using MIP SDK 2019R3

In the workspace i’ve used PlaybackWpfUserControl (an indipendent playback)

When the user click with mouse right button on the timeline the user can set the timeline time interval via zoom menu. The default is 1 hour.

Now i want to set, whenever a user login, and enter to my workspace tab

retrieve the position and the timeline interval.

I’ve used the MessageId.SmartClient.PlaybackCommand with the PlaybackData.Goto and i’ve sent this message to the playbackFQID and this works correctly and the current playback time is set to the time i provided in PlaybackCommandData.

But, how can i get and set the timeline time interval (the one set by zoom menu by the user)?

I’ve tried the message GetTimelineSelectedIntervalRequest, and i’ve sent it to the playbackFQID. But i retrieve always 01/01/0001 00:00:00 - 01/01/0001 00:00:00 as reponse.

I’ve also tried to use directly the playbackWpfUserControl.TimeSpan property

bu i got an error.

ok, i’ve fixed.

I can use playbackWpfUserControl.TimeSpan but seems i’ve to set

playbackWpfUserControl.ShowTallUserControl = true;

playbackWpfUserControl.ShowTimeSpanControl = true;