Comments (15)
Anyway it helped me to find a problem and apply a patch.
from carouselview.
Will do some tests.
from carouselview.
Can you share the XAML of the page containing the carousel?
from carouselview.
<AbsoluteLayout BackgroundColor="Yellow" VerticalOptions="Fill">
<StackLayout BackgroundColor="Blue" VerticalOptions="FillAndExpand">
<controls:CarouselViewControl
x:Name="IntroCarousel"
ItemTemplate="{StaticResource myTemplateSelector}"
ItemsSource="{Binding Pages}"
PageIndicators="True"
Position="0" />
</StackLayout>
<StackLayout
AbsoluteLayout.LayoutBounds="1,1,.5,1"
AbsoluteLayout.LayoutFlags="All"
Orientation="Horizontal"
VerticalOptions="End">
<Button
x:Name="prevBtn"
IsVisible="false"
Style="{StaticResource IntroPreviousBtnStyle}"
Text="Previous" />
<Button
x:Name="nextBtn"
Style="{StaticResource IntroNextBtnStyle}"
Text="Next" />
</StackLayout>
</AbsoluteLayout>
from carouselview.
I know whats the problem and i know how to solve but then it creates another one :)
from carouselview.
What is the new problem and what is the solution for the current one?
from carouselview.
I have the same plugin but for NativeScript and in that version i use UIView to hold the UIPageViewController and UIPageControl because of exactly the same problem you are facing. But in {N}, UIView size by itself, in Xamarin.Forms it doesn't :(
from carouselview.
I found whats the problem. Its a combination of the plugin issue and your XAML. Will work on it and let you know when i am releasing an update.
from carouselview.
First, your xaml may look like this:
<AbsoluteLayout BackgroundColor="Yellow" VerticalOptions="Fill">
<StackLayout BackgroundColor="Blue" VerticalOptions="FillAndExpand" HorizontalOptions="FillAndExpand"
AbsoluteLayout.LayoutBounds="0,0,1,.9"
AbsoluteLayout.LayoutFlags="All">
<controls:CarouselViewControl x:Name="myCarousel" Orientation="Horizontal" InterPageSpacing="10" PageIndicators="true" VerticalOptions="FillAndExpand" HorizontalOptions="FillAndExpand"/>
</StackLayout>
<StackLayout VerticalOptions="FillAndExpand" HorizontalOptions="FillAndExpand"
AbsoluteLayout.LayoutBounds="1,1,1,.1"
AbsoluteLayout.LayoutFlags="All"
BackgroundColor="Red"
Orientation="Horizontal">
<Button
x:Name="prevBtn"
IsVisible="false"
Text="Previous" />
<Button
x:Name="nextBtn"
Text="Next" />
</StackLayout>
</AbsoluteLayout>
from carouselview.
Your XAML is weird anyway because in this case you use a grid or StackLayouts :)
from carouselview.
No reason to use AbsoluteLayout in this scenario. It is memory consuming.
from carouselview.
My fault the xaml code was not the current one, which is the same as yours. Anyway thanks for the fix.
from carouselview.
Hi @alexrainman, this issue reappeared again when updating from 2.9.0 to 3.0.0. Only iOS is affected. Do you know how you fixed it last time? I tried to look at your commit, but there's just to much changes in there.
Microsoft Visual Studio Professional 2015 Version 14.0.25431.01 Update 3
Xamarin 4.3.0.784 (73f58d6)
Xamarin.Android 7.1.0.41 (9578cdc)
Xamarin.iOS 10.4.0.123 (35d1ccd)
Xamarin.Forms 2.3.3.193
from carouselview.
If my work is helping you, please help me back: https://xamarinhq.wufoo.com/forms/nominate-a-xamarin-mvp/
from carouselview.
This is what i have done that is community visible:
- Alex has been pretty active sharing his knowledge and answering questions in StackOverflow, GitHub and Xamarin Forums.
- Alex has been open sourcing Xamarin components and plugin with the community, with more of 10 repositories being maintained on GitHub.
- One of Alex's Xamarin.Forms plugin, the CarouselView, is currently being pulled into the Xamarin.Forms core (xamarin/Xamarin.Forms#853). As an stable widget, this control has become the standard for Xamarin.Forms carousel screens with more that 16K downloads in NuGet and more than 100 solved and not open issues.
- Another Alex's plugin, the SegmentedControl (https://github.com/alexrainman/SegmentedControl), is a big candidate to be also pulled into Xamarin.Forms core.
- Plus Xamarin.Forms UI related plugins, Alex shares plugins to set app icon Badge, Google Analytics and KeyChain access.
- Alex shares his knowledge about cutting edge technologies like Couchbase NoSQL and MobileIron integration with Xamarin Apps.
from carouselview.
Related Issues (20)
- Object Reference Error in Xamarin.Forms 4.8. and higher HOT 5
- Rotate mobile orientation
- iOS: Elements inside carousel are not accessible HOT 1
- Error linking release version 6.0 HOT 1
- error: invalid path '.vs/CarouselView/xs/project-cache/Demo.iOS-Debug|iPhoneSimulator.json'
- 1 mb nuget size?
- [iOS] ShowIndicators at false doesnt work HOT 4
- [BUG][Android] Crash when CarouselView is nested in a ScrollView, inside a TabViewItem (XCT) HOT 6
- not appearing on Android while ok on iOS HOT 4
- [Bug?] CarouselViewControl FlowDirection property wont set the flowdirection HOT 2
- [Request] Start loading the next & previous view HOT 1
- first view is empty sometimes on version 6
- CarouselView does not appear on app start HOT 4
- Using Xamarin.Forms 5.0.0.2244 with upgrade to version 6.0, iOS does not exist in the namespace CarouselView.FormsPlugin
- Xamarin UWP Position Property does not update
- PeekAreaInsets property not found
- Couldn't Viewable Frame Bottom Content Something Covered Bottom Area on Xamairn IOS
- MAUI support HOT 5
- Last item in carouselview is not showing
- (iOS) 6.0.0 CarouselViewRenderer.Dispose Null reference Unhandled Exception:
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from carouselview.