Greetings,
I would like to know if it is possible to have a LIST<T> property as a member of the DataForm Entity.
Thank you for your time,
vagg
i am using xamarin and i am going to create a chart, the third party component that i using for the chart is the telerik. The chart is the pie chart. I am following the document of the telerik which is
http://docs.telerik.com/devtools/xamarin/controls/chart/how-to/chart-how-to-create-custom-palette
In the end, the android work well. However when i debug in the simulator, the chart only show me one color which is the first colour of my palette. Is the telerik not support the custom palette for IOS?
The following is my code
var series = new PieSeries();
series.ValueBinding = new Telerik.XamarinForms.Chart.PropertyNameDataPointBinding{PropertyName = "Value"};
series.ItemsSource = data1;
series.ShowLabels = true;
series.ValueBinding = new PropertyNameDataPointBinding("Value");
chart.Series.Add(series);
chart.HeightRequest = 400;
chart.Palette = CustomPalettes.CustomWhite;
chartlayout.Children.Add(chart);
Palette code:
class CustomPalettes{
static CustomPalettes(){
CreateCustomWhitePalette();
}
public static ChartPalette CustomWhite { get; private set; }
private static void CreateCustomWhitePalette(){
ChartPalette palette = new ChartPalette();
palette.Entries.Add(new PaletteEntry() { FillColor = Color.FromRgb(255, 35, 255), StrokeColor = Color.FromRgb(255, 255, 255) });
palette.Entries.Add(new PaletteEntry() { FillColor = Color.FromRgb(0, 255, 255), StrokeColor = Color.FromRgb(255, 255, 255) });
palette.Entries.Add(new PaletteEntry() { FillColor = Color.FromRgb(116, 255, 0), StrokeColor = Color.FromRgb(255, 255, 255) });
palette.Entries.Add(new PaletteEntry() { FillColor = Color.FromRgb(255, 156, 0), StrokeColor = Color.FromRgb(255, 255, 255) });
palette.Entries.Add(new PaletteEntry() { FillColor = Color.FromRgb(255, 0, 255), StrokeColor = Color.FromRgb(255, 255, 255) });
palette.Entries.Add(new PaletteEntry() { FillColor = Color.FromRgb(255, 0, 153), StrokeColor = Color.FromRgb(255, 255, 255) });
palette.Entries.Add(new PaletteEntry() { FillColor = Color.FromRgb(0, 173, 204), StrokeColor = Color.FromRgb(255, 255, 255) });
palette.Entries.Add(new PaletteEntry() { FillColor = Color.FromRgb(255, 51, 51), StrokeColor = Color.FromRgb(255, 255, 255) });
palette.Entries.Add(new PaletteEntry() { FillColor = Color.FromRgb(255, 255, 51), StrokeColor = Color.FromRgb(255, 255, 255) });
CustomWhite = palette;}}
Has anyone been able to use Xamarin Forms Player https://github.com/MobileEssentials/FormsPlayer with Telerik Controls. This tool, at least when using Android, reduces the 'shoot yourself in the face' factor down considerably when tweaking up the design for Xamarin Forms.
I have a folder for DummyView.xaml with a corresponding DummyView.json that I use to try out different design things. Instead of waiting for a rebuild, deploy, then view cycle, as soon as I hit save, I see the updated layout instantly. However, with the Telerik ListView at least, I just get a bunch of exceptions and can't see the layout.
Hi everyone,
I'd like to rotate the Y and X axis labels. I only found that property for the title label
TKChartNumericAxis powerAxis = new TKChartNumericAxis ();
powerAxis.Style.TitleStyle.RotationAngle
But this is only for the title. I need to rotate all the value labels on the axis.
Is that posible?
Thanks!
An exception that says "security failed" occured.Can you please suggest me any solution.
Thanks & Regards,
Lakshmi Priya
I have added the RadListview to my Xamarin.Forms project in a Xaml page and bound some items to it.
When I scroll the list there is no visible scrollbar indicator. Is there some property to enable the display of the indicator on the listview?
I am using a common ViewModel/Model/Services library that is shared between a WPF project and Xamarin Forms project.
When I retrieve a fresh list of a large number of items, I clear the items (derives from ObservableCollection) on the UI thread, then add a bunch of items to the collection NOT on the UI Thread, then call the following on the UI Thread:
OnPropertyChanged(new PropertyChangedEventArgs("Count"));
OnPropertyChanged(new PropertyChangedEventArgs("Item[]"));
OnCollectionChanged(new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Reset));
For WPF and non_telerik ListView, this works great and I don't have to jam up the UI Thread with every single Add to the collection. For the RadListView, this doesn't work and I end up with an empty list (from a view perspective). Now, if I just call Add for every single item on the UI thread, the RadListView updates, but it jams up the UI thread and has a bad UX (you can see each item added being added visually).
In the code behind, I even listened for any NotifyCollectionChangedAction.Reset events, and then remove and set the ItemsSource binding, and that doesn't work either.
Any tips on getting this working without having to call Add on the UI thread for every item? This is literally the only thing in the way from me 'shouting on the rooftops' why everyone should use Telerik Xamarin Forms controls.