CollabVMDesktopClient/CollabVMClient/Views/MainWindow.axaml

40 lines
1.5 KiB
Text
Raw Normal View History

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"
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"
Width="400" Height="800" CanResize="False"
Foreground="Black" Background="White">
2023-08-29 08:52:35 -04:00
<Window.Styles>
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>