is there anyway to navigate from android and iOS specific activity to Xamarin forms Content page in PCL. I have tried nearly everything I could.
SetPage(App.RetryOkPage(imagebytes))
MessagingCenter
LoadApplication(app) where app = new App();
and app.MainPage =
new NavigationPage(new RetryOkPage(photoCropByte));
I am getting this error all the time.
'Binary XML file line #1: Binary XML file line #1: Error inflating class '
Related
I am attempting to extend my Xamarin Forms app to Uno to enable it to run in a browser using WASM. I am following the Xamarin Forms porting document at https://platform.uno/xamarin-forms. The article on that page entitled "Uno Platform for Xamarin.Forms Developers" has, as its Get Started, Step 1: Create a Xamarin.Forms project, Check “Place project and solution in the same directory”. My existing Xamarin Forms project (which I want to port) was not created with "Place project and solution in the same directory". How can I port this project which was not created with "Place project and solution in the same directory". Thank you.
To use Uno Platform renderers for Xamarin.Forms, you need to make sure you are using Xamarin.Forms version 4.5.0-uno.571.
I am using Xamarin Forms and want to set splash screen for ios project and followed these steps provided in this link.
creating-splash-screen-xamarin-forms
but i'm not getting the Ios Application tab in properties of ios project. i am getting options as in below image as in recent release they have removed the option.
can anyone explain me step by step process for setting the splash screen in ios with some other way?
i am new to xamarin, any help is appreciated, thank you so much.
I am trying to launch a simple application with some labels and images on the content page, but when the android emulator starts it opens the application and shows only a white page with nothing on it. However, if I run the iOS simulator it shows the label and images. So I wonder if there is something that is preventing the page from loading? I am using Xamarin Forms in Studio on Mac.
Can you try it in a fisical device ?
Just to know if your emulator has an error...
Are you sure you have an StackLayout or another container for the label and entry ?
Hope you solve it...
I set following properties to show my Website on WebView in info.plist of iOS project. Now my website is opening on iOS project properly. Now I want to set same properties on Android projects to but I don't know similar solution in Android.manifest of android project.
My code for WebView is-
public HomePage()
{
InitializeComponent();
var browser = new WebView();
browser.Source = "http://m.ugoparty.com/";
Content = browser;
}
Am Im missing something here you don't need to change any properties in your android project the webview should load your site just fine in your android project those settings are only needed for your iOS project because ios 9.x prevent you from accessing non https urls
I am developing a Xamarin UWP app using ffimageloading. The images show up just fine on the Windows Phone emulator that I am running through Visual Studio, but when I deploy it to a device through the device portal all of the images are missing.
<ffimageloading:CachedImage Grid.Column="0" Grid.Row="1"
Source="{helpers:ImageResource MyProject.Assets.Images.music-doublenote.png}" />
The issue was the build configuration. By turning off "Compile with .NET Native tool chain" on the Build tab of Properties for the Release configuration of the main UWP app and deploying the app with WinAppDeployCmd.exe
I had the same problem whenever I kept the image file inside any folder (for. eg assests). But later i started keeping the images file in the main project folder; I didn't keep them inside any folders and they started to show up in the application.
To get "Compile with .NET Native tool chain" working you have to use UWP-specific overload of the Forms.Init call which allows to correctly include FFImageLoading assemblies for Xamarin.Forms usage:
// you'll need to add `using System.Reflection;`
List<Assembly> assembliesToInclude = new List<Assembly>();
//Now, add in all the assemblies your app uses
assembliesToInclude.Add(typeof (FFImageLoadingAssembliesHere).GetTypeInfo().Assembly);
//Also do this for all your other 3rd party libraries
Xamarin.Forms.Forms.Init(e, assembliesToInclude);
// replaces Xamarin.Forms.Forms.Init(e);
I also had the issue with images not showing up on my UWP app. The images were showing up on my Android project but not UWP. For me the solution was to add the file extension. For some reason "myimage" works on Android but not on UWP, has to include the file extension like "myimage.png". Just wanna leave this here for anyone else potentially experiencing the same issue.