2

Previously it was possible to use ContentOverride in Winforms ViewModels.

Is this still possible in MDriven 7.0.0.11262?

Ardent Coder
  • 3,777
  • 9
  • 27
  • 53
SteveA
  • 33
  • 3

1 Answers1

0

I am not aware of any changes so it should work as before. The ContentOverride signal the render-logic (Eco.ViewModel.WinForms.ViewModelUserControl) to call the OnColumnUIOverride event with the following argument:

  /// <summary>
  /// Arguments for the OnColumnUIOverrideArgs event; fired to allow for override of column render.
  /// If you have other UI components that you want to use in ViewModel driven UI's this event provides
  /// a hook point to inject them.
  /// </summary>
  public class OnColumnUIOverrideArgs : EventArgs
  {
    public ViewModel ViewModel;
    /// <summary>
    /// The Column in question
    /// </summary>
    public ViewModelColumn ViewModelColumn;
    /// <summary>
    /// What kind of UI we had in mind
    /// </summary>
    public ViewModelUIComponentType ViewModelUIComponentType;
    /// <summary>
    /// Set this to false to stop us from calling default logic
    /// </summary>
    public bool ContinueWithDefault;
  }
Hans Karlsen
  • 2,275
  • 1
  • 15
  • 15