Custom drawing ToggleButton when checked
-
Hi. I have a request to change the look of our TogggleButton. I'm not sure what to search for on the internet. Instead of changing the background color when the TogggleButton is checked, I would need to have a line under it. See imgur image : [togglebutton - Album on Imgur](https://imgur.com/a/QGrR9BW) I know how to use ControlTemplates (with Storyboard and Coloranimation with the EnterActions and ExitActions) to change the background. But I'm not sure how to do this for BorderThickness or if there is something better I could use. Thanks for hints or tips or any "google search" I can do
CI/CD = Continuous Impediment/Continuous Despair
-
Hi. I have a request to change the look of our TogggleButton. I'm not sure what to search for on the internet. Instead of changing the background color when the TogggleButton is checked, I would need to have a line under it. See imgur image : [togglebutton - Album on Imgur](https://imgur.com/a/QGrR9BW) I know how to use ControlTemplates (with Storyboard and Coloranimation with the EnterActions and ExitActions) to change the background. But I'm not sure how to do this for BorderThickness or if there is something better I could use. Thanks for hints or tips or any "google search" I can do
CI/CD = Continuous Impediment/Continuous Despair
Use a one sided border:
Toggle the visibility of the border, the Brush (Transparent), or change the thickness - based on "Checked".
"Before entering on an understanding, I have meditated for a long time, and have foreseen what might happen. It is not genius which reveals to me suddenly, secretly, what I have to say or to do in a circumstance unexpected by other people; it is reflection, it is meditation." - Napoleon I
-
Use a one sided border:
Toggle the visibility of the border, the Brush (Transparent), or change the thickness - based on "Checked".
"Before entering on an understanding, I have meditated for a long time, and have foreseen what might happen. It is not genius which reveals to me suddenly, secretly, what I have to say or to do in a circumstance unexpected by other people; it is reflection, it is meditation." - Napoleon I
Just found out we already have an in-house style for that in one of our dependency. :-D Thanks.
CI/CD = Continuous Impediment/Continuous Despair