开发者

wp7 change background color of control on control disable

开发者 https://www.devze.com 2023-04-02 13:05 出处:网络
i want to change the backgroundcolor of a datepicker when it is disable. i tried to change the background but

i want to change the backgroundcolor of a datepicker when it is disable.

i tried to change the background but

it is n开发者_StackOverflow社区ot changing when it is disabled

how to change it?


If you use Expression Blend to edit the Control template of the DatePicker, then find the Button inside the template and edit it's template. With the template selected open the 'states' panel, select the disabled state and edit the ButtonBackground's background brush property to your desired colour.

0

精彩评论

暂无评论...
验证码 换一张
取 消