Okay, this is a really ridiculous problem for me because I had it working perfectly before. In my program I have CheckBoxes
with text. The Content
of these CheckBoxes
are connected to strings
located in Resource Dictionaries by DynamicResource
.
My problem is that when the Content
of these CheckBoxes
changes, sometimes the text gets cut off, like so:
In the past, I believe this problem was solved by setting the Width
property to auto
. All of these CheckBoxes
have their Width
set to auto
, but still get cut off. How do I make it so that the Width
of the text is dynamic?
Note: This problem developed after I moved the CheckBoxes
. They were working fine before.
EDIT: I've also tried removing Width
all together, but I think that has the same effect as setting Width
to auto
.
I found out through @WonkotheSane's comment that I was accidentally placing the CheckBoxes
outside of the Grid
that they were in when I moved them. To correct the problem all I had to do was make sure that the CheckBoxes
remained in the Grid
.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.