Ejemplo n.º 1
0
        private OperatorPicker CreateOperatorPicker()
        {
            OperatorPicker picker = new OperatorPicker(Operators);

            picker.SelectedIndexChanged += (sender, args) => { ResultView.Content = picker.CreateContactInfoOnPick(); };
            return(picker);
        }
Ejemplo n.º 2
0
 public ContactPage() : base()
 {
     Title      = "快速聯繫";
     PageLayout = new StackLayout
     {
         HorizontalOptions = LayoutOptions.Center,
         Spacing           = 10,
         Margin            = 10,
     };
     OperatorPicker = CreateOperatorPicker();
     PageLayout.Children.Add(MessageLabel);
     PageLayout.Children.Add(OperatorPicker);
     PageLayout.Children.Add(ResultView);
     Content = PageLayout;
 }