File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 573573 </Canvas >
574574 <Canvas
575575 x : Name =" TemplateRegionOverlayCanvas"
576+ Margin =" -4,-2,0,0"
576577 Panel.ZIndex=" 5"
577578 ClipToBounds =" True"
578579 IsHitTestVisible =" False" />
Original file line number Diff line number Diff line change @@ -1771,12 +1771,14 @@ private void SyncRectanglesCanvasSizeToImage()
17711771 {
17721772 GrabFrameImage . Width = sourceWidth ;
17731773 RectanglesCanvas . Width = sourceWidth ;
1774+ TemplateRegionOverlayCanvas . Width = sourceWidth ;
17741775 }
17751776
17761777 if ( double . IsFinite ( sourceHeight ) && sourceHeight > 0 )
17771778 {
17781779 GrabFrameImage . Height = sourceHeight ;
17791780 RectanglesCanvas . Height = sourceHeight ;
1781+ TemplateRegionOverlayCanvas . Height = sourceHeight ;
17801782 }
17811783 }
17821784
@@ -2723,6 +2725,8 @@ private void ResetGrabFrame()
27232725 RectanglesCanvas . RenderTransform = Transform . Identity ;
27242726 RectanglesCanvas . ClearValue ( WidthProperty ) ;
27252727 RectanglesCanvas . ClearValue ( HeightProperty ) ;
2728+ TemplateRegionOverlayCanvas . ClearValue ( WidthProperty ) ;
2729+ TemplateRegionOverlayCanvas . ClearValue ( HeightProperty ) ;
27262730 GrabFrameImage . ClearValue ( WidthProperty ) ;
27272731 GrabFrameImage . ClearValue ( HeightProperty ) ;
27282732 IsOcrValid = false ;
You can’t perform that action at this time.
0 commit comments