~ruther/NosTale-PacketLogger

ref: 088a47056fb85ff7330ec09dc90241e7016c9cd8 NosTale-PacketLogger/src/PacketLogger/Views/Settings/SettingsView.axaml -rw-r--r-- 1.1 KiB
088a4705 — Rutherther feat: add client closed indicator 2 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<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:settings="clr-namespace:PacketLogger.ViewModels.Settings"
             mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450"
             x:Class="PacketLogger.Views.Settings.SettingsView">
    <Design.DataContext>
        <settings:SettingsViewModel />
    </Design.DataContext>
    <StackPanel Orientation="Horizontal" Margin="10">
        <ListBox Margin="10" Width="100" Items="{Binding Settings}" SelectedItem="{Binding SelectedSetting}">
            <ListBox.ItemTemplate>
                <DataTemplate>
                    <TextBlock Text="{Binding Name}"></TextBlock>
                </DataTemplate>
            </ListBox.ItemTemplate>
        </ListBox>
        
        <ContentControl VerticalAlignment="Stretch" Margin="10" Content="{Binding SelectedSetting}" />
    </StackPanel>
</UserControl>
Do not follow this link