Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 58056

WrapLayout.cs Type 'TDeclarer' does not contain a definition for 'Orientation' error?

$
0
0

In WrapLayout.cs(download link: http://bit.ly/xf-custompanel) provided by @CraigDunn‌ :

/// <summary>
/// Orientation (Horizontal or Vertical)
/// </summary>
public StackOrientation Orientation {
    get { return (StackOrientation)GetValue (OrientationProperty); }
    set { SetValue (OrientationProperty, value); } 
}

/// <summary>
/// Backing Storage for the Orientation property
/// </summary>
public static readonly BindableProperty OrientationProperty = 
    BindableProperty.Create<WrapLayout, StackOrientation> (w => w.Orientation, StackOrientation.Vertical, 
        bindingPropertyChanged: (bindable, oldvalue, newvalue) => ((WrapLayout)bindable).OnSizeChanged ());

Error says Type 'TDeclarer' does not contain a definition for 'Orientation', but it does have, which is just above OrientationProperty's definition(first line).
Anyone could help me out? Thank you. Btw, error appears after I upgraded the xamarin.forms package.


Viewing all articles
Browse latest Browse all 58056

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>