private void App_CommandsRequested(InTheHand.UI.ApplicationSettings.SettingsPane sender, InTheHand.UI.ApplicationSettings.SettingsPaneCommandsRequestedEventArgs args) { args.Request.ApplicationCommands.Add(new InTheHand.UI.ApplicationSettings.SettingsCommand("test", "Testing", async (c) => { InTheHand.UI.Popups.MessageDialog md = new InTheHand.UI.Popups.MessageDialog("Testing", "Woohoo title"); await md.ShowAsync(); })); args.Request.ApplicationCommands.Add(new InTheHand.UI.ApplicationSettings.SettingsCommand("system", "System", async (c) => { InTheHand.UI.Popups.MessageDialog md = new InTheHand.UI.Popups.MessageDialog("Testing", "Woohoo title"); md.Commands.Add(new InTheHand.UI.Popups.UICommand("one", (c2) => { System.Diagnostics.Debug.WriteLine("One"); }, "1")); md.Commands.Add(new InTheHand.UI.Popups.UICommand("two", (c2) => { System.Diagnostics.Debug.WriteLine("Two"); }, "2")); await md.ShowAsync(); })); }
private void MainActivity_DataRequested(object sender, InTheHand.ApplicationModel.DataTransfer.DataRequestedEventArgs e) { e.Request.Data.SetWebLink(new Uri("http://peterfoot.net")); e.Request.Data.Properties.Title = "Pete's Website"; }
private void UIViewController1_DataRequested(object sender, InTheHand.ApplicationModel.DataTransfer.DataRequestedEventArgs e) { e.Request.Data.SetText("Hello World!"); e.Request.Data.Properties.Title = "New Share"; }