I need to get WPF control height to calculate my upper top control field, but when I try to get control height using textbox1.height , it returns βAutoβ, not number
textbox1.height
What can I do to get the control height when it is set to "Auto"?
You should try the following:
textBox1.ActualHeight
Notes (by @Viv)
just make sure that when you request textBox1.ActualHeight, you do this when the control is Loaded. You will get 0.0 if you check ActualHeight before it is configured correctly
Source: https://habr.com/ru/post/1488181/More articles:overflow-y: hidden iOS issue with internal scroll div - javascriptProblem with KDbg debugger and assembly - assemblyHow to enable asp.net in iis8 - asp.netSqlDataReader and concurrency database access - c #Are there any interpreted languages ββin which you can dynamically modify the interpreter? - language-agnosticHow to check something is identical to NaN? - javascriptSetting up sessions in an express application in several dynos heroku applications - node.jsClang does not allow static_cast to the parent class with the template, and g ++ and icc allow - c ++ 11Circular movement in jQuery? - jqueryDatagridview binding source filter - c #All Articles