コード例 #1
0
        //当UI显示/关闭的时候,触发此方法
        private void SettingUiControl_OnIsVisibleChanged(object sender, DependencyPropertyChangedEventArgs e)
        {
            //获取组件
            SettingUiControl _settingUiControl = (SettingUiControl)sender;


            //做一些处理
            _settingUiControl.LanguageToggleControl.IsChecked = false;  //关闭语言组
            SetLanguageImage(AppManager.AppDatas.SettingData.Language); //设置语言的图片
        }
コード例 #2
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.SettingUiUserControl = ((CatTimer_WpfProject.SettingUiControl)(target));
                return;

            case 2:
                this.LanguageToggleControl = ((CatTimer_WpfProject.ToggleControl)(target));
                return;

            case 3:
                this.LanguageGrid = ((System.Windows.Controls.Grid)(target));
                return;
            }
            this._contentLoaded = true;
        }
コード例 #3
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.SettingUiUserControl = ((CatTimer_WpfProject.SettingUiControl)(target));

            #line 10 "..\..\..\..\Xaml\Control\SettingUiControl.xaml"
                this.SettingUiUserControl.IsVisibleChanged += new System.Windows.DependencyPropertyChangedEventHandler(this.SettingUiControl_OnIsVisibleChanged);

            #line default
            #line hidden
                return;

            case 2:
                this.CloseButtonControl = ((CatTimer_WpfProject.ButtonControl)(target));
                return;

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

            #line 32 "..\..\..\..\Xaml\Control\SettingUiControl.xaml"
                this.CloseButton.Click += new System.Windows.RoutedEventHandler(this.CloseButton_OnClick);

            #line default
            #line hidden

            #line 33 "..\..\..\..\Xaml\Control\SettingUiControl.xaml"
                this.CloseButton.PreviewMouseDown += new System.Windows.Input.MouseButtonEventHandler(this.CloseButton_OnPreviewMouseDown);

            #line default
            #line hidden

            #line 34 "..\..\..\..\Xaml\Control\SettingUiControl.xaml"
                this.CloseButton.PreviewMouseUp += new System.Windows.Input.MouseButtonEventHandler(this.CloseButton_OnPreviewMouseUp);

            #line default
            #line hidden
                return;

            case 4:
                this.GithubButton = ((CatTimer_WpfProject.ButtonControl)(target));
                return;

            case 5:
                this.StaffButton = ((CatTimer_WpfProject.ButtonControl)(target));
                return;

            case 6:
                this.TitleBorder = ((System.Windows.Controls.Border)(target));
                return;

            case 7:
                this.IsHaveAudioCheckBoxControl = ((CatTimer_WpfProject.CheckBoxControl)(target));
                return;

            case 8:
                this.LanguageToggleControl = ((CatTimer_WpfProject.ToggleControl)(target));
                return;

            case 9:
                this.LanguageGrid = ((System.Windows.Controls.Grid)(target));
                return;

            case 10:
                this.ChineseButtonControl = ((CatTimer_WpfProject.ButtonControl)(target));
                return;

            case 11:
                this.EnglishButtonControl = ((CatTimer_WpfProject.ButtonControl)(target));
                return;

            case 12:
                this.StaffPopup = ((System.Windows.Controls.Primitives.Popup)(target));

            #line 144 "..\..\..\..\Xaml\Control\SettingUiControl.xaml"
                this.StaffPopup.MouseEnter += new System.Windows.Input.MouseEventHandler(this.StaffButton_OnMouseEnter);

            #line default
            #line hidden

            #line 145 "..\..\..\..\Xaml\Control\SettingUiControl.xaml"
                this.StaffPopup.MouseLeave += new System.Windows.Input.MouseEventHandler(this.StaffButton_OnMouseLeave);

            #line default
            #line hidden
                return;

            case 13:
                this.StaffBorder = ((System.Windows.Controls.Border)(target));
                return;
            }
            this._contentLoaded = true;
        }
コード例 #4
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:

            #line 12 "..\..\MainWindow.xaml"
                ((CatTimer_WpfProject.MainWindow)(target)).Loaded += new System.Windows.RoutedEventHandler(this.MainWindow_OnLoaded);

            #line default
            #line hidden

            #line 13 "..\..\MainWindow.xaml"
                ((CatTimer_WpfProject.MainWindow)(target)).PreviewKeyDown += new System.Windows.Input.KeyEventHandler(this.MainWindow_OnPreviewKeyDown);

            #line default
            #line hidden
                return;

            case 2:
                this.taskbarItemInfo = ((System.Windows.Shell.TaskbarItemInfo)(target));
                return;

            case 3:
                this.ClockUserControl = ((CatTimer_WpfProject.ClockControl)(target));
                return;

            case 4:
                this.PausedUiUserControl = ((CatTimer_WpfProject.PausedUiControl)(target));
                return;

            case 5:
                this.BlackCatUserControl = ((CatTimer_WpfProject.BlackCatControl)(target));
                return;

            case 6:
                this.YellowCatUserControl = ((CatTimer_WpfProject.YellowCatControl)(target));
                return;

            case 7:
                this.TimingUserControl = ((CatTimer_WpfProject.TimingControl)(target));
                return;

            case 8:
                this.SettingUiUserControl = ((CatTimer_WpfProject.SettingUiControl)(target));
                return;

            case 9:
                this.WindowTitleBorder = ((System.Windows.Controls.Border)(target));

            #line 82 "..\..\MainWindow.xaml"
                this.WindowTitleBorder.MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.WindowTitleBorder_MouseLeftButtonDown);

            #line default
            #line hidden
                return;

            case 10:
                this.SettingToggleControl = ((CatTimer_WpfProject.ToggleControl)(target));
                return;

            case 11:
                this.MinimumWindowButtonControl = ((CatTimer_WpfProject.ButtonControl)(target));
                return;

            case 12:
                this.CloseWindowButtonControl = ((CatTimer_WpfProject.ButtonControl)(target));
                return;
            }
            this._contentLoaded = true;
        }