コード例 #1
0
        public ConfigureSignalingDialog(
            bool isAdding,
            SignalingViewModel signaling)
        {
            this.InitializeComponent();
            if (isAdding)
            {
                Title             = "Adding a New Signaling";
                PrimaryButtonText = "Add";
            }
            else
            {
                Title             = "Change Signaling Settings";
                PrimaryButtonText = "Accept";
            }
            this.TypeComboBox.ItemsSource = Enum.GetValues(typeof(SignalingType))
                                            .Cast <SignalingType>()
                                            .ToList();

            this.ViewModel   = signaling;
            this.DataContext = signaling;
        }
コード例 #2
0
        public SignalingPage()
        {
            BindingContext = new SignalingViewModel();

            InitializeComponent();
        }