Forum Discussion

leandropoblet's avatar
leandropoblet
Frequent Contributor
12 years ago

Test labels' content is displayed properly (WPF)

Hi,



I'm trying to find a way to determine if some labels are showing its content properly (all the content visible).



For example in a grid header I'd like to test if the label is shown completely or if its truncated (shrinked).



Ex:  (correct)

|Status|

|            |

|            |

|            |



as oposed to: (fail to display the whole word)

|Stat|

|       |

|       |

|       |



I tried VisibleOnScreen but it doesn't fail on shrinked labels since they are partially visible.



Cheers,

Leandro



13 Replies