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; }
public SignalingPage() { BindingContext = new SignalingViewModel(); InitializeComponent(); }