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));
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.
If orientation changes while Trackball is visible, the Trackball isn't removed from view (neither the line nor the tooltip).
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!
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
>
PageDetailsViewContent.Children.Clear();
PageDetailsViewContent.Children.Add(content);
<
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.
Hi,
Is there a way to cancel the SnapMode on Trackball, like there is in Android?
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
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