~ruther/NosTale-PacketLogger

ref: db835ac7b8029224c72cd1da5a876ae084d1fed0 NosTale-PacketLogger/src/PacketLogger/Views/MainWindow.axaml -rw-r--r-- 2.3 KiB
db835ac7 — Rutherther fix: ensure lower allocation amounts in NosTale processes 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
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
<Window xmlns="https://github.com/avaloniaui"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:vm="using:PacketLogger.ViewModels"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
        mc:Ignorable="d" d:DesignWidth="400" d:DesignHeight="300"
        x:Class="PacketLogger.Views.MainWindow"
        xmlns:np="https://np.com/visuals"
        xmlns:views="clr-namespace:PacketLogger.Views"
        xmlns:core="clr-namespace:Dock.Model.Core;assembly=Dock.Model"
        ExtendClientAreaToDecorationsHint="True"
        Title="PacketLogger"
        FontFamily="avares://Avalonia.Themes.Fluent/Assets#Inter"
        TransparencyLevelHint="AcrylicBlur">
    <Design.DataContext>
        <!-- This only sets the DataContext for the previewer in an IDE,
             to set the actual DataContext for runtime, set the DataContext property in code (look at App.axaml.cs) -->
        <vm:MainWindowViewModel />
    </Design.DataContext>

    <DockPanel>
        <Panel IsHitTestVisible="False" DockPanel.Dock="Top">
            <Menu>
                <MenuItem Header="_File">
                    <MenuItem Header="_Open File..." />
                    <Separator />
                    <MenuItem Header="_Save Filtered As..." />
                    <MenuItem Header="Save All As..." />
                    <Separator />
                    <MenuItem Header="Exit" />
                </MenuItem>
                <MenuItem Header="_Tools">
                    <MenuItem Header="_Packet Sender">
                        <MenuItem Header="_Test" />
                    </MenuItem>
                    <MenuItem Header="_Packet Analyzer"></MenuItem>
                </MenuItem>
            </Menu>
        </Panel>

        <Grid RowDefinitions="*, 25">
            <DockControl Grid.Row="0" Grid.Column="0" x:Name="DockControl" Layout="{Binding Layout}" Margin="4" />
            <Panel DataContext="{Binding Layout.ActiveDockable}"
                   Grid.Row="1" Grid.Column="0">
                <TextBlock Text="{Binding FocusedDockable, FallbackValue={}}"
                           Margin="4"
                           x:DataType="core:IDock"
                           x:CompileBindings="True" />
            </Panel>
        </Grid>
    </DockPanel>
</Window>
Do not follow this link