Telerik Forums
UI for Xamarin Forum
0 answers
77 views

On iOS, when  the Selected Item is the last item in the Carousal and that Item is removed from the ObservableCollection, the result is the user can only navigate between 2 carousal items even though there are more. The Dot Indicator clearly shows you have more than 5 items but only the last 2 items can be reached through swiping.

 

Seen on

Telerik UI - 2021.2.728.1

XForms - 5.0.0.2083

Manish
Top achievements
Rank 1
 updated question on 08 Nov 2021
1 answer
71 views

Hi there,

i  have a list of images inside my slides that i want to zoom and pan on.

But the swiping gesture gets recognized so fast that it fires before the zoom gesture can be performed.

Does anyone have an idea to do so or can show me a working example of image gallery with zooming and paning inside SlideView?

 

Thank you all and have a nice day.

Lance | Manager Technical Support
Telerik team
 answered on 13 Oct 2021
1 answer
119 views

Hi. I have a question I am using a SlideView in Xamarin Forms (vs 4.8.0.1821) and Telerik (2020.2.624.1), but I have a problem when it is to display the images on the Android I get the following error:

ImageLoader SourceHandler: Could not retrieve image or image data was invalid: Uri (Does not load images in SlideView)

I need to enable some special permission or because I cannot view the images. In the iOS they are displayed normally but the android is the problem, if you can help me solve this problem. Beforehand thank you very much.

Didi
Telerik team
 answered on 28 Jan 2021
1 answer
321 views
Hello!
Is it possible to display multiple content pages on one slidevliew page?
I want to build an image galery where you can see multiple images like AppleĀ“s CoverFlow.

Best regards,
Nico
Yana
Telerik team
 answered on 27 Jan 2021
4 answers
650 views

I have a number of items in my template I am trying to bind custom objects to. That part works fine for the same control in other forms etc but the property change code it never fired

 

 

 public static readonly BindableProperty RowItemProperty = BindableProperty.Create(
             nameof(RowItem),
             typeof(CSFormSwitchLine),
             typeof(CSSwitch),
             defaultValue: null,
             defaultBindingMode: BindingMode.TwoWay,
            propertyChanged: RowItemUpdated
        );

        public CSFormSwitchLine RowItem { get; set; }

        private static void RowItemUpdated(BindableObject bindable, object oldValue, object newValue)
        {

 

 

Simon
Top achievements
Rank 1
Veteran
 answered on 29 May 2020
3 answers
115 views

Hi

Listview in the SlideView not working.

Error;

Value cannot be null. 
Line 1

Yakup
Top achievements
Rank 1
 answered on 25 Mar 2020
2 answers
73 views

Hi,

LegendProvide in the SlideView not working

 

ErrorPosition 171:49. Cannot assign property "LegendProvider": Property does not exist, or is not assignable, or mismatching type between value and property

ErrorPosition 171:49. Can not find the object referenced by `pieChartOperation`


Yakup
Top achievements
Rank 1
 answered on 25 Mar 2020
2 answers
65 views

I am using RadSlideView in my project. It contains of ContentViews each of them is RelativeLayout with some content. Previously I was using "RelativeToParent" constraing, but now I need to use "RelativeToView". If I use RelativeToView constaint, I have this exception: "System.ArgumentNullException: 'Value cannot be null. Parameter name: key'. This exception occurs only when I place my relative layout inside the SlideVIew and use RelativeToView constraint.

In this case exception occurs:

<telerikPrimitives:RadSlideView>
    <telerikPrimitives:RadSlideView.ItemsSource>
        <x:Array Type="{x:Type ContentView}">
            <ContentView>
                <RelativeLayout>
                    <Label x:Name="lbl"
                           Text="RelativeLayout"
                           RelativeLayout.XConstraint = "{ConstraintExpression Type=RelativeToParent,
                           Property=Width, Factor=0.5, Constant=-50}"
                           RelativeLayout.YConstraint = "{ConstraintExpression Type=RelativeToParent,
                           Property=Height, Factor=0.5, Constant=-150}" />
                    <BoxView Color="Blue"
                             RelativeLayout.XConstraint = "{ConstraintExpression Type=RelativeToView, ElementName=lbl,
                             Property=X, Factor=1, Constant=-30}"
                             RelativeLayout.YConstraint = "{ConstraintExpression Type=RelativeToView, ElementName=lbl,
                             Property=Y, Factor=1, Constant=30}"
                             RelativeLayout.WidthConstraint = "150" RelativeLayout.HeightConstraint = "100" />
                </RelativeLayout>
            </ContentView>
        </x:Array>
    </telerikPrimitives:RadSlideView.ItemsSource>
</telerikPrimitives:RadSlideView>

 

