Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support HorizontalOptions and VerticalOptions in Xamarin.Forms? #3

Open
henryyue2010 opened this issue Nov 10, 2018 · 6 comments
Open

Comments

@henryyue2010
Copy link

I tried to set HorizontalOptions=Center in skiarate:RatingView to align the ratingview in the center of screen, but the stars become very small. Without HorizontalOptions, the ratingview always aligns with the left side of screen. Does the control support HorizontalOptions and VerticalOptions in Xamarin.Forms?
Thank you very much.

@gothikghk
Copy link

have any one solved it?

@fakhravari
Copy link

                                    <Grid.ColumnDefinitions>
                                        <ColumnDefinition Width="0.1*" />
                                        <ColumnDefinition Width="0.8*" />
                                        <ColumnDefinition Width="0.1*" />
                                    </Grid.ColumnDefinitions>


                                    <skiarate:RatingView Grid.Column="1" Grid.Row="0" ClassId="{Binding Detail.IdProduct}" x:Name="ratingView8" RatingType="Full" Margin="0,10,0,0" Spacing="5" Value="-1" FlowDirection="RightToLeft" ColorOn="#2196F3" OutlineOffColor="#2196F3" Count="5">
                                        <skiarate:RatingView.GestureRecognizers>
                                            <TapGestureRecognizer Tapped="TapGestureRecognizer_Tapped"></TapGestureRecognizer>
                                        </skiarate:RatingView.GestureRecognizers>
                                    </skiarate:RatingView>

                                </Grid>

@Kapusch
Copy link

Kapusch commented Jun 8, 2020

Hello @clovisnicolas ,

I've just discovered your Skia RatingView and I find it wonderful !

Sadly, I've immediately encountered this issue which is open for a while.
And the only workaround I've found is to set a minimum height of 80.

Do you have any thought about centering correctly your RatingView component with HorizontalOptions and VerticalOptions please ?

@Kapusch
Copy link

Kapusch commented Jun 9, 2020

I think this is an issue related to SkiaSharp : mono/SkiaSharp#215

@clovisnicolas , I have tried to update your reference to SkiaSharp.Views.Forms, but it fails because "not compatible with .NET Portable project".

Could you please try to update references so that I can verify if I'm able to reproduce this issue ?

@eko94
Copy link

eko94 commented Jun 25, 2020

@Kapusch Did you find any solution?

@Kapusch
Copy link

Kapusch commented Jun 25, 2020

No solution, just a quick & dirty workaround, playing with horizontal margin (both left & right)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants