Exemplo n.º 1
0
 static Pie()
 {
     //StretchProperty.OverrideMetadata(typeof(Pie), new FrameworkPropertyMetadata(Stretch.None));
     StrokeProperty.OverrideMetadata(typeof(Pie), new FrameworkPropertyMetadata(Brushes.Gray));
     StrokeThicknessProperty.OverrideMetadata(typeof(Pie), new FrameworkPropertyMetadata(1d));
     FillProperty.OverrideMetadata(typeof(Pie), new FrameworkPropertyMetadata(Brushes.LightGray));
 }
Exemplo n.º 2
0
        static CircularProgress()
        {
            var myGreenBrush = new SolidColorBrush(Color.FromArgb(255, 6, 176, 37));

            myGreenBrush.Freeze();

            StrokeProperty.OverrideMetadata(typeof(CircularProgress), new FrameworkPropertyMetadata(myGreenBrush));
            FillProperty.OverrideMetadata(typeof(CircularProgress), new FrameworkPropertyMetadata(myGreenBrush));
        }
Exemplo n.º 3
0
        static ProgressCircle()
        {
            Brush myGreenBrush = new SolidColorBrush(Colors.CadetBlue);

            myGreenBrush.Freeze();

            StrokeProperty.OverrideMetadata(typeof(ProgressCircle), new FrameworkPropertyMetadata(myGreenBrush));
            FillProperty.OverrideMetadata(typeof(ProgressCircle), new FrameworkPropertyMetadata(Brushes.Transparent));
            StrokeThicknessProperty.OverrideMetadata(typeof(ProgressCircle), new FrameworkPropertyMetadata(10.0));
        }
Exemplo n.º 4
0
        static CircularProgress()
        {
            Brush myGreenBrush = new SolidColorBrush(Color.FromArgb(255, 6, 176, 37));

            myGreenBrush.Freeze();

            StrokeProperty.OverrideMetadata(typeof(CircularProgress), new FrameworkPropertyMetadata(myGreenBrush));
            FillProperty.OverrideMetadata(typeof(CircularProgress), new FrameworkPropertyMetadata(Brushes.Transparent));

            StrokeThicknessProperty.OverrideMetadata(typeof(CircularProgress), new FrameworkPropertyMetadata(25.0));
        }
        static AwesomeProgressBar()
        {
            Brush Brush = new SolidColorBrush((Color)ColorConverter.ConvertFromString("#373542"));

            Brush.Freeze();

            StrokeProperty.OverrideMetadata(
                typeof(AwesomeProgressBar),
                new FrameworkPropertyMetadata(Brush));
            FillProperty.OverrideMetadata(
                typeof(AwesomeProgressBar),
                new FrameworkPropertyMetadata(Brushes.Transparent));

            StrokeThicknessProperty.OverrideMetadata(
                typeof(AwesomeProgressBar),
                new FrameworkPropertyMetadata(5.0));
        }
Exemplo n.º 6
0
        static CircularProgress()
        {
            Brush brush = new SolidColorBrush(System.Windows.Media.Color.FromArgb(255, 6, 176, 37));

            brush.Freeze();

            StrokeProperty.OverrideMetadata(
                typeof(CircularProgress),
                new FrameworkPropertyMetadata(brush));
            FillProperty.OverrideMetadata(
                typeof(CircularProgress),
                new FrameworkPropertyMetadata(Brushes.Transparent));

            StrokeThicknessProperty.OverrideMetadata(
                typeof(CircularProgress),
                new FrameworkPropertyMetadata(10.0));
        }
Exemplo n.º 7
0
 static OutlinedText()
 {
     FillProperty.OverrideMetadata(typeof(OutlinedText), new FrameworkPropertyMetadata(Brushes.White, FrameworkPropertyMetadataOptions.AffectsRender));
     StrokeProperty.OverrideMetadata(typeof(OutlinedText), new FrameworkPropertyMetadata(Brushes.Black, FrameworkPropertyMetadataOptions.AffectsRender));
 }