We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

SegmentItem should have IsVisible property

Thread ID:

Created:

Updated:

Platform:

Replies:

151367 Feb 8,2020 06:48 AM UTC Feb 12,2020 02:36 PM UTC Xamarin.Forms 1
loading
Tags: SfSegmentedControl
mobileguy
Asked On February 8, 2020 06:48 AM UTC


Trying to use the segmented control in xaml and I cannot set "IsVisible" on the SegmentItem.
I have scenarios where an item of the segmentcontrol should not be visible?
I know you have "VisibleSegmentsCount" that removes the last item ,what about if I want to make visible only 1 and 3 item.

Is it possible to add a bindable property to the SFSegmentItem so that you can bind the individual SegmentItem to a bool value in  your viewmodel.


        <buttons:SfSegmentedControl
            DisplayMode="Text"
            HeightRequest="80"
            SelectedIndex="1"
            VisibleSegmentsCount="3">
            <segmentCollection:List x:TypeArguments="buttons:SfSegmentItem">
                <buttons:SfSegmentItem
                    BackgroundColor="#939393"
                    FontColor="White"
                    FontFamily="{StaticResource IconFontsKey}"
                    FontSize="Medium"
                    IconFont="{x:Static styles:IconFonts.CCC}"
                    SelectionBackgroundColor="#6a80f7"
                    SelectionTextColor=" White"
                    Text="Segment 1" />

                <buttons:SfSegmentItem
                    BackgroundColor="#939393"
                    FontColor="White"
                    FontFamily="{StaticResource IconFontsKey}"
                    FontSize="Medium"
                    IconFont="{x:Static styles:IconFonts.BBB}"
                    SelectionBackgroundColor="#6a80f7"
                    SelectionTextColor=" White"
                    Text="Segment 2" />

                <buttons:SfSegmentItem
                    BackgroundColor="#939393"
                    FontColor="White"
                    FontFamily="{StaticResource IconFontsKey}"
                    FontSize="Medium"
                    IconFont="{x:Static styles:IconFonts.AAA}"
                    SelectionBackgroundColor="#6a80f7"
                    SelectionTextColor=" White"
                    Text="Segment 3" />

            </segmentCollection:List>
            <buttons:SfSegmentedControl.SelectionIndicatorSettings>
                <buttons:SelectionIndicatorSettings Position="Fill" />
            </buttons:SfSegmentedControl.SelectionIndicatorSettings>
        </buttons:SfSegmentedControl>

Thanks for your help

Devakumar Dhanapoosanam [Syncfusion]
Replied On February 12, 2020 02:36 PM UTC

Hi Mobileguy, 
 
Greetings from Syncfusion. 
 
Currently we don’t have direct support to achieve your requirement. We have considered this as feature request and have logged feature request for your requirement. Please have a feedback link to track the status of the feature below 
 
 
We will prioritize the features every release based on the demands and we do not have immediate plan to implement this feature since we committed with already planned work. So, this feature will be available any of our upcoming release. 
 
If you have any more specifications/suggestions to the feature request, you can add it as a comment in the portal. 
 
Regards,   
Devakumar D  


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon