I'm having a hard time believing that this can't be done. am I doing somethign wrong? how do I specify the size for the image in the imagecell?
imagecell set image size/aspect?
Can't remove buttons' margins and paddings in Grid on Android
I tried to use a grid with 3 buttons as a bottom tool bar. The grid's ColumnSpacing, RowSpacing, Padding and Margin are 0. Buttons' Margin and BorderWidth are 0 also. It works very well on iOS devices but I can't remove the gaps between buttons and grid on Android devices (refer the screenshots)
ContentPage.Padding is
<OnPlatform x:TypeArguments="Thickness"
iOS="0, 40, 0, 0"
Android="0, 20, 0, 0"
WinPhone="0, 20, 0, 0" />
<StackLayout VerticalOptions="FillAndExpand" HorizontalOptions="FillAndExpand" Padding="0" Margin="0" Spacing="0">
<ScrollView HorizontalOptions="FillAndExpand" VerticalOptions="FillAndExpand" Padding="0" Margin="0">
<StackLayout>
</StackLayout>
</ScrollView>
<Grid Style="{StaticResource bottomGridStyle}">
<Grid.RowDefinitions>
<RowDefinition Height="60" />
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*" />
<ColumnDefinition Width="*" />
<ColumnDefinition Width="*" />
</Grid.ColumnDefinitions>
<Button x:Name="btnChargingStatus" Text="Status" Grid.Row="0" Grid.Column="0" Image="BarStatus.png" Style="{StaticResource bottomButtonStyle}" Clicked="OnButtonClicked" />
<Button x:Name="btnStationStatus" Text="Settings" Grid.Row="0" Grid.Column="1" Image="BarSettings.png" Style="{StaticResource bottomButtonStyle}" Clicked="OnButtonClicked" />
<Button x:Name="btnHome" Text="Home" Grid.Row="0" Grid.Column="2" Image="BarHome.png" Style="{StaticResource bottomButtonStyle}" Clicked="OnButtonClicked" />
</Grid>
</StackLayout>
Button and grid's style
<Application.Resources>
<ResourceDictionary>
<OnPlatform x:TypeArguments="Font" Android="8" iOS="10" WinPhone="10" x:Key="bottomButtonFontSize" />
<Style x:Key="bottomButtonStyle" TargetType="Button">
<Setter Property="HorizontalOptions" Value="FillAndExpand" />
<Setter Property="VerticalOptions" Value="FillAndExpand" />
<Setter Property="BackgroundColor" Value="Green" />
<Setter Property="BorderColor" Value="Green" />
<Setter Property="TextColor" Value="White" />
<Setter Property="Font" Value="{StaticResource bottomButtonFontSize}" />
<Setter Property="Margin" Value="0" />
<Setter Property="BorderWidth" Value="0" />
<Setter Property="ContentLayout" Value="Top,0" />
<Setter Property="BorderRadius" Value="0" />
</Style>
<Style x:Key="bottomGridStyle" TargetType="Grid">
<Setter Property="BackgroundColor" Value="Black" />
<Setter Property="HorizontalOptions" Value="FillAndExpand" />
<Setter Property="VerticalOptions" Value="End" />
<Setter Property="ColumnSpacing" Value="0" />
<Setter Property="RowSpacing" Value="0" />
<Setter Property="Padding" Value="0" />
<Setter Property="Margin" Value="0" />
</Style>
</ResourceDictionary>
</Application.Resources>
It works well on my iPhone 6+:
But the margins and paddings (the grid's background color is black) between buttons as well as the grid and buttons can't be removed on Android phone
How to remove them on Android devices? Do I need set something in Android project's styles.xml?
Problem with slide menu - Hamburger
Hello I have a problem with slide menu.
I have a hamburger menu with MasterDetailPage:
http://i.imgur.com/jbi8pqR.png
but when I click it, navigation bar is behind menu, I wanna move icon right to see it:
http://i.imgur.com/VN7tQ1G.png
or if it is possible to do it like in this app (You can see a little of site):
http://i.imgur.com/orrBhIO.png
My code:
<?xml version="1.0" encoding="utf-8" ?>
<MasterDetailPage xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:local="clr-namespace:EventOrganizer; assembly=EventOrganizer"
x:Class="EventOrganizer.MainMenu">
<MasterDetailPage.Master>
<local:MenuItemsPage></local:MenuItemsPage>
</MasterDetailPage.Master>
<MasterDetailPage.Detail>
</MasterDetailPage.Detail>
</MasterDetailPage>
<?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:local="clr-namespace:EventOrganizer; assembly=EventOrganizer"
Title="MenuItems"
Icon="hamburger.png"
x:Class="EventOrganizer.MenuItemsPage">
<StackLayout Orientation="Vertical">
<ListView x:Name="listView"></ListView>
</StackLayout>
</ContentPage>
<?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:local="clr-namespace:EventOrganizer, assembly=EventOrganizer"
x:Class="EventOrganizer.HomePage">
<Label Text="{Binding MainText}" VerticalOptions="Center" HorizontalOptions="Center" />
</ContentPage>
public partial class MainMenu : MasterDetailPage
{
public MainMenu()
{
InitializeComponent();
this.Detail = new NavigationPage(new HomePage());
}
}
}
public class App : Application
{
public App()
{
MainPage = new MainMenu();
}
}
I will be grateful for help.
Can you use SkiaSharp to DrawPath to an image\bitmap that can then be emailed?
PCL. Currently doing Canvas.DrawPath and DrawText to SKCanvasView, works fine. Now, I am trying to find out if I can capture the this image (which is basically the entire screen) for attaching to an email.
How to make pop up with destroy button?
In xamarin site I have read about pop ups. There was an example of pop up with destroy button in which "Delete" button becomes red in IOS and Android .
I copied code from there and pasted in my project but in all platforms I just get usual buttons "Delete" button is not red.
This is the code from the xamarin site
async void OnActionSheetCancelDeleteClicked (object sender, EventArgs e)
{
var action = await DisplayActionSheet ("ActionSheet: SavePhoto?", "Cancel", "Delete", "Photo Roll", "Email");
Debug.WriteLine ("Action: " + action);
}
What do I miss? What should I add to make pop up as in screenshot I have attached?
UWP: How to hide Navigation-Page Header (Hamburger-Menu-Button + Title)
In 2.3.2 it was possible to hide the hamburger-menu by calling
NavigationPage.SetHasNavigationBar(page, false);
In version 2.3.3+ (currently on 2.3.4-184-pre1) it doesn't work anymore (at least for UWP).
Is there any workaround available?
How to make Space do the same as the Enter key on a button on Android devices
When using a physical keyboard on an Android device, the Enter/Return key activates a button that has the focus (even if you can't see that it has the focus). I would like to have the Space key do the same thing. I already have a custom ButtonRenderer for other purposes, and assume that handling the Space key can be done in the ButtonRenderer. I'm not currently an Android person - can anybody provide any guidance as to how to receive key events in a ButtonRenderer pls?
Render problem with UWP
HI guys,
I'm working with Listview (as my previous post). I tried to use in a Listview only StackLayout but there are some problems in the render of that. For example if a text a is long, it doesn't wrap.
If I use Gridview the result is ok but in UWP is not very good (as in the picture).
<ListView x:Name="listDictionaries" ItemsSource="{Binding DictionariesList}" IsVisible="{Binding ShowList}" HorizontalOptions="FillAndExpand" VerticalOptions="FillAndExpand" HasUnevenRows="true" SeparatorVisibility="Default" Grid.Column="0" Grid.Row="0" ItemTapped="OnItemTapped"> <ListView.ItemTemplate> <DataTemplate> <ViewCell> <ViewCell.View> <StackLayout> <Grid Padding="10" ColumnSpacing="10"> <Grid.RowDefinitions> <RowDefinition Height="*" /> </Grid.RowDefinitions> <Grid.ColumnDefinitions> <ColumnDefinition Width="Auto" /> <ColumnDefinition Width="*" /> </Grid.ColumnDefinitions> <controls:CircleImage Source="Book_green.png" Aspect="AspectFit" Grid.Row="0" Grid.Column="0" BorderColor="#107c10" BorderThickness="3"> <controls:CircleImage.WidthRequest> <OnPlatform x:TypeArguments="x:Double" iOS="55" Android="55" WinPhone="75"/> </controls:CircleImage.WidthRequest> </controls:CircleImage> <StackLayout Grid.Row="0" Grid.Column="1" VerticalOptions="FillAndExpand" HorizontalOptions="FillAndExpand" Orientation="Vertical"> <Label Text="{Binding Name}" FontSize="Large" /> <Label Text="{Binding Description}" FontSize="Small" /> </StackLayout> </Grid> </StackLayout> </ViewCell.View> </ViewCell> </DataTemplate> </ListView.ItemTemplate> </ListView>
Do you have any suggestions for me? Thank you
Binding Update become blank on UWP
Hello all,
I am a beginner and just starting to use Xamarin.Forms for cross platform.
At first, the thing work fine in Android, but not working in Universal Windows Platform.
I have create the Xamarin.Forms follow UWP instruction at https://developer.xamarin.com/guides/xamarin-forms/windows/getting-started/universal
The problem:
- When I change the data in binding object, the label become empty.
FirstPage.xaml
<StackLayout Orientation="Vertical">
<ListView x:Name="LvUser">
<ListView.ItemTemplate>
<DataTemplate>
<ViewCell>
<ViewCell.View>
<Grid Padding="5">
<Label Text="{Binding UserName}" />
</Grid>
</ViewCell.View>
</ViewCell>
</DataTemplate>
</ListView.ItemTemplate>
</ListView>
<Button Text="change username" Clicked="changeUserNameClicked" />
</StackLayout>
User.cs
namespace XamarinPCL
{
public class User
{
public string username { get; set; }
}
}
UserViewModel.cs
namespace XamarinPCL
{
public class UserViewModel : INotifyPropertyChanged
{
public event PropertyChangedEventHandler PropertyChanged;
public void NotifyPropertyChanged(String propertyName)
{
if (PropertyChanged != null)
{
PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
}
}
private User _user;
public String UserName
{
get
{
return _user.username;
}
set
{
_user.username = value;
NotifyPropertyChanged("UserName");
}
}
public UserViewModel(User user)
{
_user = user;
}
}
}
FirstPage.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Xamarin.Forms;
using System.Collections.ObjectModel;
namespace XamarinPCL
{
public partial class FirstPage : ContentPage
{
ObservableCollection<UserViewModel> _userVM = new ObservableCollection<UserViewModel>();
UserViewModel _uvm1 = new UserViewModel(new User() { username = "user 1" });
UserViewModel _uvm2 = new UserViewModel(new User() { username = "user 2" });
public FirstPage()
{
InitializeComponent();
}
protected override void OnAppearing()
{
base.OnAppearing();
_userVM.Add(_uvm1);
_userVM.Add(_uvm2);
LvUser.ItemsSource = _userVM;
}
private void changeUserNameClicked(object sender, EventArgs e)
{
_uvm1.UserName = "i changed";
}
}
}
When I click on the item, the row #1 become empty, any idea?
Xamarin.Forms app, when deleted from iOS, database remains.
We're working on a Xamarin.Forms app, and in the course of our testing we are deleting the application and reinstalling on both Android and iOS.
In Android, the app and all data is removed as expected. Reinstalling the app starts from a clean slate as expected.
In iOS 10.1, on Emulator and iPhone 6+ (real device) deleting the app either by long-press and tap the X or via settings, removes the app, but then when it's reinstalled the database (Realm in this instance) appears to remain behind and causes problems when the app is reinstalled (local storage is removed which contains some detail to generate the Realm encryption key, but Realm remains).
I haven't been able to find anyone else who's experienced the same issue via Google.
Is this an issue that others may have encountered before? Or do we simply need to implement some code to remove the database/s on app delete?
OCR library for Xamarin.Forms
Hi all,
I was wondering if someone has found a way to implement OCR in a Xamarin.Forms app to be distributed to iOS, Android and Windows Phone 8.
This is my Research so far, but I will require to expend $400:
For Windows Phone 8 there's the Microsoft OCR library. This link explain how to use it: http://blog.falafel.com/microsoft-ocr-library/
For Xamarin iOS and Xamarin Android I have found Emgu CV: http://www.emgu.com/wiki/index.php/Main_Page. But it cost $199 per licence.
Has someone found an open source API for Xamarin iOS and Android?
Is there a PCL already created for this?
Thank you so much for your time.
Regards
[Xamarin Blog] Triggers in Xamarin.Forms
Read the full article to learn about Triggers in Xamarin.Forms.
Please use this thread to discuss or ask questions.
Using FAB.forms ?
I am trying to add a Flating Action Button to a simple listview using FAB.forms but nothing is appearing & there are no build errors.
I have added FAB.forms v2.1.1 to a XAmarin Forms PCL project and also added Xamarin.Android.Support.Design to Android Packages.
Following the provided guides I have constructed my XAML page as follows
<?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:local="clr-namespace:FABTest"
xmlns:fab="clr-namespace:FAB.Forms;assembly=FAB.Forms"
x:Class="FABTest.Contacts" >
<ContentPage.Content>
<RelativeLayout>
<ContentView
RelativeLayout.WidthConstraint="{ConstraintExpression Type=RelativeToParent, Property=Width, Factor=1, Constant=10}"
RelativeLayout.HeightConstraint="{ConstraintExpression Type=RelativeToParent, Property=Height, Factor=1, Constant=10}">
<ListView x:Name="EndpointListView" ItemsSource="{Binding Items}" IsVisible="{Binding IsListVisible}" HasUnevenRows="True" SeparatorColor="{DynamicResource ListViewSeparatorColor}" >
<ListView.ItemTemplate>
<DataTemplate>
<ViewCell>
<Label Text="{Binding Name}" />
</ViewCell>
</DataTemplate>
</ListView.ItemTemplate>
</ListView>
</ContentView>
<fab:FloatingActionButton
x:Name="fabBtn"
Source="plus.png"
Size="Normal"
Clicked="Handle_FabClicked"
NormalColor="Green"
RippleColor="Red"
RelativeLayout.XConstraint="{ConstraintExpression Type=RelativeToParent, Property=Width, Factor=-50}"
RelativeLayout.YConstraint="{ConstraintExpression Type=RelativeToParent, Property=Height, Factor=-50}" />
</RelativeLayout>
</ContentPage.Content>
</ContentPage>
Are there other additional packages I should be using to get this working?
View appearing on the background when using Task.Run
I'm trying to make a Loading View by adding a IsLoading parameter to a custom ContentPage and when set, a View with some Labels and a ActivityIndicator appears on top. Here is the custom page:
public class PageWithLoading : ContentPage, INotifyPropertyChanged
{
private bool isLoading;
public bool IsLoading
{
get
{
return this.isLoading;
}
set
{
this.isLoading = value;
RaisePropertyChanged("IsLoading");
}
}
private string _subtitle;
public string subtitle
{
get
{
return this._subtitle;
}
set
{
this._subtitle = value;
RaisePropertyChanged("subtitle");
}
}
public event PropertyChangedEventHandler PropertyChanged;
public void RaisePropertyChanged(string propName)
{
PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propName));
}
public PageWithLoading()
{
}
public void Loading(bool loading, string text = "")
{
IsLoading = loading;
subtitle = text;
}
}
If I make a Page that inherits from this, and set IsLoading = true, this should appear:
<AbsoluteLayout x:Name="loadingView" AbsoluteLayout.LayoutBounds="0,0,1,1" AbsoluteLayout.LayoutFlags="All" IsVisible="{Binding IsLoading}">
<ContentView BackgroundColor="#222222" Opacity="0.75" AbsoluteLayout.LayoutFlags="All" AbsoluteLayout.LayoutBounds="0,0,1,1"/>
<StackLayout BackgroundColor="White" AbsoluteLayout.LayoutBounds=".5,.35,.85,.85" AbsoluteLayout.LayoutFlags="All" VerticalOptions="Center">
<Label Text="Carregando" FontSize="35" FontAttributes="Bold" VerticalOptions="Center" HorizontalOptions="Center" />
<ActivityIndicator IsRunning="true" />
<Label Text="{Binding subtitle}" FontSize="20" VerticalOptions="Center" HorizontalOptions="Center" />
</StackLayout>
</AbsoluteLayout>
And it works if I try to test with something simple, like:
Loading(true, "Logging in");
await Task.Delay(3000);
Loading(false);
but if I try to actually load something (in this case using two task to get some objects from a DynamoDB table) the view doesn't appear, but it seems to be under the rest of the page since you can see a glimpse of it when the page changes
Xamarin.Forms Feature Roadmap
This roadmap outlines our anticipated feature releases.
Are there things you don't see here that you feel strongly deserve a spot? Make your voice heard and open a proposal on the Xamarin.Forms Evolution forum.
Primary Focus
Quality is top of the list. This means stability and performance first and foremost. Xamarin.Forms has been swiftly adopted as a preferred tool for delivering production apps in addition to rapid prototypes. Our focus and priorities are to support the Xamarin.Forms community in those areas. In the release schedule below, we've highlighted how and where we are making those investments.
A Note About Bugs
As this thread is primarily about the feature roadmap, we anticipate the important question "what about ___ bug"?! Improving quality by addressing bugs is huge priority and ongoing focus for the team, in addition to improve our communication across the board.
Disclaimer
We cannot predict the future and how everything will shake out. Things will change. Timing may be adjusted due to priority changes, in pursuit of quality standards, or any number of other really good reasons that we will strive to proactively and openly communicate.
The Features Roadmap
Milestone | Release Date |
---|---|
2.3.3 | December 2016 |
2.4.0 | February 2017 |
2.5.0 | May 2017 |
2.3.3 - December 2016
Native View Declaration - Feature
Native view declaration allows you to add bindable iOS, Android, and Windows views directly to XAML. Rather than having to write a custom renderer, you can simply add the control directly to XAML with no additional configuration. This not only works with stock platform controls, but custom controls as well.
Platform-Specifics - Feature
Platform-specifics allow you to take advantage of native functionality that is only available on select platforms that Xamarin.Forms targets from shared code.
UWP Blur Support (3rd party nuget) - Feature
Adds the UWP blur platform-specific.
2.4.0 - February 2017
Bindable Picker - Feature
Adds data binding to the Picker
control, specifically the following properties:
ItemSource
SelectedItem
https://github.com/xamarin/Xamarin.Forms/pull/515
Accessibility (A11y) Support - Feature
Proposal
Adds accessibility support to Xamarin.Forms by exposing the underlying accessibility features on iOS, Android, and Windows 10.
CarouselView v1 Stable - Feature
CarouselView was introduced at Xamarin Evolve 2016 and has been in prerelease ever since. v1 brings stability and performance improvements.
Xamarin.Forms for macOS Preview - Feature
Xamarin.Forms is coming to macOS, joining iOS, Android, Windows, and Tizen as target platforms for Xamarin.Forms.
Fast Renderers - Performance
Optimize built-in and custom view renderers to streamline view creation and improve performance.
Startup Time Improvements - Performance
Improve the startup and initialization time for Xamarin.Forms apps.
Compiled Native Views - Enhancement, Performance
Bring native view declaration to XAMLC, so users don't have to opt-out of XAMLC in PCLs where pages use native view declaration.
OnIdiom Support for Desktop (UWP) - Enhancement
Developers have lots of options when it comes to configurability based on operating system (Android, iOS, UWP, etc.), version (9, 10, etc.), and idiom (mobile or tablet). This adds Desktop as an OnIdiom for UWP developers.
https://github.com/xamarin/Xamarin.Forms/pull/420
XAMLC Enhancements - Enhancement, Performance
Approaching full support for currently supported XAML features. Compile time support for all value providers.
Deprecation of iOS 6/7
Deprecation of WP8
2.5.0 - May 2017
Xamarin.Forms Embedding - Feature
Embed Xamarin.Forms into a native Xamarin.iOS, Xamarin.Android, or Windows 10 app.
Xamarin.Forms for macOS - Feature
Xamarin.Forms is coming to macOS, joining iOS, Android, Windows, and Tizen as target platforms for Xamarin.Forms.
MenuPage - Feature
Alternative to the MasterDetail
page, but rendered as a platform-specific menu that makes creating flyouts easy.
Cut down on GPU overdraw for Android - Performance
Try to avoid overdraw on Android where possible to improve performance.
Reduce native views created - Performance
Cut down on backing native views created for Xamarin.Forms, as noted by Miguel in #42948.
Layout Compression - Performance
LayoutCompression allows multiple layers of Xamarin.Forms layouts to be packed into a single native one.
Prism-Like URI Navigation Routing - Enhancement
Navigate to a page using Uri navigation, similar to what Prism does.
NavigationService.NavigateAsync("ListPage/DetailPage?id=1");
Single DLL - Enhancement
Ship Xamarin.Forms as a single DLL to improve startup performance and assist the linker.
Open Source Contributions
As noted above, the Xamarin.Forms Evolution forum is the place to start.
Possible bug in newer versions of xamarin forms listview
I'm not sure if it is a bug, or if I'm doing something wrong, but it seems that ViewCellRenderer has stopped working in all versions of xamarin forms after 1.3.5.6335. My entire project relies on custom viewcells, so that is kind of a problem. I made a simple project to reproduce the problem. It works with 1.3.5.6335 but not with 1.3.5.6337 or 1.4.0.6341 where it fails with error:
System.Diagnostics.Debugger.Mono_UnhandledException (ex={System.NullReferenceException: Object reference not set to an instance of an object
at Xamarin.Forms.Platform.Android.ListViewAdapter.GetView (int,Android.Views.View,Android.Views.ViewGroup)
at Android.Widget.BaseAdapter.n_GetView_ILandroid_view_View_Landroid_view_ViewGroup_ (intptr,intptr,int,intptr,intptr) [0x0001a] in /Users/builder/data/lanes/monodroid-mlion-monodroid-4.21-series/9e05e39f/source/monodroid/src/Mono.Android/platforms/android-21/src/generated/Android.Widget.BaseAdapter.cs:460
at (wrapper dynamic-method) object.0e0073ff-03ab-48df-abc2-b71bed77fd41 (intptr,intptr,int,intptr,intptr)
})
Project can be found rarred at:
ListView binding to ObservableCollection does not update GUI
Hi
Can anyone tell me why this simple code is not working as expected? Does the ListView control not listen for changes in the bound property?
Expected: when I click the Add button, the GUI (ListView) updates through the binding and shows the new element in the ObservableCollection.
Observed: GUI does not update but always shows the initial three items of the ObservableCollection.
- Btw: OnAddButtonClicked() does get called and ListViewItems does get updated (checked in the debugger). Calling OnPropertyChanged("ListViewItems") inside OnAddButtonClicked() did not help either.
- And: if I update the code as follows, the ListView works: add a Label control, bind that label to a 2nd property, update that property inside OnAddButtonClicked(), call OnPropertyChanged() from inside the property setter. So obviously this call to OnPropertyChanged() somehow triggers the ListView to get updated as well...
- I'm now using Xamarin.Forms version 1.1.0.6201. Didn't work with the previous version either.
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"
x:Class="Test1.MainPage"
Padding="10" Title="MainPageXaml">
<StackLayout VerticalOptions="StartAndExpand" HorizontalOptions="Fill">
<Button Text="Add" Clicked="OnAddButtonClicked" />
<ListView ItemsSource="{Binding ListViewItems}" />
</StackLayout>
</ContentPage>
C#:
public partial class MainPage : ContentPage
{
public MainPage()
{
InitializeComponent();
ListViewItems = new ObservableCollection<string> { "one", "two", "three" };
BindingContext = this;
}
private void OnAddButtonClicked(object sender, EventArgs e)
{
ListViewItems.Add(DateTime.Now.ToString());
// OnPropertyChanged("ListViewItems");
}
public ObservableCollection<string> ListViewItems { get; set; }
}
Markus
How to implement search for large data using Akavache?
I have been working in an android application using Xamarin Forms and using Akavache for storing data locally in device. Until now it's all prefect, but now I need to save some more data(around 10 to 20 thousand records) and provide search functionality within that data. What would be best solution to implement this type of functionality using Akavache?
Background task with completion handler is not working(IOS)?
Hello, I'm working on a project where I want to run a long running background task (Xamarin forms ios). I used Background task with completion handler, but the problem is, it works only while debugging the application. Here is my code :
Task.Factory.StartNew(() =>
{
DidEnterBackgroundId = UIApplication.SharedApplication.BeginBackgroundTask(() =>
{
UIApplication.SharedApplication.EndBackgroundTask(DidEnterBackgroundId);
});
while (!_backgroundEntryTime)
{
BackgroundUpdates.UpdateCurrentStatus();
BackgroundUpdates.BeginLocalToServerSync();
}
UIApplication.SharedApplication.EndBackgroundTask(DidEnterBackgroundId);
});
can anyone help me with this.
sytem.net.http issue in pcl
can anyone tell what is the issue.