actualwidth Questions

3

Solved

I have a Grid inside a Canvas defined like this: <Canvas x:Name="outerCanvas"> <Grid Grid.Row="1" Name="cGrid" ShowGridLines="True" Width="{Binding Path=ActualWidth, RelativeSource={Rela...
Evelineevelinn asked 8/11, 2009 at 2:4

8

Solved

In a Silverlight 3.0 application I'm attempting to create a rectangle in a canvas and have it stretch the whole width of the canvas. I have attempted to do this by binding to the ActualWidth proper...
Sinker asked 21/10, 2009 at 16:55

3

Solved

TextBlock tbl= new TextBlock(); tbl.text="Kishore"; double x=tbl.ActualHeight; double y=tbl.ActualWidth; If i execute the code from the loaded event in Metro - winRT will return 0 for both. How...
Encephalomyelitis asked 11/5, 2012 at 17:32

3

I a grid on my silverlight control, I am programatically adding a canvas, and in the canvas I am loading and displaying Image. I'm also adding a rotation to the canvas. The problem is that by defa...
Flagwaving asked 10/8, 2009 at 20:1

7

Solved

I am currently working with Panels in WPF, and I noticed that as regards the Width and Height properties, there are also two other properties called ActualWidth and ActualHeight. ActualWidth ...
Larue asked 3/3, 2009 at 19:42

1

Solved

Consider the following: Let's say the Window is 1024x768 and the ViewBox fills the entire window, this means the TextBox is really large on the screen. I want to get the size of the Tex...
Likker asked 22/1, 2010 at 19:3

1

Solved

Why can't I refer to ActualWidth as a value from, which I was able to use in code. XAML: <StackPanel> <Button x:Name="cmdVibrate" HorizontalAlignment="Center"> <Button.Trigger...
Acescent asked 1/3, 2011 at 11:58

2

Solved

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; drawCanvas....
Stereotomy asked 5/1, 2011 at 4:18

4

Solved

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...
Fillet asked 21/12, 2010 at 10:40

2

I want to bind a read-only property of a control to my view model so that the value is available in the view model. What is the best way of doing this? For example I'd like to bind ActualWi...
Epicarp asked 14/12, 2010 at 10:57

1

Solved

I am trying to place a Popup element in a specific position, relative to the Placement control. In order to achieve that I need to find out the ActualWidth of the popup control. But trying to get...
Arst asked 30/7, 2009 at 12:11

2

Solved

How do I expose the ActualWidth property of one of the components of my user control to users? I have found plenty of examples of how to expose a normal property by creating a new dependency prope...
Connected asked 23/11, 2008 at 23:40

2

Solved

I have a 3 column grid in a window with a GridSplitter on the first column. I want to set the MaxWidth of the first column to a third of the parent Window or Page Width (or ActualWidth) and I would...
Oftentimes asked 17/9, 2008 at 11:59
1

© 2022 - 2024 — McMap. All rights reserved.