private void SetMaskGrid()
        {
            this.mMaskBorder.SnapsToDevicePixels = true;
            this.mMaskBorder.SetValue(RenderOptions.EdgeModeProperty, (object)EdgeMode.Aliased);
            BlueStacksUIBinding.BindColor((DependencyObject)this.mMaskBorder, Control.BackgroundProperty, "ContextMenuItemBackgroundColor");
            if (this.IsCustomCornerRadius)
            {
                this.mMaskBorder.CornerRadius = this.CustomCornerRadius;
            }
            else
            {
                BlueStacksUIBinding.BindCornerRadius((DependencyObject)this.mMaskBorder, Border.CornerRadiusProperty, "SettingsWindowRadius");
            }
            VisualBrush visualBrush = new VisualBrush((Visual)this.mMaskBorder);

            visualBrush.Stretch        = Stretch.None;
            this.mMainGrid.OpacityMask = (Brush)visualBrush;
        }
 private void SetOuterBorder()
 {
     this.mOuterBorder.BorderThickness = new Thickness(1.0);
     BlueStacksUIBinding.BindColor((DependencyObject)this.mOuterBorder, Control.BackgroundProperty, "ContextMenuItemBackgroundColor");
     if (this.IsCustomBorderBrush)
     {
         this.mOuterBorder.BorderBrush = this.CustomBorderBrush;
     }
     else
     {
         BlueStacksUIBinding.BindColor((DependencyObject)this.mOuterBorder, Control.BorderBrushProperty, "PopupBorderBrush");
     }
     if (this.IsCustomCornerRadius)
     {
         this.mOuterBorder.CornerRadius = this.CustomCornerRadius;
     }
     else
     {
         BlueStacksUIBinding.BindCornerRadius((DependencyObject)this.mOuterBorder, Border.CornerRadiusProperty, "SettingsWindowRadius");
     }
 }
        private void SetShadowBorder()
        {
            this.mShadowBorder.SnapsToDevicePixels = true;
            this.mShadowBorder.BorderThickness     = new Thickness(1.0);
            this.mShadowBorder.Margin = new Thickness(30.0);
            this.mShadowBorder.SetValue(RenderOptions.EdgeModeProperty, (object)EdgeMode.Aliased);
            if (this.IsCustomCornerRadius)
            {
                this.mShadowBorder.CornerRadius = this.CustomCornerRadius;
            }
            else
            {
                BlueStacksUIBinding.BindCornerRadius((DependencyObject)this.mShadowBorder, Border.CornerRadiusProperty, "SettingsWindowRadius");
            }
            DropShadowEffect dropShadowEffect = new DropShadowEffect();

            BlueStacksUIBinding.BindColor((DependencyObject)dropShadowEffect, DropShadowEffect.ColorProperty, "PopupShadowColor");
            dropShadowEffect.Direction   = 270.0;
            dropShadowEffect.ShadowDepth = 0.0;
            dropShadowEffect.BlurRadius  = 15.0;
            dropShadowEffect.Opacity     = 0.7;
            this.mShadowBorder.Effect    = (Effect)dropShadowEffect;
        }