public FramelessManager(SatelliteApplicationForm form)
        {
            _alwaysShowFrame = AlwaysShowFrame;

            _form = form;

            minMaxClose = new MinMaxClose();
            minMaxClose.Anchor = AnchorStyles.Top | AnchorStyles.Right;
            _form.Controls.Add(minMaxClose);

            _mouseFrameTimer = new Timer();
            _mouseFrameTimer.Interval = 100;
            _mouseFrameTimer.Tick += new EventHandler(_mouseFrameTimer_Tick);

            _commandShowMenu = new Command(CommandId.ShowMenu);
            _commandShowMenu.Latched = AlwaysShowFrame;
            _commandShowMenu.Execute += new EventHandler(commandShowMenu_Execute);
            // JJA: no longer provide a frameless option
            //ApplicationManager.CommandManager.Add(_commandShowMenu);

            ColorizedResources.GlobalColorizationChanged += new EventHandler(ColorizedResources_GlobalColorizationChanged);

            _form.Layout += new LayoutEventHandler(_form_Layout);
            _form.Activated += new EventHandler(_form_Activated);
            _form.Deactivate += new EventHandler(_form_Deactivate);
            _form.SizeChanged += new EventHandler(_form_SizeChanged);
            _form.MouseDown +=new MouseEventHandler(_form_MouseDown);
            _form.DoubleClick +=new EventHandler(_form_DoubleClick);
            _form.Disposed += new EventHandler(_form_Disposed);

            AlwaysShowFrameChanged += new EventHandler(FramelessManager_AlwaysShowFrameChanged);

            _uiTheme = new UITheme(form);
        }
        public SectionHeaderControl()
        {
            TabStop = false;
            SetStyle(ControlStyles.SupportsTransparentBackColor, true);
            AccessibleRole = AccessibleRole.Grouping;

            _uiTheme = new UITheme(this);
            _font = Res.GetFont(FontSize.Large, FontStyle.Regular);
        }
示例#3
0
        public SettingData()
        {
            
            IsNotificationEnable = true;
            IsInternalNotification = true;
            IsToastNotification = false;
            IsSoundEnable = true;
            AppTheme = new UITheme();
            Footer = "";
            IsRoseVisible = true;
            
            
            SettingInitialize();

        }
 public SectionHeader(Control parent, string caption, Color endColor)
     : base(parent)
 {
     Caption = caption ;
     _endColor = endColor ;
     _uiTheme = new UITheme(parent, endColor);
 }
        public SidebarLinkLabel()
        {
            SetStyle(ControlStyles.SupportsTransparentBackColor, true);
            BackColor = Color.Transparent ;
            FlatStyle = FlatStyle.System ;
            Cursor = Cursors.Hand ;
            UseMnemonic = false ;
            AutoEllipsis = true ;
            LinkColor = SystemColors.HotTrack;
            ActiveLinkColor = SystemColors.HotTrack;

            _uiTheme = new UITheme(this);
        }
 public InsertImageTabControl() : base()
 {
     _uiTheme = new UITheme(this);
 }
 public SectionHeader()
 {
     _uiTheme = new UITheme(this);
 }
示例#8
0
 public static void SetTheme(DependencyObject obj, UITheme value)
 {
     obj.SetValue(ThemeProperty, value);
 }