In this case everything is okay (I don't place RelativeLayout into the RadSlideVIew):

<RelativeLayout>
            <Label x:Name="lbl"
                   Text="RelativeLayout"
                   RelativeLayout.XConstraint = "{ConstraintExpression Type=RelativeToParent,
                   Property=Width, Factor=0.5, Constant=-50}"
                   RelativeLayout.YConstraint = "{ConstraintExpression Type=RelativeToParent,
                   Property=Height, Factor=0.5, Constant=-150}" />
            <BoxView Color="Blue"
                     RelativeLayout.XConstraint = "{ConstraintExpression Type=RelativeToView, ElementName=lbl,
                     Property=X, Factor=1, Constant=-30}"
                     RelativeLayout.YConstraint = "{ConstraintExpression Type=RelativeToView, ElementName=lbl,
                     Property=Y, Factor=1, Constant=30}"
                     RelativeLayout.WidthConstraint = "150" RelativeLayout.HeightConstraint = "100" />
        </RelativeLayout>

       

 

 

Didi
Telerik team
 answered on 21 Oct 2019
5 answers
39 views

I need to know if it's possible to change animation direction for the wrap when navigating the SlideView by SelectedIndex, so IsInfinateScrolling works with SelectedIndex navigation.  

When navigating from the last element in the collection, back to the first, or from first element directly to the last by updating the Bound SelectedIndex property is there a way to reverse the animation?

When IsInfiniteScrollingEnabled="True" I believe that the animation should continue in the same direction even when you're wrapping from the last element to the first, or the first element to the last so you can have a seamless infinite navigation experience.  

 

(the --> and <-- below are animation direction)

Current:(IsInfiniteScrollingEnabled="True") 

SelectedIndex=0 

SelectedIndex=1 -->

SelectedIndex=2 -->

(Last item)SelectedIndex=3 -->

SelectedIndex=0 <--  (This animation is opposite of the last several)

 

Desired:(IsInfiniteScrollingEnabled="True")

SelectedIndex=0
SelectedIndex=1 -->
SelectedIndex=2 -->
(Last item)SelectedIndex=3 -->
SelectedIndex=0 --> (Same direction as last animation)

Is this currently possible in the SlideView Control?

John
Top achievements
Rank 1
 answered on 20 Jun 2019
2 answers
345 views

HI, I follow this

https://docs.telerik.com/devtools/xamarin/knowledge-base/slideview-access-parent-bindingcontext

for the BindingContext, but now I need to set the focus to a RadEntry inside a content view. The ViewModel call the function with the MessagingCenter, but I do not know how to access the RadEntry in the code behind.

View:

<telerikPrimitives:RadSlideView x:Name="SlideView" SelectedIndex="{Binding SlideViewIndex}">
    <telerikPrimitives:RadSlideView.Commands>
        <commands:CustomSlideViewCommand Id="SlidingToIndex" Command="{Binding BindingContext.SlidindToIndexCommand}"/>
        <commands:CustomSlideViewCommand Id="SlidedToIndex" Command="{Binding BindingContext.SlidedToIndexCommand}" />
    </telerikPrimitives:RadSlideView.Commands>
    <telerikPrimitives:RadSlideView.ItemsSource>
        <x:Array Type="{x:Type ContentView}">
            <ContentView x:Name="Etape1CV">
                <StackLayout Margin="10" x:Name="Etape1SL">
                    <Label>Scanner ou entrer un code de localisation</Label>
                    <Entry x:Name="TestEntry">ALLO</Entry>
                    <telerikInput:RadEntry x:Name="CodeLoca" WatermarkText="Code" IsTabStop="True" />
                </StackLayout>
            </ContentView>
            <ContentView>
                <Label HorizontalOptions="Center"
                       VerticalOptions="CenterAndExpand"
                       Text="Other View"
                       TextColor="Blue" />
            </ContentView>
            <ContentView>
                <Label HorizontalOptions="Center"
                       VerticalOptions="CenterAndExpand"
                       Text="Another View"
                       TextColor="Red" />
            </ContentView>
        </x:Array>
    </telerikPrimitives:RadSlideView.ItemsSource>
</telerikPrimitives:RadSlideView>

 

CodeBehind

public DecompteLocalisationView ()
{
    InitializeComponent ();
 
    BindingContextHelper.CurrentPageBindingContext = this.BindingContext;
 
    MessagingCenter.Subscribe<string>(this, "SetFocusToCodeLoca", (sender) => {
 
        foreach(ContentView View in SlideView.ItemsSource)
        {
            //CHECK THE VIEW NAME TO FIND ETAPE1CV
            //THEN SET THE FOCUS
            //RadEntry Tb = CodeLoca as RadEntry;
            //Tb.Focus();
            //if (Tb.Text.Length > 0)
            //{
            //    Tb.CursorPosition = 0;
            //    Tb.SelectionLength = Tb.Text.Length;
            //}
        }
    });
 
}

 

Thanks

Didi
Telerik team
 answered on 04 Feb 2019
Top users last month
Dominik
Top achievements
Rank 1
Giuliano
Top achievements
Rank 1
Dominic
Top achievements
Rank 1
Glendys
Top achievements
Rank 1
NoobMaster
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?