Exception when using VideoOs inside TileView

2 posts, 0 answers
  1. paolo
    paolo avatar
    4 posts
    Member since:
    Mar 2017

    Posted 16 Aug 2018 Link to this post

    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



  2. Martin Ivanov
    Martin Ivanov avatar
    2393 posts

    Posted 20 Aug 2018 Link to this post

    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.

    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.
Back to Top