Why are ContentOptions not defaulted to Fill?

2 posts, 0 answers
  1. Shawn
    Shawn avatar
    13 posts
    Member since:
    Feb 2012

    Posted 01 Aug 2018 Link to this post

    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?

  2. Yana
    Admin
    Yana avatar
    4831 posts

    Posted 06 Aug 2018 Link to this post

    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
Back to Top