blob: 5b0f62d208c8353f5bb33848dafeaebc63f83ad4 (
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
|
using Avalonia.Controls;
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;
// }
// }
// };
}
}
|