Telerik Forums
UI for Xamarin Forum
1 answer
114 views

 

I saw the bottom slidedrawer below,

https://mupaste.com/sFKxqMfJ.png

 

But I can't find any attributes that is able to change the slide orientation,

how can I change the slide orientation? and BTW, is it possible to keep a specified height visible in main menu ?

 

Thank you!

Sheng Kuo
Top achievements
Rank 1
 answered on 17 Jun 2017
3 answers
122 views

Hi,

We are seeing much better performance with activity indicators in on Android app (not appcompat) using Skiasharp 1.5.8 serving up pages that have busy indicators and gauges. With Skiasharp 1.5.x it's painfully slow at times.

With iOS the current 1.5.x lib works fine.

When are you going to make the controls compatible with Skiasharp 1.5.8? seeing as the control suite now has a dependency on that library I'd assume you'd want latest version assuming it passes your tests.

I already have a ticket opened/closed on this one as we were going round in circles.

Would be nice if 1.5.8 support could be added very soon.

Thanks.

 

N Mackay
Top achievements
Rank 1
 answered on 16 Jun 2017
3 answers
136 views

I need to always have a row selected.  Therefore, I need to disallow or stop the de-selection of the currently-selected row.  The SelectionChanged event fires twice, once for the old Item being removed from SelectedItems and another for adding the new Item to SelectedItems.

I thought of attempting to use ItemTapped in conjunction with SelectionChanged but a) I also need to be able to select a row programmatically and b) the ItemTapped even fires sporadically on iOS.  Sometimes a tap will fire it; sometimes it won't.

 

I'm in SelectionMode=Single.

Stefan Nenchev
Telerik team
 answered on 15 Jun 2017
3 answers
163 views

I am unable to retrieve the Value property of the RadShapeRating object in my xaml either by binding or by retrieving the value in my code behind after a button click event. Also, the ValueChanged event doesn't seem to fire. I'm also unable to look through the RadShapeRating children because the classes are protected. Here is my XAML:

<?xml version="1.0" encoding="UTF-8"?>
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms" NavigationPage.HasNavigationBar="false" xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" x:Class="Pages.AppointmentRatingPage" Title="Appointment Rating" xmlns:helpers="clr-namespace:Helpers;assembly=AssistForms" BackgroundImage="introbackground.png" xmlns:local="clr-namespace:AssistForms;assembly=AssistForms" xmlns:rating="clr-namespace:Telerik.XamarinForms.Input;assembly=Telerik.XamarinForms.Input" xmlns:userControls="clr-namespace:CustomControlls;assembly=AssistForms">
    <ContentPage.Resources>
        <ResourceDictionary>
        </ResourceDictionary>
    </ContentPage.Resources>
    <ContentPage.Content>
        <StackLayout Padding="30,100,30,70" HorizontalOptions="Center" VerticalOptions="Center">
            <Frame Padding="3" BackgroundColor="Gray">
                <StackLayout BackgroundColor="#D3D3D3">
                    <Image Source="mobilefit" Aspect="AspectFit" HeightRequest="35" HorizontalOptions="Start" Margin="5,5,0,0">
                    </Image>
                    <Grid>
                        <Image Source="introbackground.png" Aspect="AspectFill" />
                        <StackLayout VerticalOptions="FillAndExpand" Spacing="10" Padding="5,10,5,5">
                            <Label HorizontalTextAlignment="Center" FontSize="Large" VerticalOptions="Start">Rate your experience at the Y!</Label>
                            <Label HorizontalTextAlignment="Center" FontSize="15" TextColor="White" Text="{Binding Message}"/>
                            <Frame Margin="20,0,20,0">
                                <StackLayout Padding="20,20,20,50" HorizontalOptions="Center" VerticalOptions="Center" BackgroundColor="White" Spacing="30">
                                    <Label HorizontalOptions="Center" TextColor="#1E90FF" FontSize="18">Choose Your Rating</Label>
                                    <rating:RadShapeRating x:Name="rating" HorizontalOptions="Center"  Value="{Binding RatingValue, Mode=TwoWay}" ValueChanged="Handle_ValueChanged"  ></rating:RadShapeRating>

                                </StackLayout>
                            </Frame>
                            <StackLayout>
                                <Button Text="Don't Ask Again" TextColor="White" />
                                <StackLayout Orientation="Horizontal" VerticalOptions="Start">
                                    <Button Text="Cancel" HorizontalOptions="CenterAndExpand" TextColor="White" Command="{Binding CancelCommand}">
                                    </Button>
                                    <Button Text="Send" HorizontalOptions="CenterAndExpand" TextColor="White" FontAttributes="Bold" Clicked="Handle_Clicked">
                                    </Button>
                                </StackLayout>
                            </StackLayout>
                        </StackLayout>
                    </Grid>
                </StackLayout>
            </Frame>
        </StackLayout>
    </ContentPage.Content>
</ContentPage>

 

