~ruther/NosTale-PacketLogger

ref: fd54708c709cc2d62d08f99fa7ada101bdb3802f NosTale-PacketLogger/src/PacketLogger/Views/PacketLogDocumentView.axaml -rw-r--r-- 1.1 KiB
fd54708c — František Boháček feat: add packet document that loads packet providers 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:views="clr-namespace:PacketLogger.Views"
             xmlns:viewModels="clr-namespace:PacketLogger.ViewModels"
             mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450"
             x:Class="PacketLogger.Views.PacketLogDocumentView">
    <Design.DataContext>
        <viewModels:PacketLogDocumentViewModel />
    </Design.DataContext>
    <Grid>
        <Grid IsVisible="{Binding !Loaded}">
            <StackPanel VerticalAlignment="Center" HorizontalAlignment="Center">
                <Button Content="Open File" IsEnabled="{Binding !Loading}" Command="{Binding OpenFile}"></Button>
                <Button Content="Open Dummy" IsEnabled="{Binding !Loading}" Command="{Binding OpenDummy}"></Button>
            </StackPanel>
        </Grid>

        <ContentControl IsVisible="{Binding Loaded}" Content="{Binding  LogViewModel}" />
    </Grid>
</UserControl>
Do not follow this link