This is a migrated thread and some comments may be shown as answers.

Why are ContentOptions not defaulted to Fill?

1 Answer 89 Views
SlideView
This is a migrated thread and some comments may be shown as answers.
Shawn
Top achievements
Rank 2
Shawn asked on 01 Aug 2018, 10:40 PM

I was replacing a competitor's CarouselView with RadSlideView where my ItemTemplate was a Grid.  I couldn't see anything in the RadSlideView.  1 hour later, I was scanning these forums and I read about HorizontalContentOptions and VerticalContentOptions.  I changed both of those to Fill and finally I could see my Grid and everything worked.

 

I have two questions:

1. Why do we need HorizontalContentOptions and VerticalContentOptions?  Shouldn't the RadSlideView honor the LayoutOptions of the template itself instead of introducing 2 new properties that can trip up people like me?

2. Shouldn't the default values of HorizontalContentOptions and VerticalContentOptions be set to Fill so that people that don't know about these properties will get a useful default and not spend 1 hour figuring out why their RadSlideView is blank?

1 Answer, 1 is accepted

Sort by
0
Yana
Telerik team
answered on 06 Aug 2018, 09:00 AM
Hello Shawn,

I am so sorry for the negative initial experience you've had with RadSlideView.  Straight to your questions:

1. HorizontalContentOptions and VerticalContentOptions are needed when the ItemsSource of SlideView contains strings or images, so the Views are auto-generated. In this case, there is no other way to define the layout.

Anyway, I agree with you that ContentOptions of the SlideView shouldn't override the LayoutOptions of the Views inside the control, I have logged this as a bug in our public portal, you could follow the item here:
https://feedback.telerik.com/Project/168/Feedback/Details/255029-slideview-slideviews-contentoptions-override-the-layoutoptions-of-the-views-ins
This will be resolved in the next minor release of Telerik UI for Xamarin.

2. At this point we cannot update the default values of these properties, however, by fixing the issue referenced in pt.1, I assume we'll avoid the described situation.

I hope I could help. Let me know in case you have additional questions/issues.

Regards,
Yana
Progress Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
SlideView
Asked by
Shawn
Top achievements
Rank 2
Answers by
Yana
Telerik team
Share this question
or