Are there any examples or starter apps for Xamarin.Forms that have a side drawer menu (like in the Evolve 2014 app) for both iOS and Android?
Side drawer menu in Xamarin.Forms for iOS and Android
Using binding and localisation
I try to create something like that:
<Label Text="{Binding oResult.hi, StringFormat='Hallo: {0}'}" />
And it works fine! But i wish that the String "Hallo" should get out from the resx file.
Like this:
<Entry Placeholder="{i18n:TranslateExtension Text=password}" IsPassword="true" />
Also i will do a combination of both.
Thank you!
Custom RelativeLayout renderer
It's there a way to create a custom renderer for the layouts?
I just want to add some borders, and stuff like that on iOS.
Thanks!
how to check whether your xamarin forms application is connected to internet or not .
how to check whether your xamarin forms application is connected to internet or not and throw exception if your application is not connected to internet.
Compass Plugin for Cross (Android & Ios)
hi everyone,
i wanna design compass with plugin if you have idea for this please share with me..
like this :-
Thanks
Is there a bug or something with Xamarin and Firebase?
I've read carefully about OnTokenRefresh and it know it gets called into specific circumstances. But, it never gets called on my device while it does on my Android Emulator...
Is this a known bug?
AbsoluteLayout disable Touch Trapping for iOS
We are using an absolute layout to create a composite control where two buttons are relative to each other, but there is significant space in between. The buttons sit over a map. We want the user to be able to touch between the buttons and the tap to go through to the map. By default with Xamarin Forms on iOS, all touches are trapped by Layout controls, so tapping the empty space between the buttons doesn't not go through to the map, because the AbsoluteLayout traps them.
How do I set these iOS properties on the absolute layout?
UserInteractionEnabled = false;
ExclusiveTouch = false;
And if I do this, does it propagate to all the children being my images/buttons will no longer be tappable?
If I have to use a custom renderer, fine. But what is the iOS native control that I will be working with (see question marks). What native control does an AbsoluteLayout become in iOS?
public class CustomNoTouchAbsoluteLayoutRenderer : ViewRenderer<CustomNoTouchAbsoluteLayout, ?????>
Image inside of Carousel View
I have a carousel view inside a stasklayout which is also inside a scroll view, the carousel view contains an image which is displayed in miniature, I want that the image is displayed in actual size.How to do it please?
Bind an Entry with a int ? value
Hi friends.
I have a Model with a int? field.
I Bind this field with a Entry.
The value is correctly visualized, but if I modify the Entry text, the Model is non updated.
If I use "int" instead of "int ?" the binding works correctly.
It's correct or it's a bug?
Thanks
PickerCell
Is there not a PickerCell? Whats the best way to allow a Picker to look like an EntryCell? Also the Picker does not seem to go into a Table either!
I have to put my Picker under the table (_EquipmentName is an EntryCell and _EquipmentType is the Picker)
this.Content = new StackLayout()
{
Children =
{
new TableView()
{
Intent = TableIntent.Form,
Root = new TableRoot()
{
new TableSection()
{
_EquipmentName
},
}
},
_EquipmentType,
}
};
dwqe
aggagagga
Forms or Android PNG library suggestions (to make index color PNG)
I know I can't be the first person to want this, but after a day and a half of searching I can't find anything to fit the bill and I find that odd.
Workflow: Shoot photo on android... make it Black white (not gray but really 1 bit)... save it as a PNG, preferably true 1-bit or at least indexed color in order to make a small file size and keep the data.
Doing the convert to gray to b&w wasn't a problem. I have that done. But its still a 900kb file when it could be 50k. I'm sure that's because its still being saved as a full-color image. I'm thinking that if I turn that into indexed color of only 2 colors then it should be at least 10 times smaller.
I was hoping to avoid adding huge libraries that are vastly overkill for this one need. Researching I find reference to Android libraries such a pngj that have this small scope of need but they date back to 2013/2014 - Making me think something else has risen up to take their place but I can't for the life of me find something to handle this need in today's era: Preferably something Xamarin friendly.
Any suggestions?
How to unit test a ViewModel with MessageCentre
In the constructor of my ViewModel I have this subscription
MessagingCenter.Subscribe(Application.Current, "updateMapJobs", UpdateMapJobs);
The problem is when I have come to write unit tests for the ViewModel. On creation I get an ArgumentNullException for subscriber and it fails on the MessageCenter line.
I have done some searching but no seen any similar issues, I could use a point in the right direction, documents or something
Thanks
FreshMVVM can't resolve page from pagemodel on iOS
Hi @MichaelRidland,
I'm currently facing an issue in resolve page from pagemodel using FreshMvvm, which is working perfectly on Android phone, but while using iOS simulator getting null on "Type.GetType(name) : in ResolvePageModel() method".
IsToggledProperty not working as expected
Hi, I have a problem with the "isToggleProperty" . The Switch is in binding with a property in the ViewModel. I expect to see the toggles on or off at the application's startup, depending on the relative viewmodel's property State, but it seems it's always off. Do you have any tip?
Here is my code:
var switch = new Switch();
switch.SetBinding(Switch.IsToggledProperty, "State");
Thanks
How to add and use the .Net Framework to a project?
greetings I am new in visual studio and with Xamarin.forms I am trying to make a multiplatform app, the app requires that I use a nuget package but that package is 100% compatible with the .Net standard 2.0 that I am using so when compiling it gives me a series of warning and errors, I want to change to the .Net Framework 4.6.1 that my VS recommends but when I try to change I can not since it does not give me the option to select another .Net Framework attached an image where I highlight the problem and with the warning messages that I find after compiling, it seems strange to me since I have installed the .Net Framework from 3.5 to 4.7.1 but it does not give me the option to use them. Please help me with this problem if you can tell me how to use the different versions of the .Net Framework, I thank them and please can explain it to me in an easy way since as I mention I am new and it is costing me a lot to understand these things I appreciate it a lot.!
EntryCell Password
Anyone found a way to make an EntryCell a password field so you get ********** when the user enters a password ?
Format an entry
Hello,
Is it possible to format a keyboard entry ? As an example for a credit card number to specify that the number should be only 16 numbers long ? 4x4?
Thx,
cjacquel
How to create multiple image cropper in Xamrin.Forms?
Hi,
I want to achieve following functionality. Can anybody please suggest me any way or example that can be work worthy in iOS and Android. However, the priority is of iOS.
I have a page where user can upload 8 pictures. I want to provide multiple image selection. User can select 8 pictures together or user can select in group like 2-3 pictures. Even user can select only one picture.
Now the twist that I want to provide image cropper option. Let say user have selected 5 picture. After selecting pictures, I want to show image cropper screen with Next button. So, user must be able to crop all 5 image one by one with one go. Next button will show to next image to crop. At 5th image, there will be Done button that will take user back to image gallery which will show all 5 pictures.
Can anybody please suggest me?
What ad network are you using for interstatials and banners
Just curious what ad networks folks are using and which are giving the best returns.
On Android, I have been using Admob, pretty bad returns and it crashes in Xamarin Forms when you try to show an interstitial or click on a banner (https://bugzilla.xamarin.com/show_bug.cgi?id=39567). I have also tried Leadbolt. Returns were about the same and now they have ditched their native banner ad. The HTML replacement looks awful but at least it doesn't crash.
On iOS I have been using iAd which has had the best results by far of any ad network. However they are shutting down in June so I need a good replacement for iOS.
Who are you using and are you happy with them? Thanks!