ICoreInputSourceBase ICoreInputSourceBase ICoreInputSourceBase ICoreInputSourceBase Interface

Definition

Defines the base interface for an input source used by a CoreWindow.

public : interface ICoreInputSourceBase
public interface ICoreInputSourceBase
Public Interface ICoreInputSourceBase
// You can't instantiate an interface directly in JavaScript. You can use objects that implement the interface, however.
Attributes
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

Properties

Dispatcher Dispatcher Dispatcher Dispatcher

Gets the event dispatcher for the window.

public : CoreDispatcher Dispatcher { get; }
public CoreDispatcher Dispatcher { get; }
Public ReadOnly Property Dispatcher As CoreDispatcher
var coreDispatcher = iCoreInputSourceBase.dispatcher;
Value
CoreDispatcher CoreDispatcher CoreDispatcher CoreDispatcher

The event dispatcher for the window.

IsInputEnabled IsInputEnabled IsInputEnabled IsInputEnabled

Gets or sets a value that indicates whether input is enabled for the UWP app.

public : Platform::Boolean IsInputEnabled { get; set; }
public bool IsInputEnabled { get; set; }
Public ReadWrite Property IsInputEnabled As bool
var bool = iCoreInputSourceBase.isInputEnabled;
iCoreInputSourceBase.isInputEnabled = bool;
Value
Platform::Boolean bool bool bool

True if input is enabled for the app; false if it is disabled.

Events

InputEnabled InputEnabled InputEnabled InputEnabled

Occurs when input is enabled or disabled for the UWP app.

public : event TypedEventHandler InputEnabled<Platform::Object,  InputEnabledEventArgs>
public event TypedEventHandler InputEnabled<object,  InputEnabledEventArgs>
Public Event TypedEventHandler InputEnabled( Of ( Of object ), ( Of  InputEnabledEventArgs ))
function onInputEnabled(eventArgs){/* Your code */}


iCoreInputSourceBase.addEventListener("inputEnabled", onInputEnabled);
iCoreInputSourceBase.removeEventListener("inputEnabled", onInputEnabled);