Customizing the Bing OCR Control
This article is obsolete. It shows how to change the appearance and functionality of The Bing Optical Character Recognition (OCR) Control by replacing the XAML template for the control.
Published date: March 4, 2014
|The Bing OCR Control is deprecated as of March 12, 2014.|
Modifying the OCR Control
The OcrControl Class inherits from Windows.UI.Xaml.Controls.Control, which provides properties to change some of the global aspects of its appearance, such as size, color, and border thickness. But to make more specific changes, such as adding a button or changing the order of visual elements within the control, you must edit or replace the control template.
To edit the control template
From the Toolbox in Visual Studio, drag an OcrControl onto the design surface.
Right-click the OcrControl instance and select Edit Template, and then select Edit a Copy…
The Create ControlTemplate Resource dialog opens.
Name your template.
Under Define in, select This document, and then select your current control from the dropdown list and click OK.
The dialog closes, and the following markup is added to your OcrControl instance.
Edit the ControlTemplate element as described in Customizing the Appearance of an Existing Control by Creating a ControlTemplate.