static Window CreateSplashScreenWindow(object parameter)
        {
            object[]             parameters    = (object[])parameter;
            bool                 useFadeEffect = (bool)parameters[0];
            SplashScreenOwner    owner         = (SplashScreenOwner)parameters[1];
            SplashScreenLocation childLocation = (SplashScreenLocation)parameters[2];
            bool                 lockWindow    = (bool)parameters[3];

            return(new LoadingDecoratorWindow(useFadeEffect, owner, childLocation, lockWindow));
        }
            public WindowArranger(SplashScreenOwner parent, SplashScreenLocation childLocation)
            {
                if (parent == null)
                {
                    throw new ArgumentNullException("parent");
                }

                this.childLocation = childLocation;
                this.parent        = parent;
                if (parent.IsInitialized)
                {
                    ParentInitializationComplete();
                }
                else
                {
                    parent.Initialized += OnParentInitialized;
                }
            }
Example #3
0
 public WindowArrangerContainer(DependencyObject parentObject, SplashScreenLocation arrangeLocation)
     : base(parentObject)
 {
     this.arrangeLocation = arrangeLocation;
 }
Example #4
0
 protected internal WindowArrangerBase(WindowArrangerContainer parent, SplashScreenLocation childLocation, SplashScreenArrangeMode arrangeMode)
 {
     this.childLocation = childLocation;
     this.arrangeMode   = arrangeMode;
     AttachParent(parent);
 }
Example #5
0
 protected internal WindowArranger(WindowArrangerContainer parent, SplashScreenLocation childLocation, SplashScreenArrangeMode arrangeMode)
     : base(parent, childLocation, arrangeMode)
 {
 }
            public WindowArranger(SplashScreenOwner parent, SplashScreenLocation childLocation) {
                if(parent == null)
                    throw new ArgumentNullException("parent");

                this.childLocation = childLocation;
                this.parent = parent;
                if(parent.IsInitialized)
                    ParentInitializationComplete();
                else
                    parent.Initialized += OnParentInitialized;
            }
 void CreateArranger(SplashScreenOwner parentContainer, SplashScreenLocation childLocation) {
     arranger = new WindowArranger(parentContainer, childLocation);
     arranger.ParentClosed += OnParentWindowClosed;
     arranger.AttachChild(this);
 }
 public LoadingDecoratorWindow(bool useFadeEffect, SplashScreenOwner parentContainer, SplashScreenLocation childLocation, bool lockParent) {
     WindowStyle = WindowStyle.None;
     AllowsTransparency = true;
     ShowInTaskbar = false;
     Background = new SolidColorBrush(Colors.Transparent);
     SizeToContent = SizeToContent.WidthAndHeight;
     WindowStartupLocation = WindowStartupLocation.Manual;
     Left = parentContainer.ControlStartupPosition.Left;
     Top = parentContainer.ControlStartupPosition.Top;
     Width = parentContainer.ControlStartupPosition.Width;
     Height = parentContainer.ControlStartupPosition.Height;
     Topmost = false;
     ShowActivated = false;
     IsHitTestVisible = false;
     Focusable = false;
     CreateArranger(parentContainer, childLocation);
     CreateLocker(parentContainer, lockParent);
     WindowFadeAnimationBehavior.SetEnableAnimation(this, useFadeEffect);
     Loaded += OnWindowLoaded;
 }
 void CreateArranger(SplashScreenOwner parentContainer, SplashScreenLocation childLocation)
 {
     arranger = new WindowArranger(parentContainer, childLocation);
     arranger.ParentClosed += OnParentWindowClosed;
     arranger.AttachChild(this);
 }
 public LoadingDecoratorWindow(bool useFadeEffect, SplashScreenOwner parentContainer, SplashScreenLocation childLocation, bool lockParent)
 {
     WindowStyle           = WindowStyle.None;
     AllowsTransparency    = true;
     ShowInTaskbar         = false;
     Background            = new SolidColorBrush(Colors.Transparent);
     SizeToContent         = SizeToContent.WidthAndHeight;
     WindowStartupLocation = WindowStartupLocation.Manual;
     Left             = parentContainer.ControlStartupPosition.Left;
     Top              = parentContainer.ControlStartupPosition.Top;
     Width            = parentContainer.ControlStartupPosition.Width;
     Height           = parentContainer.ControlStartupPosition.Height;
     Topmost          = false;
     ShowActivated    = false;
     IsHitTestVisible = false;
     Focusable        = false;
     CreateArranger(parentContainer, childLocation);
     CreateLocker(parentContainer, lockParent);
     WindowFadeAnimationBehavior.SetEnableAnimation(this, useFadeEffect);
     Loaded += OnWindowLoaded;
 }