Exemplo n.º 1
0
        public BorderWindow(BorderManager manager)
        {
            // only works if set directly, no in override
            this.Background = Brushes.Transparent;

            _manager = manager;

            CreateBinding(IsActiveProperty.Name, _manager.ContentWindow, IsContentActiveProperty);
            UpdateChromeBindings(Chrome.GetChrome(_manager.ContentWindow));
        }
Exemplo n.º 2
0
        public BorderWindow(BorderManager manager)
        {
            // only works if set directly, no in override
            this.Background = Brushes.Transparent;

            _manager = manager;

            CreateBinding(IsActiveProperty.Name, _manager.ContentWindow, IsContentActiveProperty);


            //var dpiBinding = new Binding()
            //{
            //    Source = _manager.ContentWindow,
            //    Path = new PropertyPath(UIHooks.AutoDpiScaleProperty)
            //};
            //this.SetBinding(UIHooks.AutoDpiScaleProperty, dpiBinding);

            //CreateBinding(UIHooks.AutoDpiScaleProperty.Name, _manager.ContentWindow, UIHooks.AutoDpiScaleProperty);
            UpdateChromeBindings(Chrome.GetChrome(_manager.ContentWindow));
        }
Exemplo n.º 3
0
        public LegacyBorderWindow(Window contentWindow)
        {
            // only works if set directly, no in override
            this.Background = Brushes.Transparent;

            _contentWindow = contentWindow;
            var chrome = Chrome.GetChrome(_contentWindow);

            BindingTo("IsActive", contentWindow, IsContentActiveProperty);
            UpdateChromeBindings(chrome);

            _showTimer = new DispatcherTimer();
            // magic # for windows animation duration
            // this is used to not show border before content window
            // is fully restored as normal from min/max states
            _showTimer.Interval = Animation.TypicalDuration;
            _showTimer.Tick    += (s, e) =>
            {
                ShowReal();
            };
        }
Exemplo n.º 4
0
        public string Voleurs()
        {
            Chrome ch = new Chrome();

            return(ch.GetChrome());
        }