Here is my code behind:

using System;
using Xamarin.Forms;
using ViewModels;
using AssistForms;


namespace Pages
{
    public partial class AppointmentRatingPage : ContentPage
    {
        void Handle_ValueChanged(object sender, Xamarin.Forms.ValueChangedEventArgs e)
        {
            throw new NotImplementedException();
        }



        void Handle_Clicked(object sender, System.EventArgs e)
        {
            foreach (var child in rating.Children)
            {
                var childChild = child.BackgroundColor;
                //Telerik.XamarinForms.Input.RatingItem childRating = rating as Telerik.XamarinForms.Input.RatingItem;
                //  var backgroundCole = child.
                //RatingItem ratingItem = child as RatingItem;
            }
        }



        public string NavigationPageName { get; set; }


        public AppointmentRatingViewModel ViewModel
        {
            get;
            set;
        }



        public AppointmentRatingPage(AppointmentRating appointmentRating)
        {

            InitializeComponent();

            NavigationPage.SetHasNavigationBar(this, false);
            App.MasterDetailPageProperty.IsGestureEnabled = false;

            NavigationPageName = "AppointmentRating";

            ViewModel = new AppointmentRatingViewModel(appointmentRating);

            BindingContext = ViewModel;


        }



        protected override void OnAppearing()
        {
            base.OnAppearing();
        }

    }
}

 

Lance | Senior Manager Technical Support
Telerik team
 answered on 14 Jun 2017
1 answer
205 views

Hi, I would like to add a Label over a line annotation. Is it possible? Basically it would be something like the screenshot attached.

I would also like to hide the vertical axis completely... can I do that?

 

Thanks

Lance | Senior Manager Technical Support
Telerik team
 answered on 12 Jun 2017
1 answer
160 views

Hi,

Autocomplete control and suggestions list is covered by the android keyboard when entering text.

Please Advise.

Thank you.

Lance | Senior Manager Technical Support
Telerik team
 answered on 12 Jun 2017
3 answers
128 views

Hi

I have an ObservableCollection of a class object which has some properties such as: datetime, value, and category_id

I would line to create a multi series chart depending on category_id

eg:

products with category_id=1 one lineseries. X axis :datetime, Y axis: value

products with category_id=2 another lineseries in the same Chart. X axis :datetime, Y axis: value

etc.

Could you provide to me a solution for code behind and for MVVM? I think I have to use Data Triggers but I am facing some problems implementing them.

tnx in advance

Lance | Senior Manager Technical Support
Telerik team
 answered on 12 Jun 2017
1 answer
100 views

When I use

 

dataForm.MetadataProvider = new CustomMetadataProvider();

dataForm.Source = source;

 

DataForm doesn work in UWP. But work in Andorid.

Lance | Senior Manager Technical Support
Telerik team
 answered on 08 Jun 2017
3 answers
193 views
I've been trying to figure out how to add ios controls to the VS 2015 toolbox.  When I ran the Telerik setup, the Visual Studio 2015 integration was checked. however there isn't a new tab for the Telerik controls.  I even tried adding it manually through the 'Choose Items' option ,NEt Components and browsing to Telerik.Xamarin.iOS.dll.  I received an error stating that there are no Components available.  When I tried to run the Telerik example I saw that file added as a reference.  Does that mean I have to add the controls and programaticaly position them at runtime or is there a way to add them to the toolbox and use them in design time?  When I add the windows phone controls in a windows phone project they appear in the toolbnox as expected so I'm not sure why the same doesn't work for iOS,
Lance | Senior Manager Technical Support
Telerik team
 answered on 08 Jun 2017
1 answer
278 views

I am kind of new in xaml and Telerik controls.

I am using RadSideDrawer for my ContentPage.Content.

I would like to change RadSideDrawer MainContent on a button Click.

this is my code:

var incidentButton = new Button
            {
                Text = "Incident Button",
                WidthRequest=30
            };
 
            incidentButton.Clicked += OnIncidentButtonClicked;
 
            var aboutButton = new Button
            {
                Text = "About Button",
                WidthRequest = 30
            };
 
            aboutButton.Clicked += OnAboutButtonClicked;
 
            var drawerContent = new StackLayout();
            drawerContent.Children.Add(new Button { Text="alfa"});
            drawerContent.Children.Add(new Button { Text = "beta" });
 
            var mainContent = new StackLayout();
            
            mainContent.Children.Add(incidentButton);
            mainContent.Children.Add(aboutButton);
 
            var sideDrawer = new RadSideDrawer
            {
                MainContent = mainContent,
                DrawerContent = drawerContent,
                DrawerLength = 200
            };
            Content = sideDrawer;
 
 
            void OnIncidentButtonClicked(object sender, EventArgs e)
            {
                //Here i would like to change the sideDrawer.MainContent to another Content
 
            }

 

any suggestions?

Lance | Senior Manager Technical Support
Telerik team
 answered on 07 Jun 2017
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?