locked
CarouselView Error RRS feed

  • Question

  • User327233 posted

    Hello,

    I am getting an error suggesting that CarouselView is not found, however I downloaded the NuGet and typed the necessarry xaml code ( xmlns:control="clr-namespace:Xamarin.Forms;assembly=Xamarin.Forms.CarouselView" that should make it work. The error is stated below. Can you help?

    Position 9:10. Type control:CarouselView not found in xmlns clr-namespace:Xamarin.Forms;assembly=Xamarin.Forms.CarouselView

    Thursday, June 1, 2017 9:24 AM

Answers

  • User290507 posted

    Hi,

    try this: - < ContentPage xmlns:control="clr-namespace:Xamarin.Forms;assembly=Xamarin.Forms.CarouselView" >

    And then use in Your Xaml-Markup something like this: < StackLayout > < control:CarouselView x:Name="xyz" Position="{Binding PositionIndex, Mode=TwoWay}" ItemsSource="{Binding CarouselViewSource}" > < /control:CarouselView > < /StackLayout >

    Don't forget to add the Xamarin.Forms.CarouselView package to the App-projects too.

    Regards

    • Marked as answer by Anonymous Thursday, June 3, 2021 12:00 AM
    Thursday, June 1, 2017 9:39 AM

All replies

  • User290507 posted

    Hi,

    try this: - < ContentPage xmlns:control="clr-namespace:Xamarin.Forms;assembly=Xamarin.Forms.CarouselView" >

    And then use in Your Xaml-Markup something like this: < StackLayout > < control:CarouselView x:Name="xyz" Position="{Binding PositionIndex, Mode=TwoWay}" ItemsSource="{Binding CarouselViewSource}" > < /control:CarouselView > < /StackLayout >

    Don't forget to add the Xamarin.Forms.CarouselView package to the App-projects too.

    Regards

    • Marked as answer by Anonymous Thursday, June 3, 2021 12:00 AM
    Thursday, June 1, 2017 9:39 AM
  • User189218 posted

    Hi, @turkdue Try This It will help you xmlns:local="clr-namespace:xyz" (here in place of xyz Please add your project Namespace) xmlns:control="clr-namespace:Xamarin.Forms;assembly=Xamarin.Forms.CarouselView" xmlns:forms="clr-namespace:Xamarin.Forms;assembly=Xamarin.Forms.CarouselView"

    and add tamarin.Forms.CarouselView nugget packages to all your app project(iOS,Android....)

    Thanks and Regards.

    Monday, July 10, 2017 7:52 AM
  • User331579 posted

    Hi @turkdue Try this:

    "To ensure that the CarouselView does not get “Linked-out” when compiling in release mode ensure that you are using Compiled XAML by adding the following code into the project’s AssemblyInfo.cs where your XAMLexists:

    using Xamarin.Forms.Xaml; [assembly: XamlCompilation(XamlCompilationOptions.Compile)]

    Or add the following code after the Forms.Init(); call in each project:

    var cv = typeof (Xamarin.Forms.CarouselView); var assembly = Assembly.Load(cv.FullName);"

    Hope it works!

    Tuesday, September 26, 2017 7:50 PM