Dispenser/DispenserUI/Views/Setting/SettingsView.axaml

32 lines
1.6 KiB
XML

<UserControl xmlns="https://github.com/avaloniaui"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Width="1777" Height="910"
xmlns:setting="clr-namespace:DispenserUI.Views.Setting"
xmlns:setting1="clr-namespace:DispenserUI.ViewModels.Setting"
x:DataType="setting1:SettingsVM"
IsVisible="{Binding Visible}"
x:Class="DispenserUI.Views.Setting.SettingsView">
<Grid ColumnDefinitions="*,247">
<Grid Column="0">
<setting:SystemSetting />
</Grid>
<Border Grid.Column="1" Width="247" Background="White" BorderBrush="#C1C7D0" BorderThickness="1,1,1,1"
HorizontalAlignment="Center">
<TreeView ItemsSource="{Binding Nodes}" Cursor="Hand"
SelectionChanged="TreeView_OnSelectionChanged">
<TreeView.ItemTemplate>
<TreeDataTemplate ItemsSource="{Binding Children}">
<Border Height="40" VerticalAlignment="Center" HorizontalAlignment="Stretch"
BorderBrush="#C1C7D0" BorderThickness="0,0,0,1">
<TextBlock
Text="{Binding Title}"
TextAlignment="Center"
HorizontalAlignment="Left"
VerticalAlignment="Center" />
</Border>
</TreeDataTemplate>
</TreeView.ItemTemplate>
</TreeView>
</Border>
</Grid>
</UserControl>