Bug Fixes:
Other fixes:
36447 - PinchGestureRecognizer Only Works on Android API Level 19+
Fixed build issues
In parallel to this "-pre3" release, Xamarin.Forms.CarouselView 2.3.0-pre1 was also shipped. As the CarouselView's version suggests, it has a dependency on Xamarin.Forms 2.3.0 ("-pre3" or greater).
40830 - AppLinkEntry.KeyValues collection is always empty
40844 - [Android] Forms Android app gets stuck with GC bridge calls when using current beta branch of Xamarin.Android/Mono Runtime
40866 -[Android] RegisterLink throws an ArgumentException on Android
Internals visible for CarouselView
Adding AzureDataSource support by introducing Xamarin.Forms.Pages.Azure nuget.
Xamarin.Forms DataPages are available as a preview for customers to try and provide feedback. The preview is available in the Xamarin.Forms.Pages nuget package. DataPages provide an API to quickly and easily bind a data source to pre-built views that can be styled with Themes.
Xamarin.Forms Themes are available as a preview for customers to try and provide feedback. A theme is added to a Xamarin.Forms application by including the Xamarin.Forms.Theme.Base Nuget package, plus either an additional package that defines a specific theme (eg. Xamarin.Forms.Theme.Light) or a locally defined theme.
Deep link directly to any page within your Xamarin.Forms app with URL Navigation.
In order to avoid adding a dependency on GooglePlayServices to the Xamarin.Forms core package, we've created a new Xamarin.Forms.AppLinks nuget package that will be required for this feature to work on the Android platform.
Embed custom Xamarin.iOS and Xamarin.Android controls in Xamarin.Forms applications.
Known Issues:
Can now set TextColor on Picker, TimePicker, DatePicker.
Device.IsInvokeRequired
on Android resulted in a race condition and possible crash.
Posts
Is CarouselView out on GitHub as well? Also, it would be great to see documentation on how to use it.
I'm trying to create a CarouselView with each of its items being a ListView. Not sure if this is intended use case.
When I run the app on Android (haven't tested it on iOS), I get nothing but a white screen for the carousel view.
If I swipe right and left several times and scroll up and down like a child, I eventually get the following:
This works for me (tested with first version of carousel view). Ask if it's not clear
Sorry for the bad format
I tried to use the CarouselView in a Xaml layout and got the following error message:
Xamarin.Forms.Xaml.XamlParseException: Position 20:10. Type CarouselView not found in xmlns http://xamarin.com/schemas/2014/forms
Am i missing an additional namespace or ist the forms one not up to date with this CarouselView?
Got this after update:
Foundation.MonoTouchException: Objective-C exception thrown. Name: NSInternalInconsistencyException Reason: Application windows are expected to have a root view controller at the end of application launch.
@ThomasGoerlich can i see your xaml?
Are you defining xmlns alias for the new dll?
@rmarinho How do you reference the Xamarin.Forms.CarouselView on the XAML project ?Do you have an example project?
I found two things I consider bugs with CarouselView.
1) Let's say we have two items in the carousel view and we are on the second view. On iOS, if we rotate the device the carousel view will show the first item. For Android, its consistent and stays on the second item.
2) Sometimes on Android, I get a "Sequence contains more than one element" which switching between two views that have list views inside them. In the example project attached, give a scrolling and swiping motion at the same time(might take a few tries).
@DanielBarrrosAmorim:
First, add this namespace to your page:
xmlns:cv="clr-namespace:Xamarin.Forms;assembly=Xamarin.Forms.CarouselView"
Then you can reference the CarouselView like this:
<cv:CarouselView ItemsSource="{Binding Images}"> <cv:CarouselView.ItemTemplate> <DataTemplate> <StackLayout> <Image Source="{Binding}" /> </StackLayout> </DataTemplate> </cv:CarouselView.ItemTemplate> </cv:CarouselView>
Carousel View Nuget Mentions the following issue:
But what is the uwp namespace?
@rmarinho Thanks! I did not define a xmlns for the dll. That was my mistake
I wanted to use the CarouselView with ListViews as well and ran into the same problem as @AndyBarajas with an "System.InvalidOperationException: Sequence contains more than one element" error while scrolling in multiple directions.
@BryanHunterXam Do the Xamarin.Forms team have a roadmap of things they are currently working on / looking to implement.
I often find myself in the situation where I am not sure whether to write my own implementation of things or wait for Xamarin to implement it.
In my situation I am looking at using SVG images. For two reasons:
1. Reduce application sizes
2. Easier to maintain and create Icons.
3. Change theme / Colour of Icons at runtime
But I am completely in the dark about what Xamarins plans are surrounding SVG images. There are two third party controls out there but they are not perfect.
I imagine a lot of other developers find themselves in similar situations
@JKay there is this proposals thing on their github repo https://github.com/xamarin/xamarin-evolution/tree/master/xamarin.forms but that doesn't seem to be used all that much (yet?).
There is also a mailinglist (http://lists.xamarin.com/mailman/listinfo/forms-devel) with a few bits of information (e.g. a thread about tvOS support).
But a real roadmap would be great
.Single() in LINQ is dangerous b/c it will always throw an exception if there is more than one.
.SingleOrDefault() is better and then check for null
Does anyone know how to use the
MergedWith
property on aResourceDictionary
? I have the following:Where
PastelTheme2
is anotherResourceDictionary
But this doesn't seem to work. Has anyone got any suggestions?When you create a carousel of listviews, listview scrolling seems messed up. Any slight right/left swipe will cancel listview scroll. I think there should be a way to set swipe tolerance so carouselview does not wake up.
Also, if you stop swiping the carousel between two positions, it will crash the app.
Finally, the carousel doesn't seem to snap back into the original position if you don't swipe long enough.
XamlCompilation on UWP seems to break some layout options.
For example:
I had a weird issue yesterday... I was using the Carousel view pre-release and put my build on test flight and the carousel view pages were broken... so i had to downgrade back to the pre-release with it
@DirkWilhelm does it happen only in UWP? Can you give us a reproduction?
Thanks
Do we have a good spot to discuss carousel issues? I have updated to 2.3.0 pre1 and have a slide that has a entry on it for typing your username. On iOS it works good, on android when the soft keyboard is shown the carousel seems to jump back to slide 0 immediately. Anyone tried something similar?
@AndyBarajas @ThomasGoerlich I'm encountering the same issue with
Sequence contains more than one element
. Out of couriosity I added 100ContentViews
to aCarouselView
and when I switched from page 52 to page 53 the error occured. It's completly reproducable. Also swiping the pages slowly causes this error to appear after some time. @rmarinho do guys already have an idea about this problem?//Edit: Only happened on Android. iOS seems fine. UWP I don't know because I have no idea where I have to put DataTemplate thingy in
@JKay
https://developer.xamarin.com/guides/xamarin-forms/xaml/resource-dictionaries/#Merged_Resource_Dictionaries
@rmarinho and @DavidBritch
Can someone please kindly share a working UWP simple carouselView 2.3.0-pre1 sample
So we know if we have issues, we could consider that these issues could be new and we could report back.
=> Right now, the moment I add the CarouselView to the UWP project references, I immediately get an error when compile.
instruction
Known issues:
Need to add on your Windows projects (UWP and WINRT) to your App.xaml resources the following lines:
Hello,
Is anybody tried to use Commands with binding in a CarouselView ? I've just tried to use a simple Command on a Button but it didn't work.
<cv:CarouselView VerticalOptions="FillAndExpand" x:Name="carous" Grid.Row="1" ItemsSource="{Binding Items}"> <cv:CarouselView.ItemTemplate> <DataTemplate> <StackLayout> <Button Command="{Binding TestCommand}" HorizontalOptions="Center" BorderColor="Transparent" Text="Test" BackgroundColor="White" TextColor="Black" FontSize="18" /> </StackLayout> </DataTemplate> </cv:CarouselView.ItemTemplate> </cv:CarouselView>
And in my ViewModel :
TestCommand = new RelayCommand(() => { DependencyService.Get<IDeviceService>().TestSettings(); });
Thanks
Ok I've just extracted this Button from carouselView and manage its visibility thanks to Triggers
@RaphaelSchindler I've gotten this issue as well on Android a couple of times. Normally happens for me if you are swiping slowly. Ever find an answer for this?
Ive also got the same issue as @RyanWatson describes.
Besides that, i cannot set the Position in the CarouselView, when the CarouselView is initialized, first after the CarouselView is initialize, i am able to set the Position. I have tried to set the position with a binding, and also hardcode it, but nothing works. The CarouselView Position property worked fine, before it was seperated from the Xamarin.Forms nuget.
@BryanHunterXam Why hasn't CarouselView been open-sourced yet? Would be great to see a repository we could take a look at and contribute to.
my current "solution" is to not use the carouselview and wait for a fix from xamarin or a hint on what i might be doing wrong. we pretty much just started with a new app so there are enough other things to work on and wait a bit for xamarin to release an update or sourcecode or something
this evening I am using new CarouselView 2.3.0-pre1 and I have, during switching from one view to another, an exception
Sequence contains more than one element
this is the stack
at System.Linq.Enumerable.Single[TSource] (IEnumerable`1 source) [0x0008e] in /Users/builder/data/lanes/3236/ee215fc9/source/mono/external/referencesource/System.Core/System/Linq/Enumerable.cs:1050
at Xamarin.Forms.Platform.CarouselViewRenderer.b__8_2 () [0x00011] in :0
at Xamarin.Forms.Platform.CarouselViewRenderer+OnScrollListener.OnScrollStateChanged (Android.Support.V7.Widget.RecyclerView recyclerView, Int32 newState) [0x0003d] in :0
at Android.Support.V7.Widget.RecyclerView+OnScrollListener.n_OnScrollStateChanged_Landroid_support_v7_widget_RecyclerView_I (IntPtr jnienv, IntPtr native__this, IntPtr native_recyclerView, Int32 newState) [0x00011] in :0
at (wrapper dynamic-method) System.Object:8f7ae733-0624-4221-ae35-6cccbc37282a (intptr,intptr,intptr,int)
@rmarinho it's a known bug?
Thanks
yes it's seems a known bug
I am trying to use the CarouselView to display multiple sub-views. (hopefully this is a supported case)
the only way i managed to get it to work was to set everything in code:
and then configure the bindings to a ContentView item in code:
so this does work, though can anyone suggest a cleaner way?
also, I invariably get the Sequence contains more than one element error, (especially if i "drum" quickly on the view with 2 fingers) so it seems pretty much unusable at this time.
@BryanHunterXam You said this version fixes bug #40844 but I cannot access it.
Is it similar to what I already wrote to bug #38982 and bug #38577? Could that also fix the bug I was running into?
is it possible that the Sequence contains more than one element error is related to this bug?
PanGestureRecognizer sometimes won't fire completed event when dragging very slowly
I don't know about the inner workings of the CarouselView, but if it relies on PanGestureRecognizer, it might make sense, and both errors feel the same to me. (IE they feel like they happen when doing the same thing)
@JKay said:
I agree with you JKay. SVG is needed and Xamarin is late to the party. I'm in the same situation, like many others. UI development is now ten times quicker with Sketch+SVG or Inkscape+SVG or AdobeXD+SVG. This is the new paradigm for UI development. Only us with Xamarin are left behind with no SVG support. We need to know if and when Xamarin is going to add support for SVG assets, or we are going to migrate to a native framework. The advantage of using Xamarin is now increasingly outweighted by the disadvantages of not having SVG support. At least tell us that you have added SVG to the roadmap.
I am using Forms 2.3.0.46-pre3 and I am having an issue with setting Entry Keyboard="Numeric" on iOS. It does not popup the numeric only keyboard. I've tried eliminating other things and still same issue. Any ideas? Is this a bug in the pre?
xamarin-forms-carouselview setup for Windows (by James Montemagno June 15, 2016)/
<Application x:Class="MyApp.UWP.App" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:uwp="using:Xamarin.Forms.Platform" xmlns:local="using:MyApp.UWP" RequestedTheme="Light"> <Application.Resources> <DataTemplate x:Key="ItemTemplate"> <uwp:ItemControl HorizontalContentAlignment="Stretch" VerticalContentAlignment="Stretch" /> </DataTemplate> </Application.Resources> </Application>
Please use this thread https://forums.xamarin.com/discussion/69120/carouselview-2-3-0-pre1 for CarouselView feedback and issues.
Still no fixes to make ListView usable on iOS