當前位置: 首頁>>代碼示例>>C#>>正文


C# Win32.UserPreferenceChangedEventArgs類代碼示例

本文整理匯總了C#中Microsoft.Win32.UserPreferenceChangedEventArgs的典型用法代碼示例。如果您正苦於以下問題:C# UserPreferenceChangedEventArgs類的具體用法?C# UserPreferenceChangedEventArgs怎麽用?C# UserPreferenceChangedEventArgs使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


UserPreferenceChangedEventArgs類屬於Microsoft.Win32命名空間,在下文中一共展示了UserPreferenceChangedEventArgs類的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。

示例1: SystemEvents_UserPreferenceChanged

 private void SystemEvents_UserPreferenceChanged(object sender, UserPreferenceChangedEventArgs e)
 {
     if (e.Category == UserPreferenceCategory.Window)
     {
         this.Font = SystemFonts.IconTitleFont;
     }
 }
開發者ID:ehershey,項目名稱:development,代碼行數:7,代碼來源:Form1.cs

示例2: SystemEvents_UserPreferenceChanged

 void SystemEvents_UserPreferenceChanged(object sender, UserPreferenceChangedEventArgs e)
 {
     if (e.Category == UserPreferenceCategory.Color)
     {
         this.OnSystemColorsChanged();
     }
 }
開發者ID:viticm,項目名稱:pap2,代碼行數:7,代碼來源:DiscoverRenderBase.cs

示例3: OnUserPreferenceChanged

 private void OnUserPreferenceChanged(object sender, UserPreferenceChangedEventArgs e)
 {
     if (((sender != null) && (e != null)) && (e.Category == UserPreferenceCategory.Accessibility))
     {
         this.OnPropertyChanged("HighContrast");
     }
 }
開發者ID:netonjm,項目名稱:WindowsPhone,代碼行數:7,代碼來源:SystemParametersProxy.cs

示例4: OnUserPreferenceChanged

 private static void OnUserPreferenceChanged(object sender, UserPreferenceChangedEventArgs e)
 {
     SetScheme();
     if (e.Category == UserPreferenceCategory.Color)
     {
         colorFreshnessKey = new object();
     }
 }
開發者ID:pritesh-mandowara-sp,項目名稱:DecompliedDotNetLibraries,代碼行數:8,代碼來源:ProfessionalColors.cs

示例5: SystemEvents_UserPreferenceChanged

 void SystemEvents_UserPreferenceChanged(object sender, UserPreferenceChangedEventArgs e)
 {
     // High contrast setting change is part of the Accessibility category.
     if (e.Category == UserPreferenceCategory.Accessibility)
     {
         OnAccessibilityUserPreferencesChanged();
     }
 }
開發者ID:gmilazzoitag,項目名稱:OpenLiveWriter,代碼行數:8,代碼來源:UserPreferencesMonitor.cs

示例6: OnUserPreferenceChanged

 private static void OnUserPreferenceChanged(object sender, UserPreferenceChangedEventArgs e)
 {
     if ((e.Category == UserPreferenceCategory.Color) && (menuBarBrush != null))
     {
         menuBarBrush.Dispose();
         menuBarBrush = null;
     }
 }
開發者ID:ikvm,項目名稱:webmatrix,代碼行數:8,代碼來源:MxTheme.cs

示例7: OnPreferenceChanged

        protected void OnPreferenceChanged(object sender, UserPreferenceChangedEventArgs e)
        {
            // Are we using the default menu or a user defined value?
            if (_defaultFont)
            {
                DefineFont(SystemInformation.MenuFont);

                Recalculate();
                Invalidate();
            }
        }
開發者ID:uvbs,項目名稱:Holodeck,代碼行數:11,代碼來源:MenuControl.cs

示例8: UserPreferenceChanged

 private void UserPreferenceChanged(object sender, UserPreferenceChangedEventArgs pref) {
     if (pref.Category == UserPreferenceCategory.Locale) {
        // We need to recreate the monthcalendar handle when the locale changes, because
         // the day names etc. are only updated on a handle recreate (comctl32 limitation).
         //
         RecreateHandle();
     }
 }
開發者ID:JianwenSun,項目名稱:cc,代碼行數:8,代碼來源:DateTimePicker.cs

示例9: SystemEvents_UserPreferenceChanged

 /// <summary>
 /// Invoked when the user changes system preferences.
 /// </summary>
 /// <param name="sender">The sender of the event</param>
 /// <param name="e">The event data</param>
 private void SystemEvents_UserPreferenceChanged(object sender, UserPreferenceChangedEventArgs e)
 {
     if (e.Category == UserPreferenceCategory.Locale)
     {
         CultureInfo.CurrentCulture.ClearCachedData();
         RefreshStrings();
     }
 }
