Consider the following, simple code: XAML: <Grid Height=\"60\" Name=\"grid\"> <Grid.ColumnDefinitions>
I have a custom line shape with start and end point. The ActualWidth and ActualHeight properties however do not return the correct value, that is the difference between the points. Is there a way to o
I am trying to get the width and height of a Silverlight ComboBox\'s dropdown window. Unfortunately ActualWidth 开发者_JS百科and ActualHeight are returning 0 always.<ComboBox x:Name=\"comboBox\" He
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.
In WPF how can I find the size of a DevExpress BaseLayoutItem? It开发者_如何学Python inherits from ContentElement so has no ActualHeight or ActualWidth.We will post the answer to this question at:
I want to add WPF Path to InkCanvas and use selection to select WPF Path. So, I use this code. System.Windows.Shapes.Path path = drawCanvas.Children[i] as System.Windows.Shapes.Path;
I have a user control which has a Canvas of height 100 and width 1920. At the loading of the control, I go to an external source, download a text file and add TextBlocks to the Canvas. Then I want to
This question already has answers here: Pushing read-only GUI properties back into ViewModel (6 answers)
popUpControl and listBoxControl below are returning NaN as the height and width. The ActualHeight is also 0.0
I tried to create a custom control, having a semitransparent rounded background: <Canvas> <TextBlock x:Name=\"StopText\" Text=\"Some test text\"/>