示例#1
0
        public override void ViewDidLoad()
        {
            base.ViewDidLoad();
            var alexa = new AlexaVoiceService("xamarinsample");

            // Perform any additional setup after loading the view, typically from a nib.
            Button.AccessibilityIdentifier = "myButton";
            Button.TouchUpInside          += delegate
            {
                var title = string.Format("{0} clicks!", count++);
                Button.SetTitle(title, UIControlState.Normal);
            };
        }
 public HomeViewModel(string productId)
 {
     alexa = new AlexaVoiceService(productId);
 }