You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

38 lines
1.6 KiB

<Window x:Class="ContentProperty.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:local="clr-namespace:ContentProperty"
mc:Ignorable="d"
Title="MainWindow" Height="200" Width="300">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="*"/>
<RowDefinition Height="*"/>
</Grid.RowDefinitions>
<Button Grid.Row="0" HorizontalAlignment="Center" VerticalAlignment="Center">
<Button.Content>
<StackPanel Orientation="Horizontal">
<Image Source="/Resources/Logo.jpeg" Width="50" Height="50" Margin="5" VerticalAlignment="Center"/>
<Label Content="Save" VerticalAlignment="Center"/>
</StackPanel>
</Button.Content>
</Button>
<GroupBox Grid.Row="1" Margin="10">
<GroupBox.Header>
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="1*"/>
<ColumnDefinition Width="3*"/>
</Grid.ColumnDefinitions>
<Image Grid.Column="0" Source="/Resources/Logo.jpeg" Width="30" Height="30"/>
<Label Grid.Column="1" Content="This is header of groupbox"/>
</Grid>
</GroupBox.Header>
</GroupBox>
</Grid>
</Window>