Skip to content
This repository has been archived by the owner on Aug 29, 2019. It is now read-only.

Commit

Permalink
fix Xamarin.Forms.Xaml.XamlParseException: Property Views is null or …
Browse files Browse the repository at this point in the history
…is not IEnumerable
  • Loading branch information
yinyue200 committed Jul 13, 2017
1 parent a1e90b3 commit f632eb4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion PivotView/PivotPagePortable/Pivot/PivotPage.cs
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ static void OnHeadersPropertyChnaged(BindableObject sender, object oldValue, obj
/// <summary>
/// PivotPage第二组成部分Views
/// </summary>
public static readonly BindableProperty ViewsProperty = BindableProperty.Create(nameof(Views), typeof(IList<View>), typeof(PivotPage), null, propertyChanged: OnViewsPropertyChnaged);
public static readonly BindableProperty ViewsProperty = BindableProperty.Create(nameof(Views), typeof(IList<View>), typeof(PivotPage), new List<View>(), propertyChanged: OnViewsPropertyChnaged);
public IList<View> Views
{
get { return (IList<View>)this.GetValue(ViewsProperty); }
Expand Down

0 comments on commit f632eb4

Please sign in to comment.