Hi everybody,
I will try to shed some light into what design time size means.
I will start by talking a little bit about the Expression Blend design time properties. The design properties are some special properties used only by Expression Blend when editing a specific file. For example, when you use the "lock" button in the timeline, Expression Blend will set such a property: d:IsLocked="True". These properties are defined in the xmlns:d namespace. The corresponding namespace declarations get inserted in the xaml when such a property is needed.
The design time properties can be safely ignored by other tools and they are ignored at the runtime (mc:Ignorable specifies that the namespace with the "d" prefix can be ignored).
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d"
Expression Blend uses two design time properties (d:DesignWidth, d:DesignHeight) to specify a size for a control to be used at design time. This allows you to edit a control which has an auto size at runtime. Unfortunately, Visual Studio doesn't currently support the design time size (but you can specify Width/Height or MinWidth/MinHeight to enforce a size or minimum size so that the control won't be displayed as 0 size).
How to set the design time property: If the size of your user control is Auto (it doesn't have Width or Height), Expression Blend displays a special resize adorner, which will set/modify the design time size.
Hope this helps,
-Adrian
- Adrian Vinca [MSFT]
Content is provided "AS IS" with no warranties and confers no rights.
Opinions are my own and do not represent those of my employer.