41463 - "CarouselView Crashes with "Sequence Does not Contain a Matching Element'"
40513 - "Adding views to CarouselView after rendered and swiping crashes Forms"
Other fixes
Reduced assemblies referenced per platform project from three to one so
that now each platform gets its own version of Xamarin.Forms.CarouselView
into which the portable library has been merged.
For example, Android used to referenced:
Xamarin.Forms.CarouselView
Xamarin.Forms.CarouselView.Platform
Xamarin.Forms.CarouselView.Android
But now only references:
Xamarin.Forms.CarouselView (android specific)
Creating this thread to collect all CarouselView feedback until it is merged back into the Xamarin.Forms package.
James Montemagno put together a post on CarouselView here
I have been struggling to wrap my mind around a quite simple binding. I am binding the Text property of a Label to the size of a listview itemcount.
This all works fine and the properties when debugging does contain the right values, but it does not correctly update the UI.
I have made a work around which directly sets the text with the count property. But this is not the correct way of solving this issue and does not respect the MVVM pattern. I hope you can take a look with me to maybe fix the issue.
is it possible to send email directly from app without opening email client? I want user to type in text and just send it to predefined email address with predefined subject.
I have read the doc and I can't get the global styles to work in my Xamarin.Forms 1.3.1 sample app. I can get the page based styles and built in styles work but not the global. Am I doing something wrong? Probably.
Thanks for your help in advance. Adam
using System;
using Xamarin.Forms;
namespace StyleTest
{
public class App : Application
{
public App ()
{
Application.Current.Resources = new ResourceDictionary ();
var labelStyle = new Style (typeof(Label)) {
Setters = {
new Setter { Property = Label.TextColorProperty, Value = Color.Green }
}
};
Application.Current.Resources.Add ("labelStyle", labelStyle);
MainPage = new ContentPage {
Content = new StackLayout {
VerticalOptions = LayoutOptions.Center,
Children = {
new Label {
StyleId = "labelStyle",
XAlign = TextAlignment.Center,
Text = "Welcome to Xamarin Forms!"
}
}
}
};
}
}
}
Hello,
I have solution that contains native library (obj c), and i use this library in my iOS project. Everything works great, but when i disable "Enable incremental builds" in iOS project properties, project compiles, but then crashes with error from native wrapper:
Wrapper type 'PlayReady.MediaRepresentationProtocol' is missing its native ObjectiveC class 'MediaRepresentationProtocol'.
My question is, how i can enable "Enable incremental building" for release purposes (i think it is impossible). Or why my project works only when this option is checked-in?
I'm looking for the best way to implement OAuth (to login the user with Facebook/Twitter/Google, ...) in a Xamarin.Forms app.
The library Xamarin.Auth don't fit my needs because I need to get "token" plus "code" (not only "token").
As far as I undertand in this article: https://developers.googleblog.com/2016/08/modernizing-oauth-interactions-in-native-apps.html, it say that it's a bad practice to user Xamarin WebView to display the provider login page.
Does anybody know how to manage to use OAuth?
public BaseDisclosureWithActionTemplateCell() : base()
{
InitializeComponent();
var moreAction = new MenuItem { Text = "More" };
moreAction.SetBinding(MenuItem.CommandParameterProperty, new Binding("{Binding ActionCommand}"));
moreAction.Clicked += (sender, e) =>
{
};
var deleteAction = new MenuItem { Text = "Delete", IsDestructive = true }; // red background
deleteAction.SetBinding(MenuItem.CommandParameterProperty, new Binding("{Binding ActionCommand}"));
deleteAction.Clicked += (sender, e) =>
{
};
//ContextActions.Add(moreAction);
//ContextActions.Add(deleteAction);
}
When I add the more and DeleteAction to ContextActions, Listview never gets loaded.
The indicator spins and spins, view cells are not created apparenttly.
My ListView is defined like this:>
I can't get the cells to show up.
The baseTemplate selector is defined like this:
protected override DataTemplate OnSelectTemplate(object item, BindableObject container)
{
var b = item as BaseModel;
switch (b.ViewType)
{
case ViewType.Action:
return ActionTemplate;
case ViewType.DefaultAction:
return DefaultActionColorTemplate;
case ViewType.Disclosure:
return DisclosureTemplate;
case ViewType.DisclosureWithAction:
return DisclosureWithActionTemplate;
case ViewType.Download:
return DownloadActionTemplate;
}
return DisclosureTemplate;
}
I would love some feedback on this. This is a very strange behavior of kind I have not seen before
Anyone has any idea what is going?
I'm new to xamarin, and have just created a new project. I'm wondering how I can get the floating hints/labels to appear above text fields when they are selected, as illustrated in the google material design documentation (see labels: https://material.io/guidelines/components/text-fields.html#text-fields-input)
I've created a custom renderer for my entry control, this all builds and works fine, but I'm not 100% certain of the properties of the control I need to set.
I have a form that includes a Xamarin.Forms.Maps.Map control. When I push new views onto the stack with await Navigation.PushAsync(page), views that I want to be modal (using await Navigation.PushModalAsync(page)) that I push onto the stack are empty. The animation works fine, but what's animated is just empty (the background is white but with no controls or other UI elements rendered. If I remove the map control from the "root" view, the modal pages are displayed correctly. If I use .PushAsync instead of .PushModalAsync the views are displayed correctly.
I am targeting Android 6 using the Google emulators
I just installed Xamarin in Visual studio and i have installed all files from the Android SDK library as well as done any updates to visual studio.
When I create a new project and try to run it I get the error: The file "obj\Debug\android\bin\packaged_resources" does not exist. After googling people said that their may be a resource with an incorrect name but it is a new project so all files are still untouched. Ive updated all nuget packages and still get the error.
Is there anything I need to install or update that I may have missed?
I have to get data from a server that is using TLS 1.2. I've been able to acquire the data on iOS using ModernHttpClient
By default TLS 1.2 support is not enabled on Android devices running API 19 or older. There are ways to enable TLS 1.2 support by overriding the socket creation then passing the socket to the client. Unfortunately, I am completely at a loss on how to do that. It looks like it needs to be handled in the .Droid project itself. I suppose I'll have to handle all the HttpClient requests in the Droid project as a dependency service?
The current upgrade to iOS 10 had caused a page layout error which could be resolved by updating to the latest version of Xamarin Forms (Xamarin.Froms 2.3.3.175).
The link to the issue described is as follows: https://forums.xamarin.com/discussion/74533/how-to-fix-page-layout-in-ios-10
However, with the fix, the updated version of the mobile app causes server connection issues in the previous version of iOS even though the app is designed to support iOS versions 7 and higher. No changes other than updating the Xamarin Forms is made to the code and the updated version of the app works perfectly on iOS 10 but its no longer functional on the previous versions of iOS (tested unsuccessfully on iOS 9.2.1).
We use the NSUrlSession to create and configure a session to interact with the server.
I'm trying to achieve a look of a ListView header overlapping the top two cells in XF and haven't come up with a clean solution yet. Attached design sample below -- does anyone know how to effectively have this type of ListView layout?
Could not install package 'System.Net.Http 4.3.0'. You are trying to install this package into a project that targets '.NETPortable,Version=v4.5,Profile=Profile259'
Last week I created an application and installed System.net.http via nuget.
This week I tried the same. I know I'm pushing my luck to expect it to work twice but I am a beginner at Xamarin.
Why does this happen?
I have circumvented the problem by installing Microsoft.Net.Http.