This is a migrated thread and some comments may be shown as answers.

Exception when using VideoOs inside TileView

1 Answer 86 Views
TileView
This is a migrated thread and some comments may be shown as answers.
paolo
Top achievements
Rank 1
paolo asked on 16 Aug 2018, 12:31 PM

Excuse me, 
I'm trying to use Milestone WPF player (which makes use of VideoOsPlayer) and I got an exception while removing a bounded item to the TileView itemsource.
I've created a sample project thinking the iussue would be on VideoOs player but they answered me 

Thank you for the sample. It allowed us to reproduce the issue, but unfortunately the behavior we observe is quite strange.
What appears to happen is that the DataContext on the controls we have inside the ImageViewerWpfControl are set to null by something outside our code. Our code has no code for setting these to null and no public properties allowing others to do so, so apparently Telerik is running through the children of the control and setting these?

We tried reproducing using normal WPF controls, but could not.
This is not behavior we expect/support and thus the code has not been designed for it.
One thing we found out is that if you set IsVirtualizing="False" on the Telerik control it will not cause the problem, so even though this is not optimal it is at least a workaround.
Maybe you can reach out to Telerik to ask them about this behavior?

Here you can find the whole thread with the link of the demo project

What's really strange is that setting IsVirtualizing="False" it apperently works...can you please check on your side?

I've used 2018.2.620.45 control version

Thanks in advance

 

 

1 Answer, 1 is accepted

Sort by
0
Martin Ivanov
Telerik team
answered on 20 Aug 2018, 08:41 AM
Hello Paolo,

Indeed, when the control's UI virtualization is enabled the content of the tileviewitem removed from the viewport will be cleared. This is why the context of the ImageViewerWpfControl is set to null and the exception is thrown. To resolve this you can disable the UI virtualization as suggested by the Milestone team. To do this set the IsVirtualizing property of RadTileView to False.

Regards,
Martin Ivanov
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Tags
TileView
Asked by
paolo
Top achievements
Rank 1
Answers by
Martin Ivanov
Telerik team
Share this question
or