Something went wrong. Try again.
Modular scanner/radio client and multi-broadcast server. uniscan.dexrn.me
Something went wrong. Try again.
2.2 kB · 45 lines
at main
123456789101112131415161718192021222324252627282930313233343536373839404142434445<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:device="clr-namespace:UniScan.Client.App.Views.Remote.Device" 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.Device.DeviceListControl" x:DataType="device:DeviceListControlViewModel"> <UserControl.Styles> <Style Selector="device|DeviceInfoControl"> <Setter Property="FlyoutBase.AttachedFlyout"> <MenuFlyout> </MenuFlyout> </Setter> <Setter Property="ContextFlyout" Value="{Binding (FlyoutBase.AttachedFlyout), RelativeSource={RelativeSource Self}}" /> </Style> </UserControl.Styles> <ScrollViewer VerticalScrollBarVisibility="Auto"> <Panel> <TextBlock properties:TextBlockTranslationTextComponentProperty.TranslationId="UniScan:client/i18n/remote/device/no_devices" FontSize="18" FontWeight="Bold" HorizontalAlignment="Center" Margin="0 5 0 0" IsVisible="{Binding !DevicesView.Count}" /> <ItemsRepeater x:Name="DeviceGrid" ItemsSource="{Binding DevicesView}" Margin="5"> <ItemsRepeater.Layout> <UniformGridLayout ItemsJustification="Start" MinColumnSpacing="5" MinRowSpacing="5" MinItemWidth="200" ItemsStretch="Fill" /> </ItemsRepeater.Layout>
<ItemsRepeater.ItemTemplate> <DataTemplate x:DataType="{x:Type device:DeviceInfoControlViewModel}"> <device:DeviceInfoControl /> </DataTemplate> </ItemsRepeater.ItemTemplate> </ItemsRepeater> </Panel> </ScrollViewer>
</UserControl>