Telerik Forums
UI for .NET MAUI Forum
1 answer
81 views

I have a scenario where I have a large amount of items in my RadSlideView and want to limit the amount of visible indicators. I noticed that there is supposed to be a property called MaxVisibleItems (from the documentation) that I could use to limit the maximum visibile indicators, but when I try to set it in XAML it is not recognized or not accessible.

I'm using the latest version of Telerik.UI.for.Maui (6.8.0) from the telerik nuget feed.

Referenced Documentation: https://docs.telerik.com/devtools/maui/controls/slideview/indicators

Martin Ivanov
Telerik team
 answered on 29 Mar 2024
1 answer
99 views
I noticed that if I use the RadSlideView in a Maui project running on Android the panning gestures do not work when in a frame control. It works fine on a windows machine but does nothing in Android.

Here's  the view that i'm using which i modified from the SDKBrowserMaui:


<?xml version="1.0" encoding="utf-8" ?>
<telerik:RadContentView xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
                        xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
                        xmlns:telerik="http://schemas.telerik.com/2022/xaml/maui"
                        x:Class="SDKBrowserMaui.Examples.SlideViewControl.FeaturesCategory.InteractionModeExample.InteractionMode"
                        Margin="5">
    <Grid>
        <!-- >> slideview-interaction-xaml -->
        <telerik:RadSlideView x:Name="slideView"
                              ItemsSource="{Binding Views}"
                              InteractionMode="Pan">
            <telerik:RadSlideView.ItemTemplate>
                <DataTemplate>
                    <Grid>
                        <Grid.RowDefinitions>
                            <RowDefinition Height="Auto"></RowDefinition>
                            <RowDefinition Height="*"></RowDefinition>
                            <RowDefinition Height="*"></RowDefinition>
                        </Grid.RowDefinitions>

                        <Label Grid.Row="0" Text="{Binding Content}" HorizontalTextAlignment="Center" Margin="20"></Label>
                        <Frame Grid.Row="1" Background="LightGray" CornerRadius="15" Margin="15">
                            <!--<Frame.GestureRecognizers>
                                <SwipeGestureRecognizer Direction="Left,Right" Swiped="SwipeGestureRecognizer_OnSwiped"></SwipeGestureRecognizer>
                            </Frame.GestureRecognizers>-->
                            <telerik:RadButton Text="Button in Frame"
                                               TextColor="#007ACC"
                                               VerticalOptions="Center"/>
                        </Frame>
                        <telerik:RadButton Grid.Row="2" Text="Button in Grid"
                                       TextColor="#007ACC"
                                       VerticalOptions="Center"/>
                    </Grid>
                </DataTemplate>
            </telerik:RadSlideView.ItemTemplate>
        </telerik:RadSlideView>
        <!-- << slideview-interaction-xaml -->
    </Grid>
</telerik:RadContentView>

I realize I can get it to work by adding a GestureRecognizer in the frame but it took a while to figure out what was going wrong.
Yana
Telerik team
 answered on 29 Mar 2024
1 answer
425 views

I have a SlideView within a native MAUI ScrollView.  Unfortunately the ScrollView does not scroll when the touch event starts on the SlideView.  This worked in Xamarin.

I have managed to get SwipeGestureRecognizers for Up and Down working - but since I do not know how far has been swiped, I cannot convert this to a scroll action.

Are there any suggestions on how to fix the scrolling.

Didi
Telerik team
 answered on 09 Nov 2023
1 answer
116 views

I am new to Telerik controls and have been migrating a project from Xamarin to MAUI.

I have managed to get the RadSlideView indicator working and styled as I desire, but for some reason the indicators appear above the content instead of below it.

 


<ResourceDictionary><Style x:Key="IndicatorStyle" TargetType="telerik:SlideViewIndicator">

    <Style x:Key="IndicatorStyle" TargetType="telerik:SlideViewIndicator"> <Setter TargetName="ellipse" Property="Ellipse.Fill" Value="{DynamicResource Gray500}" /> <!-- Indicator does not appear without this setter when debugging, i do not know why. App then crashes without the debugger.--> </Style>

<Style TargetType="telerik:SlideViewIndicatorItem"> <Setter Property="ControlTemplate"> <Setter.Value> <ControlTemplate> <Grid WidthRequest="20" HeightRequest="10"> <VisualStateManager.VisualStateGroups> <VisualStateGroup Name="CommonStates"> <VisualState Name="Normal" /> <VisualState Name="Disabled"> <VisualState.Setters> <Setter TargetName="ellipse" Property="Ellipse.Fill" Value="{DynamicResource Gray500}" /> </VisualState.Setters> </VisualState> <VisualState Name="Selected"> <VisualState.Setters> <Setter TargetName="ellipse" Property="Ellipse.Fill" Value="{DynamicResource Green}" /> <Setter TargetName="ellipse" Property="Ellipse.WidthRequest" Value="8" /> <Setter TargetName="ellipse" Property="Ellipse.HeightRequest" Value="8" /> </VisualState.Setters> </VisualState> </VisualStateGroup> </VisualStateManager.VisualStateGroups> <Ellipse x:Name="ellipse" WidthRequest="8" HeightRequest="8" VerticalOptions="End" Fill="{DynamicResource Gray500}"> </Ellipse> </Grid> </ControlTemplate> </Setter.Value> </Setter> </Style></ResourceDictionary>

 

                        <telerik:RadSlideView
                            x:Name="RadSlideView"
                            IsVisible="{Binding HasSingleShareCertificatePrice, Converter={StaticResource InverseBooleanConverter}}"
                            ItemsSource="{Binding ShareCertificatePrices}"
                            IndicatorStyle="{StaticResource IndicatorStyle}"
                            CurrentIndex="{Binding SelectedIndex, Mode=TwoWay}"
                            NavigationButtonsVisibility="Collapsed"
                            InteractionMode="Pan"
                            >

 

None of the examples I can find result in the indicator being shown, apart from the strange property above.  This property then causes a crash without the debugger.

The Indicators appear above the control, i expect to find them below.

Steven
Top achievements
Rank 1
Iron
 answered on 02 Nov 2023
1 answer
303 views

Hi Telerik.

I need to use Grid inside RadScrollView.

Whereas when trying to use let say, Grid/StackLayout/CollectionView the child content doesn't occupy the complete width of that of the device.

 

NOTE:

1. The RadScrollView occupies the complete width of that of device, only the child content doesn't occupy the complete width.

2. If the RadScrollView is removed the same child content occupies the complete width.

 

Code:

 

Sample Page:

 

Thanks,

Mohammed Rameez Raza.

Didi
Telerik team
 answered on 31 Jul 2023
1 answer
145 views

Hi Telerik,

Is there any way to change the selected and unselected images indicator color for RadSlideView in MAUI.

 

NOTE: Have looked into the IndicatorStyle property, but there is not style property to change indicator color in it.

The below is the screenshot how it looks now.

 

 

Thanks,

Mohammed Rameez Raza. 

Didi
Telerik team
 answered on 27 Jul 2023
1 answer
194 views

Hi Telerik,

I am using RadSlideView to display images, but the to swipe from one image to another, the swipe is not working when done on the image.

Whereas when done anywhere outside of the image (i.e. any where inside RadSlideView other than image) it works.

 

The below is the code that I am using.

NOTE: Same code works fine in Xamarin and not in MAUI.

 

Thanks,

Mohammed Rameez Raza.

Lance | Senior Manager Technical Support
Telerik team
 answered on 25 Jul 2023
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?