private bool FindImage() { //find image uiNode.clippingRegion = null; try { UiRegion imageRegion = uiNode.FindImage(image, GetAccuracy()); if (imageRegion != null) { uiNode.clippingRegion = imageRegion; } return(true); } catch (Exception ex) { MessageBox.Show(ex.Message); return(false); } }