How to create a Circular Style ProgressBar

前端 未结 4 450
轮回少年
轮回少年 2020-12-12 20:59

I need help on implementing a circular progress bar like this:

\"CircularProgressbar\"

How should I imp

4条回答
  •  长情又很酷
    2020-12-12 21:34

    Have you looked at ValueConverters? You can bind to the Value property in the template using TemplateBinding and use an appropriate value converter to change the value to whats is useful for a Circular progress bar.

    EDIT:

    In the template:

    1. Add a circle fill with yellow.

    2. Add another circle on top with color orange.

    3. Use a value converter(or multi value converter) to return a clipping geometry (using arc segment possibly) for the circle added in 2.

    4. Clip the circle in 2. with geometry returned in 3.

    5. Downvoter gives me my repz back.

提交回复
热议问题