Advanced Forum Search Results
-
Hello Mark,
Like I said you should not set VerticalAlignment to Stretch because it is the default value. You should set it only if you need to have other value (like Top, Center or Bottom).
If you want your content to be stretched verticaly you should set both VerticalAignment and VerticalContentAignment to stretch. Or just ...
-
Hello Mark,
by default HorizontalAlignment and VerticalAlignment are Stretch for ContentControl so you shound not set the to stretch.
You should only set HorizontalContentAlignment and VerticalContentAlignment to stretch for ContentControl if you want its content stretched.
Let me know if this works for you.
-
HorizontalAlignment is for the ContentControl. What this means is that if are measured with lets say 100, 100 and you have HorizontalAlignment=Stretch then the ContentControl will return DesiredSize 100 (for Width). If you set HorizontalContentAlignment to Stretch then the content (or to be precise the container for this content which is ...
-
Hi,
The maximum allowed ZIndex is 1,000,000.
The Popup control in fact have bugs one of which is that it is ignoring Canvas.ZIndex.
-
This is the default behavior for ContentControl because the Style for ContentControl have these setters:
<Setter Property="HorizontalContentAlignment" Value="Left"/><Setter Property="VerticalContentAlignment" Value="Top"/>
So you have 2 options:
Remove the surrounding ...