We would like to draw a red border around the camera stream while video is recording. I tried attaching ot the StartRecording event and modifying the UI internals:
((Telerik.WinControls.UI.RadWebCamElement)(radWebCam1.GetChildAt(1))).DrawBorder = true;
((Telerik.WinControls.UI.LightVisualElement)(radWebCam1.GetChildAt(2))).BorderBoxStyle = Telerik.WinControls.BorderBoxStyle.SingleBorder;
((Telerik.WinControls.UI.LightVisualElement)(radWebCam1.GetChildAt(2))).BorderWidth = 8F;
((Telerik.WinControls.UI.LightVisualElement)(radWebCam1.GetChildAt(2))).BorderColor = System.Drawing.Color.Red;
and it sortof works.. the border reduces size, and isn;t shown at the bottom. I have the
radWebCam1.ControlPanelHeight = 0;
because we are adding custom controls. but when we StopRecording and I execute
((Telerik.WinControls.UI.RadWebCamElement)(radWebCam1.GetChildAt(1))).DrawBorder = false;
the border is not hidden.
The camera control is docked on teh form next to a collapsible panel, If I expand the panel, the border goes to full size. But it still doesn't hide when I set DraBorder to false.