<Grid>
<StackPanel Orientation="Vertical">
<Grid>
<Rectangle Name="Titlebar" Height="50"/>
<StackPanel Name="TitlebarPanel" Orientation="Horizontal" VerticalAlignment="Center" Margin="15,0,15,0"/>
</Grid>
<ContentControl Name="ContentContainer" HorizontalContentAlignment="Center" Background="Black"/>
</StackPanel>
</Grid>
ContentContainer
being stretched the the width of the StackPanel
?
DockPanel
or Grid
instead of StackPanel
hi, I defined the following datatemplate:
<DataTemplate DataType = "{x:Type vm:CardRepresentation}">
<Border BorderBrush = "Black"
BorderThickness = "{Binding BorderThickness}"
CornerRadius = "3"
Width = "100"
Height = "150">
<Image Source = "{Binding ImageSource, Converter={StaticResource StringToBitmapConverter}}"
Stretch = "Uniform" />
</Border>
</DataTemplate>
With BorderThickness beeing a public double
property.
But somehow it won't work (no border is shown).
It works if I manually put a value in the xaml for BorderThickness.
As a side note I would be really interested how I can put my templates in a separate file (Resource dictionary) and reference them in this file.
IsVisible
set to false
is equivalent to collapsed