Something went wrong. Try again.
Modular scanner/radio client and multi-broadcast server. uniscan.dexrn.me
Something went wrong. Try again.
2.5 kB · 39 lines
at main
12345678910111213141516171819202122232425262728293031323334353637383940<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:asyncImageLoader="clr-namespace:AsyncImageLoader;assembly=AsyncImageLoader.Avalonia" xmlns:remote="clr-namespace:UniScan.Client.App.Views.Remote" xmlns:properties="clr-namespace:UniScan.Client.App.UI.Properties" mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450" x:Class="UniScan.Client.App.Views.Remote.RemoteInfoControl" x:DataType="remote:RemoteInfoControlViewModel"> <StackPanel Spacing="10"> <Border Padding="10"> <StackPanel Orientation="Horizontal" Spacing="10"> <Border CornerRadius="10" VerticalAlignment="Center" IsVisible="{Binding Info.Branding.LogoUrl, Converter={x:Static ObjectConverters.IsNotNull}}"> <Image asyncImageLoader:ImageLoader.Source="{Binding Info.Branding.LogoUrl}" Width="64" Height="64" /> </Border> <StackPanel VerticalAlignment="Center" Spacing="5"> <TextBlock Text="{Binding DisplayName}" TextWrapping="Wrap" FontSize="20" FontWeight="Bold" IsVisible="{Binding DisplayName, Converter={x:Static StringConverters.IsNotNullOrEmpty}}" /> <TextBlock properties:TextBlockTextComponentProperty.TextComponent="{Binding Info.Description}" TextWrapping="Wrap" IsVisible="{Binding Info.Description, Converter={x:Static ObjectConverters.IsNotNull}}" /> </StackPanel> </StackPanel> </Border> <ScrollViewer HorizontalScrollBarVisibility="Auto" VerticalScrollBarVisibility="Disabled"> <ItemsControl ItemsSource="{Binding Links}"> <ItemsControl.ItemsPanel> <ItemsPanelTemplate> <StackPanel Orientation="Horizontal" Spacing="10" /> </ItemsPanelTemplate> </ItemsControl.ItemsPanel> <ItemsControl.ItemTemplate> <DataTemplate> <remote:RemoteLinkControl /> </DataTemplate> </ItemsControl.ItemTemplate> </ItemsControl> </ScrollViewer> </StackPanel></UserControl>