|
@@ -106,7 +106,20 @@ public abstract class DynamicGrid<T> : DynamicGrid, IDynamicGridUIComponentParen
|
|
|
|
|
|
#region Events
|
|
|
|
|
|
- public event IDynamicGrid.ReconfigureEvent? OnReconfigure;
|
|
|
+ private event IDynamicGrid.ReconfigureEvent? _onReconfigure;
|
|
|
+ public event IDynamicGrid.ReconfigureEvent? OnReconfigure
|
|
|
+ {
|
|
|
+ add
|
|
|
+ {
|
|
|
+ _onReconfigure += value;
|
|
|
+ Reconfigure();
|
|
|
+ }
|
|
|
+ remove
|
|
|
+ {
|
|
|
+ _onReconfigure -= value;
|
|
|
+ Reconfigure();
|
|
|
+ }
|
|
|
+ }
|
|
|
|
|
|
public OnGetDynamicGridRowStyle? OnGetRowStyle { get; set; }
|
|
|
|
|
@@ -747,7 +760,7 @@ public abstract class DynamicGrid<T> : DynamicGrid, IDynamicGridUIComponentParen
|
|
|
|
|
|
protected void OnReconfigureEvent(DynamicGridOptions options)
|
|
|
{
|
|
|
- OnReconfigure?.Invoke(options);
|
|
|
+ _onReconfigure?.Invoke(options);
|
|
|
}
|
|
|
|
|
|
/// <summary>
|