Example #1
0
        void PreviewForm_PressedButtonChanged(object sender, EventArgs e)
        {
            var tb = (RibbonToggleButton)sender;

            _themeColor = (ThemeColor)tb.PressedButton.Tag;
            RibbonStyle.UpdateInstance(_themeColor, ThemeLightness.Colorful);
        }
Example #2
0
        static PreviewForm()
        {
            RibbonStyle.UpdateInstance(ThemeColor.Teal, ThemeLightness.LightGray);

            _isWindows10 = CheckWindows10();
            _exePath     = Application.ExecutablePath;
        }
Example #3
0
        static PreviewForm()
        {
            RibbonStyle.UpdateInstance(DefaultThemeColor, ThemeLightness.Colorful);
            var ipStyle = (C1.Win.InputPanel.ThemeColor)((int)DefaultThemeColor);

            C1.Win.InputPanel.InputStyle.UpdateInstance(ipStyle, C1.Win.InputPanel.ThemeLightness.LightGray);

            var ov = new OSVERSIONINFO();

            ov.dwOSVersionInfoSize = Marshal.SizeOf(typeof(OSVERSIONINFO));
            RtlGetVersion(ref ov);

            _exePath = Application.ExecutablePath;
        }
 public void SetRibbonStyle(RibbonStyle ribbonStyle)
 {
     CurrentOptions.RibbonStyle = ribbonStyle;
 }