NotifyEventArgs class

Expand
This topic has not yet been rated - Rate this topic

NotifyEventArgs class

[This documentation is preliminary and is subject to change.]

Applies to: Metro style apps only

Provides data for the ScriptNotify event.

Inheritance

Object
  NotifyEventArgs

Syntax


public sealed class NotifyEventArgs : Object

Attributes

MarshalingBehaviorAttribute(Agile)
ThreadingAttribute(Both)
VersionAttribute(NTDDI_WIN8)
WebHostHiddenAttribute()

Members

The NotifyEventArgs class has these types of members:

Methods

The NotifyEventArgs class inherits methods from the Object class.

Properties

The NotifyEventArgs class has these properties.

PropertyAccess typeDescription

Value

Read-onlyGets the method name as passed to the application.

 

Examples

The following code example demonstrates the use of the ScriptNotify event.


public MyPage()
{
    this.InitializeComponent();
    MyWebView.ScriptNotify += MyWebView_ScriptNotify;

    // Here we have to set the AllowedScriptNotifyUri property because we are 
    // navigating to some site where we don't own the content and we want to 
    // allow window.external.notify() to pass data back to the app.
    List<Uri> allowedUris = new List<Uri>();
    allowedUris.Add(new Uri("http://www.bing.com"));
    MyWebView.AllowedScriptNotifyUris = allowedUris;
}

void MyWebView_ScriptNotify(object sender, NotifyEventArgs e)
{
    // Respond to the script notification.
}


Requirements

Minimum supported client

Windows 8 Release Preview

Minimum supported server

Windows Server 2012

Namespace

Windows.UI.Xaml.Controls
Windows::UI::Xaml::Controls [C++]

Metadata

Windows.winmd

See also

Object

 

 

Build date: 5/22/2012

Did you find this helpful?
(1500 characters remaining)
Community Additions ADD