2023-08-29 08:52:35 -04:00
|
|
|
<Window xmlns="https://github.com/avaloniaui"
|
|
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
|
|
xmlns:vm="using:CollabVMClient.ViewModels"
|
|
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
2023-08-29 13:39:51 -04:00
|
|
|
xmlns:av="clr-namespace:TheArtOfDev.HtmlRenderer.Avalonia;assembly=Avalonia.HtmlRenderer"
|
2023-08-29 08:52:35 -04:00
|
|
|
xmlns:views="clr-namespace:CollabVMClient.Views"
|
|
|
|
mc:Ignorable="d" d:DesignWidth="400" d:DesignHeight="800"
|
|
|
|
x:Class="CollabVMClient.Views.MainWindow"
|
|
|
|
Icon="/Assets/avalonia-logo.ico"
|
|
|
|
Title="CollabVM - Server List"
|
2023-08-29 13:39:51 -04:00
|
|
|
Width="400" Height="800" CanResize="False"
|
|
|
|
Foreground="Black" Background="White">
|
2023-08-29 08:52:35 -04:00
|
|
|
<Window.Styles>
|
2023-08-29 13:39:51 -04:00
|
|
|
|
2023-08-29 08:52:35 -04:00
|
|
|
</Window.Styles>
|
|
|
|
<StackPanel Orientation="Vertical">
|
|
|
|
<DockPanel>
|
|
|
|
<Menu DockPanel.Dock="Top">
|
|
|
|
<MenuItem Header="_CollabVM">
|
|
|
|
<MenuItem Name="refresh" Header="Refresh" Command="{Binding RefreshList}"/>
|
|
|
|
<MenuItem Name="addServer" Header="Add Server" Command="{Binding AddServer}"/>
|
|
|
|
<MenuItem Name="directConnect" Header="Direct Connect"/>
|
|
|
|
<MenuItem Name="settings" Header="Settings"/>
|
|
|
|
<MenuItem Header="Exit" Name="exit"/>
|
|
|
|
</MenuItem>
|
|
|
|
</Menu>
|
|
|
|
</DockPanel>
|
|
|
|
<ScrollViewer Height="750">
|
|
|
|
<ItemsControl ItemsSource="{Binding Nodes}" Classes="nodelist">
|
|
|
|
<ItemsControl.ItemTemplate>
|
|
|
|
<DataTemplate>
|
|
|
|
<views:CVMNode/>
|
|
|
|
</DataTemplate>
|
|
|
|
</ItemsControl.ItemTemplate>
|
|
|
|
</ItemsControl>
|
|
|
|
</ScrollViewer>
|
|
|
|
</StackPanel>
|
|
|
|
</Window>
|