<UserControl xmlns="https://github.com/avaloniaui" 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:dialogHost="clr-namespace:DialogHostAvalonia;assembly=DialogHost.Avalonia" mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450" x:Class="SPTInstaller.CustomControls.Dialogs.ChangeLogDialog" MinWidth="400" MaxWidth="600"> <StackPanel> <Label Content="{Binding Version, RelativeSource={RelativeSource AncestorType=UserControl}, StringFormat='{}Installer Change Log for {0}'}" FontSize="18" FontWeight="SemiBold" /> <Separator Margin="0 10" Padding="0" Background="{StaticResource SPT_Yellow}"/> <ScrollViewer MaxHeight="250"> <TextBlock Text="{Binding Message, RelativeSource={RelativeSource AncestorType=UserControl}}" TextWrapping="Wrap" MinHeight="100" /> </ScrollViewer> <Button Content="Close" Classes="yellow" HorizontalAlignment="Right" Command="{Binding RelativeSource={RelativeSource FindAncestor, AncestorType=dialogHost:DialogHost}, Path=CloseDialogCommand}" /> </StackPanel> </UserControl>