Make reused ContextMenu static
This commit is contained in:
parent
bb3854f512
commit
f39d272e6a
@ -30,8 +30,8 @@ namespace LibationAvalonia.Controls
|
|||||||
{
|
{
|
||||||
public event EventHandler<DataGridViewCellContextMenuStripNeededEventArgs> CellContextMenuStripNeeded;
|
public event EventHandler<DataGridViewCellContextMenuStripNeededEventArgs> CellContextMenuStripNeeded;
|
||||||
|
|
||||||
private readonly ContextMenu ContextMenu = new();
|
private static readonly ContextMenu ContextMenu = new();
|
||||||
private readonly AvaloniaList<MenuItem> MenuItems = new();
|
private static readonly AvaloniaList<MenuItem> MenuItems = new();
|
||||||
|
|
||||||
public DataGridTemplateColumnExt()
|
public DataGridTemplateColumnExt()
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user