Exemplo n.º 1
0
        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;
        }
Exemplo n.º 2
0
        private static void OnLabelPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            MaterialTextBox box = d as MaterialTextBox;

            if (box != null && box.inputLabel != null)
            {
                box.inputLabel.Text = box.Label;
            }
        }