dtlauncher/launcher-client-avalonia/GUI/ProgramLabel.axaml

31 lines
1.3 KiB
XML

<UserControl x:Class="launcher_client_avalonia.GUI.ProgramLabel"
xmlns="https://github.com/avaloniaui"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="clr-namespace:launcher_client_avalonia.GUI"
Height="50"
Background="{DynamicResource MyDarkTr}"
BorderBrush="{Binding Foreground, RelativeSource={RelativeSource Self}}"
BorderThickness="3"
Foreground="{DynamicResource MyWhite}">
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="{Binding Height, RelativeSource={RelativeSource FindAncestor, AncestorType=local:ProgramLabel}}" />
<ColumnDefinition />
</Grid.ColumnDefinitions>
<Image x:Name="IconImage"
Grid.Column="0"
Margin="3,3,3,3"
Stretch="Fill" />
<Label Name="NameLabel"
Grid.Column="1"
VerticalContentAlignment="Center"
Content="label"
FontFamily="Unispace"
FontSize="15"
FontWeight="Normal"
Foreground="{Binding Foreground, RelativeSource={RelativeSource Mode=FindAncestor, AncestorType=local:ProgramLabel}}" />
</Grid>
</UserControl>