public TextViewer() { AvaloniaXamlLoader.Load(this); AvaloniaEdit = this.FindControl <AvaloniaEdit.TextEditor>("PART_AvaloniaEdit"); Button = this.FindControl <Button>("PART_Edit"); Button.Click += (s, e) => { EditResource?.Invoke(); }; }
public NameMapViewer() { AvaloniaXamlLoader.Load(this); DataGrid = this.FindControl <DataGrid>("PART_DataGrid"); Button = this.FindControl <Button>("PART_Edit"); TextBlockCount = this.FindControl <TextBlock>("PART_Count"); Button.Click += (s, e) => { EditResource?.Invoke(); }; }