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

Animations in the Demo - but not in my App...

5 Answers 12 Views
SegmentedControl
This is a migrated thread and some comments may be shown as answers.
Michael
Top achievements
Rank 1
Michael asked on 09 Feb 2019, 12:38 PM

Hi,

Im testing the SegmentedControl, but the nice animation that I see in the demo app is not happening in my app? What am I missing?

 

 

<telerikInput:RadSegmentedControl x:Name="segmentControl"
                                  HeightRequest="60"
                                  VerticalOptions="Start" AutomationId="MenuSegmentedControl">
                    <telerikInput:RadSegmentedControl.ItemsSource>
                        <x:Array Type="{x:Type x:String}">
                            <x:String>aaa</x:String>
                            <x:String>bbb</x:String>
 
                        </x:Array>
                    </telerikInput:RadSegmentedControl.ItemsSource>
                </telerikInput:RadSegmentedControl>

 

5 Answers, 1 is accepted

Sort by
0
Didi
Telerik team
answered on 11 Feb 2019, 09:59 AM
Hi Michael,

Thank you for the provided code.

The RadSegmentedControl does not provide animations. All examples with the SegmentedControl in our QSF demo app and SDK Browser app do not contain animations. In this case could you please give us more information about the example with the animation?

Looking forward to your reply.

Regards,
Didi
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
0
Michael
Top achievements
Rank 1
answered on 20 Feb 2019, 10:38 AM
It looks like the colors are fading when clicking on the "Tabs"? 
0
Lance | Manager Technical Support
Telerik team
answered on 20 Feb 2019, 05:54 PM
Hello Michael,

We're not able to determine exactly which demo you're referring to. I have a few additional questions so that I can better assist:

- Is this the SDK Browser demos or the QSF demos? (the QSF is the app in the app stores)
- What platform is the demo running on? (iOS, Android or UWP)
- What steps did you take to get to the example? (it could be a different control)

I look forward to your reply.

Regards,
Lance | Technical Support Engineer, Principal
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
0
Michael
Top achievements
Rank 1
answered on 21 Feb 2019, 10:12 AM

Hi,

The demo app is called Telerik UI for Xamarin (R1 2019). Im running it on my iPhone 8.

Im looking at the "Segmented" demo "First Look".

When clicking on the images ("Dinner", "Drinks" or "Snacks") it looks like the colors are fading instead of changing instantly. 

Best regards,
Michael.

0
Lance | Manager Technical Support
Telerik team
answered on 21 Feb 2019, 02:51 PM
Hello Michael,

Thanks for clarifying the specific example. There isn't any specific animation we're doing for that implementation, you can see the exact source code here.

For your convenience, here's the XAML:

<telerikInput:RadSegmentedControl HeightRequest="85"
    SegmentBackgroundColor="White"
    SelectedSegmentBackgroundColor="#0A90D0"
    ItemsSource="{Binding LargeImages}"
    SelectedIndex="{Binding SelectedIndex, Mode=TwoWay}"
    views:ThemesBehavior.StyleClass="TelerikTheme"
    AutomationId="MenuSegmentedControl"/>

There aren't any custom renderers registered for the SegmentedControl as it's not a native component. The style is just the shipped BlueTheme, you can see who to switch to that here.

Other than that, the control is intentionally animating selection changes, this is why you're getting the result you see. Any animation customizations made after the fact are optional. 

This could be due to differences in Xamarin.Forms versions, the control uses Xamarin.Forms framework components and changes they've made can affect the outcome. If it's critical enough, you could try to match the exact setup as the QSF and see if it makes a difference for you.

I hope this helps!

Regards,
Lance | Technical Support Engineer, Principal
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
SegmentedControl
Asked by
Michael
Top achievements
Rank 1
Answers by
Didi
Telerik team
Michael
Top achievements
Rank 1
Lance | Manager Technical Support
Telerik team
Share this question
or