repsaj.bots.domoticz.app/App.xaml.cs
/// <summary>
/// Invoked when the application is activated for instance by protocol invocation.
/// </summary>
/// <param name="args"></param>
Invoked when the application is activated for instance by protocol invocation.
Invoked when the application is activated for instance by protocol invocation .
protected override void OnActivated(IActivatedEventArgs args)
        {
            if (args.Kind == ActivationKind.Protocol)
            {
                ProtocolActivatedEventArgs eventArgs = args as ProtocolActivatedEventArgs;
                var viewModel = ServiceLocator.Current.GetInstance<MainPageViewModel>();
                viewModel.Command = eventArgs.Uri.ToString();
            }
        }
protected override void OnActivated ( IActivatedEventArgs args ) { if ( args . Kind == ActivationKind . Protocol ) { ProtocolActivatedEventArgs eventArgs = args as ProtocolActivatedEventArgs ; var viewModel = ServiceLocator . Current . GetInstance < MainPageViewModel > ( ) ; viewModel . Command = eventArgs . Uri . ToString ( ) ; } }
Invoked when the application is activated for instance by protocol invocation.
Invoked when the application is activated for instance by protocol invocation .
// TODO: Handle URI activation // The received URI is eventArgs.Uri.AbsoluteUri
args
IActivatedEventArgs
None