about summary refs log tree commit diff
path: root/ModerationClient/Views/ClientView.axaml.cs
blob: 894e80711024ccce0ed551e561a61b1399cdfe37 (plain) (blame)
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
using Avalonia.Controls;
using Avalonia.Markup.Xaml;

namespace ModerationClient.Views;

public partial class ClientView : UserControl {
    
    public ClientView() {
        InitializeComponent();
        
        // PropertyChanged += (_, e) => {
        //     switch (e.Property.Name) {
        //         case nameof(Width): {
        //             //make sure all columns fit
        //             var grid = this.LogicalChildren.OfType<Grid>().FirstOrDefault();
        //             if(grid is null) {
        //                 Console.WriteLine("Failed to find Grid in ClientView");
        //                 return;
        //             }
        //             Console.WriteLine($"ClientView width changed to {Width}");
        //             var columns = grid.ColumnDefinitions;
        //             break;
        //         }
        //     }
        // };
    }
}