Something went wrong. Try again.
Modular scanner/radio client and multi-broadcast server. uniscan.dexrn.me
Something went wrong. Try again.
2.6 kB · 30 lines
at main
12345678910111213141516171819202122232425262728293031<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:connection="clr-namespace:UniScan.Client.App.Views.Remote.Connection" 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.Connection.DisconnectedRemotePageView" x:DataType="connection:DisconnectedRemotePageViewModel"> <Border VerticalAlignment="Center" HorizontalAlignment="Center" Padding="10" Background="{DynamicResource SystemControlBackgroundBaseLowBrush}" CornerRadius="10" Margin="10"> <StackPanel Spacing="10"> <Border Padding="10" CornerRadius="5" Background="{DynamicResource SystemControlPageBackgroundBaseLowBrush}" IsVisible="{Binding RemoteViewModel, Converter={x:Static ObjectConverters.IsNotNull}, FallbackValue=False, TargetNullValue=False}"> <StackPanel Orientation="Horizontal" Spacing="5"> <Image VerticalAlignment="Center" asyncImageLoader:ImageLoader.Source="{Binding RemoteViewModel?.Remote.RemoteInfo.Value.Branding.LogoUrl}" Width="32" Height="32" IsVisible="{Binding RemoteViewModel.Remote.RemoteInfo.Value.Branding.LogoUrl, Converter={x:Static ObjectConverters.IsNotNull}, FallbackValue=False, TargetNullValue=False}" /> <TextBlock Text="{Binding RemoteViewModel?.Remote.DisplayName}" FontWeight="Bold" FontSize="16" VerticalAlignment="Center" /> </StackPanel> </Border> <TextBlock Text="You've been disconnected!" FontWeight="Bold" FontSize="20" /> <Border Padding="5" Background="{StaticResource SystemControlBackgroundBaseLowBrush}" CornerRadius="5"> <ScrollViewer VerticalScrollBarVisibility="Auto" HorizontalScrollBarVisibility="Auto" MaxHeight="64"> <SelectableTextBlock properties:TextBlockTextComponentProperty.TextComponent="{Binding Reason}" /> </ScrollViewer> </Border> <StackPanel Orientation="Horizontal" Spacing="10" FlowDirection="RightToLeft" Margin="0 10 0 0"> <Button Content="Okay" Command="{Binding OkClicked}" /> </StackPanel> </StackPanel> </Border></UserControl>