Пример #1
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.smartTextBox = ((WPF.JoshSmith.Controls.SmartTextBox)(target));
                return;

            case 2:
                this.btnFixNextTypo = ((System.Windows.Controls.Button)(target));
                return;
            }
            this._contentLoaded = true;
        }
Пример #2
0
        static void OnSuggestionListBoxStyleChanged(DependencyObject depObj, DependencyPropertyChangedEventArgs e)
        {
            SmartTextBox smartTextBox = depObj as SmartTextBox;

            smartTextBox.suggestionList.Style = e.NewValue as Style;
        }