コード例 #1
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.IdCombobox = ((System.Windows.Controls.ComboBox)(target));
                return;

            case 2:
                this.PwdTextbox = ((System.Windows.Controls.PasswordBox)(target));
                return;

            case 3:
                this.LoginButton = ((System.Windows.Controls.Button)(target));
                return;

            case 4:
                this.AutoLoginCheckbox = ((System.Windows.Controls.CheckBox)(target));
                return;

            case 5:
                this.BusyIndicator = ((CommonControl.BusyIndicator.SmoothBusyIndicator)(target));
                return;
            }
            this._contentLoaded = true;
        }
コード例 #2
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.BusyIndicator = ((CommonControl.BusyIndicator.SmoothBusyIndicator)(target));
                return;

            case 2:
                this.ProfileMan = ((System.Windows.Shapes.Path)(target));
                return;

            case 3:
                this.ManFace = ((System.Windows.Shapes.Path)(target));
                return;

            case 4:
                this.ManHead = ((System.Windows.Shapes.Path)(target));
                return;

            case 5:
                this.ManTop = ((System.Windows.Shapes.Path)(target));
                return;
            }
            this._contentLoaded = true;
        }
コード例 #3
0
        private static void IsBusyPropertyChangedCallback(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            bool bNewValue = (bool)e.NewValue;
            SmoothBusyIndicator targetIndicator = d as SmoothBusyIndicator;

            Application.Current.Dispatcher.BeginInvoke(DispatcherPriority.Render, new ThreadStart(() =>
            {
                if (true == bNewValue)
                {
                    targetIndicator.Start();
                }
                else
                {
                    targetIndicator.Stop();
                }
            }));
        }
コード例 #4
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.RecommendRoot = ((BeautifulTalk.Modules.Friends.Views.RecommendView)(target));
                return;

            case 2:
                this.RefreshButton = ((System.Windows.Controls.Button)(target));
                return;

            case 3:
                this.BusyIndicator = ((CommonControl.BusyIndicator.SmoothBusyIndicator)(target));
                return;
            }
            this._contentLoaded = true;
        }