Completed
Last Updated: 16 May 2017 10:30 by ADMIN
ADMIN
Tanya
Created on: 30 Nov 2016 17:51
Category: UI for WPF
Type: Feature Request
1
OutlookInspired project template: NullReferenceException is thrown design time in MainView
When MainView.xaml is opened, the designer throws NullReferenceException because the SelectedOutlookSection is not initialized.

Workaround: If SelectedOutlookSection is null, then initialize it to point to the first item from the collection of outlook sections:

public OutlookSection SelectedOutlookSection
{
    get
    {
        if (this._selectedOutlookSection == null)
        {
            this._selectedOutlookSection = this.OutlookSections.FirstOrDefault();
        }

        return this._selectedOutlookSection;
    }
  ...
}

The fix is available in R1 2017 SP1.
0 comments