Closed yangjieshao closed 3 years ago
PropertyChanged.Fody.nupkg WriteableBitmapHelper.cs ScreenBrushViewModel.cs can use like this
<Border
Width="256"
Height="256"
Background="{Binding ScreenBrush.Brush}"
CornerRadius="128" />
private void OpenUsbCamera()
{
var deviceInfos = UsbCamera.FindDeviceInfos();
if (deviceInfos.Count > 0)
{
ViewModel.ScreenBrush.CameraInfo =new CameraInfoViewModel
{
Name = deviceInfos[0].Name,
Id = deviceInfos[0].DevicePath,
CameraIndex = 0
};
}
}
.
<null>