public Tracker() { InitializeComponent(); this.Loaded += (sender, args) => { WpfHelpers.AddFlyout <AddEditProductFlyout>(this, nameof(TrackerViewModel.IsAddEditProductVisible), nameof(TrackerViewModel.EditingProduct)); }; }