Is it possible in WPF to embed a ProgressBar in the Background of a TextBox?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Yes, but there are varying levels of integration you could achieve.
The simplest way would be to host a
ProgressBarandTextBoxwith see-through background in the sameGrid:Importantly, the background color is transparent but visible to hit testing. #00000000 would not work as expected because clicking on the
TextBoxwould actually be clicking on theProgressBar.You could also retemplate the
TextBoxto incorporate theProgressBarmore intrinsically into its template. However, this would be of limited use unless you wrote your own control while you’re at it.