Telerik Forums
UI for Xamarin Forum
4 answers
124 views

I'm trying to draw GridLines on X axis of RadCartesianChartView with this code:

CartesianChartGrid grid = new CartesianChartGrid();
            grid.MajorXLinesRenderMode = GridLineRenderMode.All;
            grid.LineThickness = 5;
            grid.LineColor = ContextCompat.GetColor(Activity, Resource.Color.red);
            grid.MajorLinesVisibility = GridLineVisibility.X; 
            _chart.Grid = grid;

Instead, I get horizontal lines from Y axis.

The grid also ignores LineThickness and LineColor.

This is the code for X axis:

DateTimeCategoricalAxis horizontalAxis = new DateTimeCategoricalAxis();
            horizontalAxis.LineThickness = 5;
            horizontalAxis.LabelSize = 32;
            horizontalAxis.MajorTickInterval = 7;
            horizontalAxis.LabelFormat = "MMM dd";
            PaletteEntry hAxisEntry = customPalette.GetEntry(ChartPalette.HorizontalAxisFamily);
            hAxisEntry.SetCustomValue(CategoricalAxis.LineColorKey, Resources.GetString(Resource.Color.black));
            hAxisEntry.SetCustomValue(CategoricalAxis.LabelColor, Resources.GetString(Resource.Color.dark_blue));
            hAxisEntry.SetCustomValue(CategoricalAxis.TickColorKey, Resources.GetString(Resource.Color.black));

 

Victor
Telerik team
 answered on 28 Sep 2016
3 answers
37 views

I posted in this forum about a week ago but the post has been deleted???

 

When will the beta be out for Xamarin Android? It is out already for UI for Android but not for Xamarin.

Deyan
Telerik team
 answered on 28 Sep 2016
1 answer
68 views

If orientation changes while Trackball is visible, the Trackball isn't removed from view (neither the line nor the tooltip).

 

 

Miroslava
Telerik team
 answered on 27 Sep 2016
1 answer
84 views

Hi,

i am using a Chart in Xamarin iOS with custom labels for the YAxis. I am trying to display some labels with a certain text color and other labels with another text color. I tried setting Chart.YAxis.Style.LabelStyle.TextColor, but that changes the color for all labels. Is there any possibility to achieve what i need?

 

Thanks!

Miroslava
Telerik team
 answered on 27 Sep 2016
2 answers
200 views

I'm using RadListView for my Xamarin.Forms project, which is targetted to iOS and Android.
The problem is, that on some views, I'm not able to enforce *RadListView* looks "UI fit" on iOS, even using *FillAndExpand* VerticalOptions, packing list to StackLayouts/Grids (also with *FillAndExpand*).

I haven't met anything like that on Android, the problem is only iOS.

When I'm jumping to "standard" Xamarin.Forms *ListView*, list is fitting to the screen on both - iOS and Android.

I'm using latest release of Telerik for Xamarin.Forms - 2016.3.914.

Android:
http://s15.postimg.org/4zvsivh4r/Android.png

iOS:
http://s22.postimg.org/n1cpwstf5/i_OS.png

In short, how the UI is build:

At *app.xaml* side, I've feature called *ContentPresenter* in order to have custom toolbar on top of the screen:

<ControlTemplate x:Key="PageHeaderMenuTemplate">
    <Grid RowSpacing="0">
        <Grid.RowDefinitions>
            <RowDefinition Height="50"/>
            <RowDefinition Height="*"/>
        </Grid.RowDefinitions>
        <!-- ###### -->
        <!-- Header -->
        <!-- ###### -->
        <StackLayout Grid.Row="0" HeightRequest="50" HorizontalOptions="FillAndExpand" VerticalOptions="Start" Orientation="Horizontal" BackgroundColor="Blue">
            <!-- Header components here -->
        </StackLayout>
        <!-- ########### -->
        <!-- Custom View -->
        <!-- ########### -->
        <StackLayout Grid.Row="1">
            <ContentPresenter HorizontalOptions="FillAndExpand" VerticalOptions="FillAndExpand"/>
        </StackLayout>
    </Grid>
</ControlTemplate>

Then, I'm using ContentPresenter - *PageHeaderMenuTemplate* on all views, like:

<ContentView ControlTemplate="{StaticResource PageHeaderMenuTemplate}">
  <Grid RowSpacing="0">
    <Grid.RowDefinitions>
      <RowDefinition Height="*"/>
      <RowDefinition Height="50"/>
      <RowDefinition Height="50"/>
    </Grid.RowDefinitions>
 
    <!-- ######################### -->
    <!-- Page Details View Content -->
    <!-- ######################### -->
    <StackLayout Grid.Row="0" HorizontalOptions="FillAndExpand" VerticalOptions="FillAndExpand" Orientation="Vertical" x:Name="PageDetailsViewContent"/>
 
    <!-- ################### -->
    <!-- Details Footer -->
    <!-- ################### -->
    <Grid Grid.Row="1" HeightRequest="50" HorizontalOptions="FillAndExpand" VerticalOptions="End" ColumnSpacing="0" BackgroundColor="Aqua">
      <!-- Details Footer components here -->
    </Grid>
 
    <!-- ###### -->
    <!-- Footer -->
    <!-- ###### -->
    <StackLayout Grid.Row="2" HeightRequest="50" HorizontalOptions="FillAndExpand" VerticalOptions="End" Orientation="Horizontal" BackgroundColor="Blue">
      <!-- Footer components here -->
  </Grid>
