Пример #1
0
        public TextViewer()
        {
            AvaloniaXamlLoader.Load(this);

            AvaloniaEdit = this.FindControl <AvaloniaEdit.TextEditor>("PART_AvaloniaEdit");
            Button       = this.FindControl <Button>("PART_Edit");

            Button.Click += (s, e) =>
            {
                EditResource?.Invoke();
            };
        }
Пример #2
0
        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();
            };
        }