Quantcast
Channel: WPF label and textbox width
Browsing all 5 articles
Browse latest View live

WPF label and textbox width

UpdateLayout did the trick, thanks.

View Article



WPF label and textbox width

The width will not change untill another layout pass happens (when the function ends the UI will update).  You will have to force this update if you want it immediately.  You can look into the Measure...

View Article

WPF label and textbox width

I just had a button to show me this:MessageBox.Show(labeltext.ActualWidth.ToString()); labeltext.Content = "test test"; MessageBox.Show(labeltext.ActualWidth.ToString()); The width that was returned...

View Article

WPF label and textbox width

Can you show the code that you are using to see if the width expands ?And maybe you should use the label.SizeChanged event to update the value instead.Developing is part of being a developer.

View Article

WPF label and textbox width

Hello,Whenever I change my textbox/label from the code behind, the width doesn't update until my function stops running.For example:if label.content="test"and the width returned was 50,then I change...

View Article

Browsing all 5 articles
Browse latest View live




Latest Images