BaseGridControl
StockSharp.Xaml.GridControl
The grid control.
Inherits: GridControl
Implements: IAsyncPersistable
Constructors
BaseGridControl
public BaseGridControl()
baseGridControl = BaseGridControl()
Initializes a new instance of the BaseGridControl.
Properties
AutoScroll
public bool AutoScroll { get; set; }
value = baseGridControl.AutoScroll
baseGridControl.AutoScroll = value
Automatically to scroll control on the last row added. The default is off.
ColumnVisibility
public ColumnVisibilityHolder ColumnVisibility { get; }
value = baseGridControl.ColumnVisibility
Get or set column visibility by index.
Methods
BeginEndUpdate
public void BeginEndUpdate(Action action)
baseGridControl.BeginEndUpdate(action)
BeginDataUpdate and EndDataUpdate auto invoke.
- action
- Action.
LoadAsync
public virtual Task LoadAsync(SettingsStorage storage, CancellationToken cancellationToken)
result = baseGridControl.LoadAsync(storage, cancellationToken)
Load settings.
- storage
- Settings storage.
- cancellationToken
- CancellationToken
Returns: Task
LoadExpandedState
public void LoadExpandedState()
baseGridControl.LoadExpandedState()
Load group state settings.
OnItemsSourceChanged
protected override void OnItemsSourceChanged(object oldValue, object newValue)
baseGridControl.OnItemsSourceChanged(oldValue, newValue)
Called when the ItemsSource property changes.
- oldValue
- Old value of the ItemsSource property.
- newValue
- New value of the ItemsSource property.
OnLoaded
protected override void OnLoaded(object sender, RoutedEventArgs e)
baseGridControl.OnLoaded(sender, e)
- sender
- e
SaveAsync
public virtual Task SaveAsync(SettingsStorage storage, CancellationToken cancellationToken)
result = baseGridControl.SaveAsync(storage, cancellationToken)
Save settings.
- storage
- Settings storage.
- cancellationToken
- CancellationToken
Returns: Task
Events
DdeErrorHandler
public event Action<Exception> DdeErrorHandler
baseGridControl.DdeErrorHandler += handler
DDE export error handler.
ItemDoubleClick
public event Action<object, ItemDoubleClickEventArgs> ItemDoubleClick
baseGridControl.ItemDoubleClick += handler
Event of double-clicking the mouse on the selected item.
LayoutChanged
public event Action LayoutChanged
baseGridControl.LayoutChanged += handler
Layout changed event.
Fields
AutoScrollProperty
public static readonly DependencyProperty AutoScrollProperty
value = BaseGridControl.AutoScrollProperty
DependencyProperty for AutoScroll.