Kinnara / ModernWpf

Modern styles and controls for your WPF applications
MIT License
4.45k stars 446 forks source link

Allow dynamic MenuFlyout #570

Open deakjahn opened 1 year ago

deakjahn commented 1 year ago

The items of MenuFlyout can't be generated dynamically. This would probably help:

public IEnumerable ItemsSource {
  get {
    EnsurePresenter();
    return m_presenter.ItemsSource;
  }
  set {
    EnsurePresenter();
    m_presenter.ItemsSource = value;
  }
}