Esempio n. 1
0
        private FrameworkElement CreateBusyIndicator()
        {
            var fluidProgressBar = new FluidProgressBar
            {
                HorizontalContentAlignment = HorizontalAlignment.Stretch,
                Foreground = _foreground
            };

            var grid = new Grid
            {
                Width = ActualWidth,
                HorizontalAlignment = HorizontalAlignment.Stretch
            };

            grid.Children.Add(fluidProgressBar);

            _grid = grid;

            return(grid);
        }
Esempio n. 2
0
        private FrameworkElement CreateBusyIndicator()
        {
            _fluidProgressBar = new FluidProgressBar
            {
                HorizontalContentAlignment = HorizontalAlignment.Stretch,
                VerticalAlignment          = VerticalAlignment.Center,
                Foreground = _fluidProgressBarForeground
            };

            var grid = new Grid
            {
                Width  = ActualWidth,
                Height = ActualHeight,
                HorizontalAlignment = HorizontalAlignment.Stretch,
                VerticalAlignment   = VerticalAlignment.Center
            };

            grid.Children.Add(_fluidProgressBar);

            _grid = grid;

            return(grid);
        }