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.
(Total attached files size should be smaller than 20mb. Allowed extensions: .zip, .rar, .jpg, .png, .gif)
0 comments