Example #1
0
        public BlurHelper(CommandBar element)
        {
            _hostBackdrop = false;
            _element      = new Grid
            {
                HorizontalAlignment = HorizontalAlignment.Stretch,
                VerticalAlignment   = VerticalAlignment.Stretch
            };
            var background = (element.GetDescendants().First() as Panel);

            background.Background = new SolidColorBrush(Color.FromArgb(0x7f, 0, 0, 0));
            background.Children.Add(_element);
            BlurifyWithHostBackdrop();
        }