CollabVMDesktopClient/CollabVMClient/Views/UserList.axaml
2023-08-29 08:52:35 -04:00

25 lines
976 B
XML

<Window 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"
mc:Ignorable="d" d:DesignWidth="300" d:DesignHeight="400"
x:Class="CollabVMClient.Views.UserList"
Title="{Binding Title}"
Width="300" Height="400" CanResize="False">
<Window.Styles>
<Style Selector="TextBlock.User">
<Setter Property="FontWeight" Value="Bold"/>
<Setter Property="FontSize" Value="18"/>
</Style>
</Window.Styles>
<ScrollViewer>
<ItemsControl Name="userList" ItemsSource="{Binding Users}">
<ItemsControl.ItemTemplate>
<DataTemplate>
<TextBlock Classes="User" Text="{Binding Username}" Foreground="{Binding Foreground}" Background="{Binding Background}"/>
</DataTemplate>
</ItemsControl.ItemTemplate>
</ItemsControl>
</ScrollViewer>
</Window>