OcrControl.InstructionOverlay Property

 

Deprecated. The InstructionOverlay property specifies a Xaml.UIElement object to display additional instructions to the end user. This element is usually a TextBlock but may be of any type that inherits from UIElement.

Published date: March 4, 2014

System_CAPS_warningWarning

The Bing OCR Control is deprecated as of March 12, 2014

public UIElement InstructionOverlay { get; set }
<Ocr:OcrControl.InstructionOverlay><TextBlock .../></Ocr:OcrControl.InstructionOverlay>

Type: Windows.UI.Xaml.UIElement

The element to display instructions on.

You should set the IsHitTestVisible attribute of the UIElement to false to prevent the instruction overlay from intercepting mouse clicks or taps intended for The Bing Optical Character Recognition (OCR) Control preview window.

Example

The following example creates an OCR control with an instruction overlay.

<Ocr:OcrControl x:Name="OCR">
    <Ocr:OcrControl.InstructionOverlay>
        <TextBlock Text="Click or tap to capture image." IsHitTestVisible="False" />
    </Ocr:OcrControl.InstructionOverlay>
</Ocr:OcrControl>

Requirements

Minimum Supported Client

Windows 8.1

Required Extensions

Bing OCR

Namespace

Bing.Ocr

Show: