ActualWidth is set by the rendering system, and may be different depending on the widths of other elements and overall size constraints. As a result, it can not be changed.
Questions tagged [actualwidth]
91 questions
0
votes
3 answers
getting the size of the combobox's popup at runtime
I am trying to get the width and height of a Silverlight ComboBox's dropdown window.
Unfortunately ActualWidth and ActualHeight are returning 0 always.

phm
- 1,160
- 1
- 17
- 29
0
votes
1 answer
Get column width if it is set to "2*" to Binding in xaml WPF?
I have StackPanel in the third column of Grid "MainGrid". It's(third column) width set to "2*".
I want to hide StackPanel using margin and then use slide animation to show it.
So i need to set Margin of StackPanel to Column[2] Width, but how can i…
0
votes
0 answers
ActualWidth always returns 0
The ActualWidth of StretchingGrid is always 0.
I tried a lot of solutions i found here (UpdateLayout(),....), but none of them worked for me.

David Aichinger
- 23
- 3
0
votes
1 answer
Determining the size of a UIElement in Silverlight
I have a StackPanel containing a number of UIElements (which have been constructed using a template in from a XAML file) that I wish to display.
To display it in the correctly I need to know its size.
Initially …

Dave W
- 1,061
- 3
- 16
- 29
0
votes
0 answers
How to pass ActualWidth of TextBox to Converter using TemplateBinding in WPF
I'm trying to pass ActualWidth of TextBox to Converter when binding using TemplateBinding. This is the XAML: