A thicker ProgressBar in WP7, how?

后端 未结 2 1023
灰色年华
灰色年华 2021-02-10 00:16

im making an app who have a counter and a progressbar representing the time left, so if the counter reaches its 50%, the progressbar value is 50. So far so good, I make a progre

2条回答
  •  谎友^
    谎友^ (楼主)
    2021-02-10 01:00

    This can be done in the progress bar's style.

    In the default progress bar's style, you need to

    • Add a Height to ProgressBar style, say 30.
    • Increase the Height of two Rectangles ProgressBarTrack and ProgressBarIndicator to 24. They are inside the ProgressBar's ControlTemplate.
    • Increase the Height of HorizontalThumb to 24. It's inside the PhoneProgressBarSliderStyle.
    • In PhoneProgressBarSliderThumb ConttrolTemplate, increase both the Rectangle's Width and Height to 24.

    Here is all styles just in case.:)

        
            
        
        
        
    

提交回复
热议问题