CollabVMDesktopClient/CollabVMClient/Views/CVMNode.axaml

28 lines
1.3 KiB
Plaintext
Raw Normal View History

2023-08-29 08:52:35 -04:00
<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:views="using:CollabVMClient.Views"
xmlns:av="clr-namespace:TheArtOfDev.HtmlRenderer.Avalonia;assembly=Avalonia.HtmlRenderer"
mc:Ignorable="d" d:DesignWidth="400" d:DesignHeight="100"
x:Class="CollabVMClient.Views.CVMNode"
Width="400" Height="100" >
<Control.Styles>
<Style Selector="views|CVMNode">
<Setter Property="Background" Value="White"/>
</Style>
<Style Selector="views|CVMNode:nth-child(odd)">
<Setter Property="Background" Value="Purple"/>
</Style>
</Control.Styles>
<StackPanel Orientation="Horizontal" VerticalAlignment="Center">
<Image Source="{Binding Thumbnail}" Width="133" Height="100"/>
<!--<TextBlock VerticalAlignment="Top" Text="{Binding Name}" TextWrapping="Wrap" Width="265"/>-->
<StackPanel Orientation="Vertical">
<av:HtmlPanel Text="{Binding Name}" Height="70" Width="265"/>
<Button Name="ConnectButton" HorizontalAlignment="Right" Height="30" Width="100">Connect</Button>
</StackPanel>
</StackPanel>
</UserControl>