Hello,
There is a RadDataGrid with couple of DataGridTemplateColumns. One of the column contains a MediaPlayerElement as a video preview.
The realized problem is when I am changing any column's size, the grid and all of the contained element's bindings are automatically read again. It causes a couple of error (and ugly behavior) on the MediaPlayerElement, the rest of the columns are working fine.
The Grid:
<telerikGrid:RadDataGrid x:Name="GridVideoFiles" Grid.Row="1" UserEditMode="External" AutoGenerateColumns="false" UserFilterMode="Disabled" UserGroupMode="Disabled"
ColumnResizeHandleDisplayMode="Always"
DragOver="UIElement_OnDragOver" AllowDrop="True"
Drop="UIElement_OnDrop"
ItemsSource="{Binding VisionFiles}">
The given column:
<telerikGrid:DataGridTemplateColumn Header="Video Player" SizeMode="Fixed" Width="300" CanUserResize="False">
<telerikGrid:DataGridTemplateColumn.CellContentTemplate>
<DataTemplate>
<Grid Width="300">
<MediaPlayerElement Width="300" Source="{Binding Media, Mode=OneTime}" AreTransportControlsEnabled="True">
<MediaPlayerElement.TransportControls>
<MediaTransportControls IsCompact="True"/>
</MediaPlayerElement.TransportControls>
</MediaPlayerElement>
</Grid>
</DataTemplate>
</telerikGrid:DataGridTemplateColumn.CellContentTemplate>
</telerikGrid:DataGridTemplateColumn>
Can you tell me any solution to prevent the binded Media property updating automatically?