void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.IsPlayingToggle = ((Digimezzo.WPFControls.MaterialToggleSwitch)(target)); return; case 2: this.UriShowTextBlock = ((System.Windows.Controls.TextBlock)(target)); return; case 3: this.FpsTextBox = ((Digimezzo.WPFControls.MaterialTextBox)(target)); return; case 4: this.SelectButton = ((Digimezzo.WPFControls.MaterialFlatButton)(target)); return; case 5: this.PlayerImageBox = ((System.Windows.Controls.Image)(target)); return; } this._contentLoaded = true; }
private static void OnLabelPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) { MaterialTextBox box = d as MaterialTextBox; if (box != null && box.inputLabel != null) { box.inputLabel.Text = box.Label; } }