I think this issue must have come about in a recent version, since it was not a problem in the past, but the time labels on my chart in Android are labeled as 11 hours earlier thanthe actual values. Here is some sample code, and I've attached a screenshot. The current time was 2:47pm, but the chart shows 3:46am. This problem only happens on Android. iOS is fine. Any ideas?
<chart:RadCartesianChart>
<chart:RadCartesianChart.HorizontalAxis>
<chart:DateTimeContinuousAxis MajorStep="30" MajorStepUnit="Second" LabelFormat="T" />
</chart:RadCartesianChart.HorizontalAxis>
<chart:RadCartesianChart.VerticalAxis>
<chart:NumericalAxis/>
</chart:RadCartesianChart.VerticalAxis>
<chart:RadCartesianChart.Series>
<chart:SplineSeries ItemsSource="{Binding DateTimeValues}">
<chart:SplineSeries.CategoryBinding>
<chart:PropertyNameDataPointBinding PropertyName="DateTime"/>
</chart:SplineSeries.CategoryBinding>
<chart:SplineSeries.ValueBinding>
<chart:PropertyNameDataPointBinding PropertyName="Value"/>
</chart:SplineSeries.ValueBinding>
</chart:SplineSeries>
</chart:RadCartesianChart.Series>
</chart:RadCartesianChart>
public partial class MainPage
{
public MainPage()
{
InitializeComponent();
BindingContext = new ViewModel();
}
public class DateTimeValue
{
public DateTime DateTime { get; set; }
public double Value { get; set; }
}
public class ViewModel
{
public List<DateTimeValue> DateTimeValues { get; set; }
public ViewModel()
{
DateTimeValues = new List<DateTimeValue>
{
new DateTimeValue { DateTime = DateTime.Now.AddSeconds( -30 * 1 ), Value = 1 },
new DateTimeValue { DateTime = DateTime.Now.AddSeconds( -30 * 2 ), Value = 3 },
new DateTimeValue { DateTime = DateTime.Now.AddSeconds( -30 * 3 ), Value = 2 },
new DateTimeValue { DateTime = DateTime.Now.AddSeconds( -30 * 4 ), Value = 5 }
};
}
}
}
I has add telerik packages to my project
In XAML;
<?xml version="1.0" encoding="utf-8"?>
<ContentPage
xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:telerikInput="clr-namespace:Telerik.XamarinForms.Input;assembly=Telerik.XamarinForms.Input"
xmlns:local="clr-namespace:TExtA" x:Class="TExtA.TExtAPage">
<ContentPage.Content>
<StackLayout BackgroundColor="Aqua">
<telerikInput:RadAutoComplete HeightRequest="40" SuggestMode="Suggest" IsVisible="true" IsEnabled="true" SuggestionViewHeight="100" ShowSuggestionView="true" BackgroundColor="Black" x:Name="autoComplete" Watermark="Search here..." />
</StackLayout>
</ContentPage.Content>
</ContentPage>
In CS:
this.autoComplete.ItemsSource = new List<string>()
{
"Freda Curtis",
"Jeffery Francis",
"Eva Lawson",
"Emmett Santos",
"Theresa Bryan",
"Jenny Fuller",
"Terrell Norris",
"Eric Wheeler",
"Julius Clayton",
"Alfredo Thornton",
"Roberto Romero",
"Orlando Mathis",
"Eduardo Thomas",
"Harry Douglas",
"Parker Blanton",
"Leanne Motton",
"Shanti Osborn",
"Merry Lasker",
"Jess Doyon",
"Kizzie Arjona",
"Augusta Hentz",
"Tasha Trial",
"Fredda Boger",
"Megan Mowery",
"Hong Telesco",
"Inez Landi",
"Taina Cordray",
"Shantel Jarrell",
"Soo Heidt",
"Rayford Mahon",
"Jenny Omarah",
"Denita Dalke",
"Nida Carty",
"Sharolyn Lambson",
"Niki Samaniego",
"Rudy Jankowski",
"Matha Whobrey",
"Jessi Knouse",
"Vena Rieser",
"Roosevelt Boyce",
"Kristan Swiney",
"Lauretta Pozo",
"Jarvis Victorine",
"Dane Gabor"
};
Build and run no error, but on simulator not show anything, can touch, focus, type entrytext, not show watermark
XAmarin Forms 2.3.4.247
Telerik UI .2017.1.10118.233
In application I have MasterDetailPage and Detail page is set to NavigationPage. Several pages under NavigationPage have ListView control with swiping enabled. Swiping works fine with Android. In iOS, however, when I swipe ListView item to the right it swipes the item AND also slides out the Master Detail menu.
I would rather not set
IsGestureEnabled =
false
;
on MasterDetailPage, because if I am not at the root page in Navigation stack, then there is no way to bring up Master Detail menu (except for navigating back, of course).
Could you propose any solution for this? Thanks.
Hello,
When reorder is enabled via IsItemsReorderEnabled ListView calls CollectionChanged event for underlying ObservableCollection.
But in some cases it reports wrong new index and though visually item order is as expected underlying ObservableCollection gets wrong order.
To reproduce the issue bind just 2 strings to the ListView, say Item1 and Item2.
Drag first string (Item1) under second (Item2), ListView will look like this:
Item2
Item1
But ObservableCollection still has this:
Item1 (wrong!)
Item2 (wrong!)
If you subscribe to CollectionChanged event you will see that reported new item index is wrong, it should be 1 but in fact it is 0, as if the item was moved from 0 to 0.
Now start over, then drag second item (Item2) on top of first item (Item1), ListView will look like this:
Item2
Item1
And ObservableCollection properly updated to:
Item2 (correct)
Item1 (correct)
It looks like when an item is moved down its index is less by 1 than it should be.
Please check.
Yours faithfully
Vitaly Knyazev
Hi,
I am trying to have two pickereditors on two different model properties on the same dataform but i cant seem to get both data sources to work. Do i need a separate PropertyDataSourceProvider for each sata source?
I am trying to create a screen with 2 tabs, each of the tabs contains a dataform. However, both tabs are bound to the same underlying screen.
Using DataAnnotations, how can this be achieved, as each of the dataforms paints the full screen, not the fields I want on each screen.
Hi,
I am evaluating xamarin UI. Using calendar example provided I came across that week view shows a week on top of the calendar and the rest is jst blank. How can we show a grid or list with the appointments for the week in this area.
Thank you in advance