</ContentView>

Then in code behind, I'm replacing *PageDetailsViewContent* component, like:
PageDetailsViewContent.Children.Clear();
PageDetailsViewContent.Children.Add(content);

And the content, is build based on below view:

<ContentView
    xmlns:myapp="clr-namespace:Myapp;assembly=Myapp"
    xmlns:dataControls="clr-namespace:Telerik.XamarinForms.DataControls;assembly=Telerik.XamarinForms.DataControls"
    xmlns:listView="clr-namespace:Telerik.XamarinForms.DataControls.ListView;assembly=Telerik.XamarinForms.DataControls"
             x:Class="Myapp.Views.PageDetailsTab.PageDetailsTabAttachmentsView"
             x:Name="PageDetailsTabAttachmentsPage">
    <Grid RowSpacing="0">
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="*"/>
        </Grid.RowDefinitions>
        <!-- Given Page Additional Header Tab -->
        <StackLayout Grid.Row="0" HorizontalOptions="FillAndExpand" VerticalOptions="StartAndExpand" Orientation="Vertical">
            <!-- Given Page Additional Header Tab components here -->
        </StackLayout>
        <!-- ########### -->
        <!-- RadListView -->
        <!-- ########### -->
        <dataControls:RadListView x:Name="List" Grid.Row="1" HorizontalOptions="FillAndExpand" VerticalOptions="FillAndExpand" ItemsSource="{Binding MyItemsCollection}" BackgroundColor="#ffffff">
            <dataControls:RadListView.ItemTemplate>
                <DataTemplate>
                    <listView:ListViewTemplateCell>
                        <listView:ListViewTemplateCell.View>
                            <Grid HorizontalOptions="FillAndExpand" VerticalOptions="FillAndExpand" Padding="10,10,10,10">
                                <!-- List Item View Cell components here -->
                            </Grid>
                        </listView:ListViewTemplateCell.View>
                    </listView:ListViewTemplateCell>
                </DataTemplate>
            </dataControls:RadListView.ItemTemplate>
        </dataControls:RadListView>
    </Grid>
</ContentView>

Indeed for this is an issue at iOS, but any workaround for now?

Thanks a lot.

Pavel R. Pavlov
Telerik team
 answered on 26 Sep 2016
1 answer
87 views

Hi,

Is there a way to cancel the SnapMode on Trackball, like there is in Android?

 

Deyan
Telerik team
 answered on 21 Sep 2016
1 answer
147 views
Hi, I'm using Xamarin Studio with Telerik UI since few days. I found tutorials about listView, Calendar and customization. But I found nothing about taking a picture , a movie (also display them) or getting GPS Position.
Do you know if it's possible to do that kind of things with telerik UI?
If yes, do you have a link about it?
Thanks
Lance | Senior Manager Technical Support
Telerik team
 answered on 20 Sep 2016
3 answers
195 views

Hi Support:

After evaluating the product we decided to buy the product today.

We added the new dlls (R3 2016 v 2016.3.914) in PCL, Droid and iOS.  Running the project in Android works fine as always, but when we try tu build the project in iOS we got this strange reason that did not happened before:

 

Can not resolve reference: C:/Program Files (x86)/Reference Assemblies/Microsoft/Framework/Xamarin.iOS/v1.0/Facades/System.Private.CoreLib.InteropServices.dll

We are using Xamarin Forms version 2.3.1.114. 

Our IDE is Visual Studio 2015, and we are using MacInCloud for iOS build machine.

This was running fine before this upgrade.

How could I debug this.

Thanks

 

David





 

 

 

 

 

FS
Top achievements
Rank 1
 answered on 20 Sep 2016
1 answer
52 views

Hi,

I am using a RadSideDrawer as shown in this link (http://docs.telerik.com/devtools/xamarin/controls/sidedrawer/sidedrawer-overview).

I have a Grouped listview to show hierarchical data. When I select an item from side drawer for the first time, it alerts correct information, but if I try to select second item it crashes. 

Is there any working sample on Side Drawer, can someone help me with this?

       private void M4ReportDrawer_SelectionChanged(object sender, NotifyCollectionChangedEventArgs e)
        {
            object cc = e.NewItems[0];
            string reportName =  (cc as M4DrawerItem).ReportName;
             this.DisplayAlert("Selected item:", reportName, "OK");
            (this.Content.FindByName<RadSideDrawer>("M4ReportDrawer")).IsOpen = false;
        }

 

Regards,

Prava

Lance | Senior Manager Technical Support
Telerik team
 answered on 19 Sep 2016
1 answer
110 views
Is there a way to get the day cell date that's selected or long pressed on? I'm wanting to pre populate date information with the date when a user selects or long press on the cell
Deyan
Telerik team
 answered on 19 Sep 2016
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?