開發者ID:Erls-Corporation,項目名稱:YAMA,代碼行數:13,代碼來源:MainWindow.xaml.cs

示例10: OnUserPreferenceChanged

 private void OnUserPreferenceChanged(object sender, UserPreferenceChangedEventArgs e)
 {
     if (e.Category == UserPreferenceCategory.Desktop)
     {
         OnDisplaySettingsChanged(sender, e);
     }
 }
開發者ID:ryguasu,項目名稱:windawesome,代碼行數:7,代碼來源:Windawesome.cs

示例11: OnPreferenceChanged

        protected void OnPreferenceChanged(object sender, UserPreferenceChangedEventArgs e)
        {
            if (_defaultBackColor)
            {
                _backColor = SystemColors.Control;
                PropogateNameValue(PropogateName.BackColor, (object)SystemColors.Control);
            }

            if (_defaultActiveColor)
            {
                _activeColor = SystemColors.ActiveCaption;
                PropogateNameValue(PropogateName.ActiveColor, (object)SystemColors.ActiveCaption);
            }

            if (_defaultActiveTextColor)
            {
                _activeTextColor = SystemColors.ActiveCaptionText;
                PropogateNameValue(PropogateName.ActiveTextColor, (object)SystemColors.ActiveCaptionText);
            }

            if (_defaultInactiveTextColor)
            {
                _inactiveTextColor = SystemColors.ControlText;
                PropogateNameValue(PropogateName.InactiveTextColor, (object)SystemColors.ControlText);
            }

            if (_defaultResizeBarColor)
            {
                _resizeBarColor = SystemColors.Control;
                PropogateNameValue(PropogateName.ResizeBarColor, (object)SystemColors.Control);
            }

            if (_defaultCaptionFont)
            {
                _captionFont = SystemInformation.MenuFont;
                PropogateNameValue(PropogateName.CaptionFont, (object)SystemInformation.MenuFont);
            }

            if (_defaultTabControlFont)
            {
                _tabControlFont = SystemInformation.MenuFont;
                PropogateNameValue(PropogateName.TabControlFont, (object)SystemInformation.MenuFont);
            }
        }
開發者ID:uvbs,項目名稱:Holodeck,代碼行數:44,代碼來源:DockingManager.cs

示例12: OnUserPreferenceChanged

 private void OnUserPreferenceChanged(object sender, UserPreferenceChangedEventArgs e)
 {
     if (e.Category == UserPreferenceCategory.Color && !_customColors)
     {
         GetColorsFromSystem();
         _customColors = false;
     }
 }
開發者ID:javagg,項目名稱:DemoDock,代碼行數:8,代碼來源:RendererBase.cs

示例13: DesktopPreferenceChangedHandler

 /// <summary>
 /// Handler for UserPreferenceChangedEventArgs that updates the window display when the user modifies his or her desktop.
 /// Note: This does not detect taskbar changes when the taskbar is set to auto-hide.
 /// </summary>
 /// <param name="sender">The source of the event. When this event is raised by the SystemEvents class, this object is always null.</param>
 /// <param name="e">A UserPreferenceChangedEventArgs that contains the event data.</param>
 private void DesktopPreferenceChangedHandler(object sender, UserPreferenceChangedEventArgs e)
 {
     if (e.Category == UserPreferenceCategory.Desktop)
         this.UpdateWindowDisplayIfOpen(false);
 }
開發者ID:poros,項目名稱:whereless,代碼行數:11,代碼來源:SmallWindow.xaml.cs

示例14: OnUserPreferenceChanged

        private void OnUserPreferenceChanged(object sender, UserPreferenceChangedEventArgs e)
        {
            if (e.Category == UserPreferenceCategory.Color)
            {
                SetColor();
            }

            SetFonts();
        }
開發者ID:Cireson,項目名稱:EntityFramework6,代碼行數:9,代碼來源:TreeGridDesignerToolWindow.cs

示例15: OnUserPreferenceChanged

 private void OnUserPreferenceChanged(Object sender, UserPreferenceChangedEventArgs e)
 {
     if (e.Category == UserPreferenceCategory.Color)
     {
         bool infoMode;
         String newMessage = GetErrorMessage(out infoMode);
         OnBackgroundImageChange(newMessage, infoMode);
     }            
 }
開發者ID:iskiselev,項目名稱:JSIL.NetFramework,代碼行數:9,代碼來源:FormDesigner.cs


注:本文中的Microsoft.Win32.UserPreferenceChangedEventArgs類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。