public ShadowWindow(ModernChromeWindow owner, Dock direction)
        {
            if (owner == null)
            {
                throw new ArgumentNullException(nameof(owner));
            }

            ResizeMode         = ResizeMode.NoResize;
            WindowStyle        = WindowStyle.None;
            AllowsTransparency = true;

            _targetWindow = owner;
            Owner         = owner;

            ShowInTaskbar = false;

            ActiveBorderBrush   = _targetWindow.ActiveShadowColor ?? Brushes.Black;
            InactiveBorderBrush = _targetWindow.InactiveShadowColor ?? Brushes.DarkGray;

            Foreground = IsActive ? ActiveBorderBrush : InactiveBorderBrush;
            _direction = direction;

            Height = _targetWindow.Height;
            Width  = _targetWindow.Width;
            Top    = _targetWindow.Top;
            Left   = _targetWindow.Left;
        }
        protected ChromeWindowBorders(ModernChromeWindow owner)
        {
            if (owner == null)
                throw new ArgumentNullException("owner");

            ResizeMode = ResizeMode.NoResize;
            WindowStyle = WindowStyle.None;
            AllowsTransparency = true;

            _targetWindow = owner;

            ActiveBorderBrush = _targetWindow.ActiveBorderColor ?? Brushes.Black;
            InactiveBorderBrush = _targetWindow.InactiveBorderColor ?? Brushes.DarkGray;

            Foreground = IsActive ? ActiveBorderBrush : InactiveBorderBrush;
        }
Exemplo n.º 3
0
        protected ChromeWindowBorders(ModernChromeWindow owner)
        {
            if (owner == null)
            {
                throw new ArgumentNullException("owner");
            }

            ResizeMode         = ResizeMode.NoResize;
            WindowStyle        = WindowStyle.None;
            AllowsTransparency = true;

            _targetWindow = owner;

            ActiveBorderBrush   = _targetWindow.ActiveBorderColor ?? Brushes.Black;
            InactiveBorderBrush = _targetWindow.InactiveBorderColor ?? Brushes.DarkGray;

            Foreground = IsActive ? ActiveBorderBrush : InactiveBorderBrush;
        }
        public ShadowWindow(ModernChromeWindow owner, Dock direction)
        {
            if (owner == null)
                throw new ArgumentNullException(nameof(owner));

            ResizeMode = ResizeMode.NoResize;
            WindowStyle = WindowStyle.None;
            AllowsTransparency = true;

            _targetWindow = owner;
            Owner = owner;

            ShowInTaskbar = false;

            ActiveBorderBrush = _targetWindow.ActiveShadowColor ?? Brushes.Black;
            InactiveBorderBrush = _targetWindow.InactiveShadowColor ?? Brushes.DarkGray;

            Foreground = IsActive ? ActiveBorderBrush : InactiveBorderBrush;
            _direction = direction;

            Height = _targetWindow.Height;
            Width = _targetWindow.Width;
            Top = _targetWindow.Top;
            Left = _targetWindow.Left;
        }