I have multi view usercontrols which display by TebItems control.
One of TabItems contains my webcamdevice control which display web cam player using AForge.
The problem is in load of usercontrol, video has stopped working. Just when I move or drag mouse or Click onto any textboxes field, then video will start to working.
My Wecam.xaml:
HTML / XML
x:Name="TxtL2Name" Width="180" Validation.ErrorTemplate=" {x:Null}" Text=""/> Grid.Row="2" Grid.Column="0" Grid.ColumnSpan="2" HorizontalAlignment="Stretch" Width="1000" Height="600" VerticalAlignment="Stretch"> Height="*"/> Width="*"/> Grid.Row="0" Grid.Column="0" Margin="20,0,20,20" x:Name="CameraVideoDeviceControl" VideoPreviewWidth="Auto" VideoPreviewHeight="Auto" VideoSourceId="{Binding SelectedVideoDevice, Converter={StaticResource MediaInformationConverter}}" SnapshotBitmap="{Binding SnapshotBitmap, Mode=TwoWay}" /> x:Name="BtnSnapshot" Grid.Row="4" Margin="20,20,20,5" Grid.Column="0" Content="Take Snapshot"> Event="Click" Command="{Binding TakeSnapshot, ElementName=CameraVideoDeviceControl}" /> Event="Click" Command="{Binding SnapshotCommand}" />`enter code here`This is my Parent View:
HTML / XML
DockPanel.Dock="Top" VerticalScrollBarVisibility="Auto"> Header="VIEW1" Style="{StaticResource AzureTabItem}"> /> Header="CAMVIEW" Style="{StaticResource AzureTabItem}"> Margin="10">
Manikandan MurugesanRank #300 · 8.4K reputationPosted Jul 31, 2017, 11:37 PM EDT