Skip to content

Instantly share code, notes, and snippets.

@Mohit-Kheterpal
Created July 3, 2015 06:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Mohit-Kheterpal/c041ce1f30c19509c8ee to your computer and use it in GitHub Desktop.
Save Mohit-Kheterpal/c041ce1f30c19509c8ee to your computer and use it in GitHub Desktop.
System.InvalidCastException: Unable to cast object of type 'Xamarin.Forms.ListView' to type 'Xamarin.Forms.Label'.
at at (wrapper castclass) object:__castclass_with_cache (object,intptr,intptr)
at Xamarin.Forms.Platform.iOS.VisualElementRenderer`1[Xamarin.Forms.Label].Xamarin.Forms.Platform.iOS.IVisualElementRenderer.SetElement (Xamarin.Forms.VisualElement element) [0x00000] in <filename unknown>:0
at Xamarin.Forms.Platform.iOS.ListViewRenderer.UpdateHeader () [0x0006e] in <filename unknown>:0
at Xamarin.Forms.Platform.iOS.ListViewRenderer.OnElementPropertyChanged (System.Object sender, System.ComponentModel.PropertyChangedEventArgs e) [0x00124] in <filename unknown>:0
at at (wrapper delegate-invoke) <Module>:invoke_void_object_PropertyChangedEventArgs (object,System.ComponentModel.PropertyChangedEventArgs)
at Xamarin.Forms.BindableObject.OnPropertyChanged (System.String propertyName) [0x00012] in <filename unknown>:0
at Xamarin.Forms.ListView.OnHeaderOrFooterChanged (Xamarin.Forms.Element& storage, System.String property, System.Object dataObject, Xamarin.Forms.DataTemplate template, Boolean templateChanged) [0x00054] in <filename unknown>:0
at Xamarin.Forms.ListView.OnHeaderChanged (Xamarin.Forms.BindableObject bindable, System.Object oldValue, System.Object newValue) [0x0001a] in <filename unknown>:0
at Xamarin.Forms.BindableObject.SetValueActual (Xamarin.Forms.BindableProperty property, Xamarin.Forms.BindablePropertyContext context, System.Object value, Boolean currentlyApplying, SetValueFlags attributes, Boolean silent) [0x00112] in <filename unknown>:0
at Xamarin.Forms.BindableObject.SetValueCore (Xamarin.Forms.BindableProperty property, System.Object value, SetValueFlags attributes, SetValuePrivateFlags privateAttributes) [0x00235] in <filename unknown>:0
at Xamarin.Forms.BindableObject.SetValue (Xamarin.Forms.BindableProperty property, System.Object value, Boolean fromStyle, Boolean checkAccess) [0x00061] in <filename unknown>:0
at Xamarin.Forms.BindableObject.SetValue (Xamarin.Forms.BindableProperty property, System.Object value) [0x00000] in <filename unknown>:0
at Xamarin.Forms.ListView.set_Header (System.Object value) [0x00000] in <filename unknown>:0
at TestLvHeader.App+<App>c__AnonStorey0.<>m__0 (System.Object sender, System.EventArgs e) [0x00033] in /Users/360_macmini/Downloads/TestLvHeader/TestLvHeader/TestLvHeader.cs:28
at Xamarin.Forms.Button.Xamarin.Forms.IButtonController.SendClicked () [0x00020] in <filename unknown>:0
at Xamarin.Forms.Platform.iOS.ButtonRenderer.OnButtonTouchUpInside (System.Object sender, System.EventArgs eventArgs) [0x0000e] in <filename unknown>:0
at UIKit.UIControlEventProxy.Activated () [0x00007] in /Users/builder/data/lanes/1962/8b265d64/source/maccore/src/UIKit/UIControl.cs:34
at at (wrapper managed-to-native) UIKit.UIApplication:UIApplicationMain (int,string[],intptr,intptr)
at UIKit.UIApplication.Main (System.String[] args, IntPtr principal, IntPtr delegate) [0x00005] in /Users/builder/data/lanes/1962/8b265d64/source/maccore/src/UIKit/UIApplication.cs:63
at UIKit.UIApplication.Main (System.String[] args, System.String principalClassName, System.String delegateClassName) [0x00038] in /Users/builder/data/lanes/1962/8b265d64/source/maccore/src/UIKit/UIApplication.cs:47
at TestLvHeader.iOS.Application.Main (System.String[] args) [0x00008] in /Users/360_macmini/Downloads/TestLvHeader/iOS/Main.cs:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment