I'm facing the issue in jQuary.ajax (get,post) call in hybridwebview for iOS and UWP. however it is working fine in android.
Can anyone suggest me any idea how to fix.
I'm facing the issue in jQuary.ajax (get,post) call in hybridwebview for iOS and UWP. however it is working fine in android.
Can anyone suggest me any idea how to fix.
I have a problem that only occurs when starting a Windows Phone app on a device where I'm using code from this forms example: https://developer.xamarin.com/guides/xamarin-forms/advanced/localization/
Only when running on a Windows Phone device I get this error using CultureInfo, but not on a emulator. Every evaluation of CultureInfo related expressions result this:
error CS0012: The type 'CultureInfo' is defined in an assembly that is not referenced. You must add a reference to assembly 'System.Globalization, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'.
So even the simple CultureInfo.CurrentCulture will evaluate to this error. It's actually not leading to an exception though untill a CultureInfo object is passed into the ResourceManager for retrieving a translation.
I feel my lack of understanding how the PCL's and binding works exactly is impeding me to find a solution here. I've reproduced the problem in a small project which can be found on: https://github.com/ferrydeboer/WPCrashForms
I'd like to know if somebody can repro this problem with the WinPhone project on a Windows Device. The crashes occur both on Windows Phone 8.1 and Windows 10 devices.
We're experiencing memory leaks in our Xamarin.Forms Android application, and I've been investigating using Profiler. This has led me to running Profiler against a very basic Forms app.
The very basic Forms app is based on the simple List->Detail template project which is available in Visual Studio For Mac.
All it does is navigate from a list page to a details page using the inbuilt navigation stack.
async void OnItemSelected(object sender, SelectedItemChangedEventArgs args)
{
var item = args.SelectedItem as Item;
if (item == null)
return;
await Navigation.PushAsync(new ItemDetailPage(new ItemDetailViewModel(item)));
// Manually deselect item
ItemsListView.SelectedItem = null;
}
Going from List->Details->List 11 times and then taking a snapshot in Profiler reveals that we've got 372 BindablePropertyContext objects and 22 Labels (among other objects) created and not released:
I have tried setting Content to null and BindingContext to null in the OnDisappearing event of the Details page, and also putting an explicit GC.Collect() in the OnAppearing of the List page. Neither of these fix the problem.
This is not acceptable for an app which is intended to run continuously on a device!
So is there a core memory leak in Forms, or am I missing something?
I'm using Xamarin.Forms 2.5.0.121934
While implementing a permission plugin in Xamarin app saw this line of code
As per my understanding, it works same as
Application.Current.MainPage.DisplayAlert("");
So what's the use of "?" here
I would like to add an AutoSuggestBox in the title bar area for certain pages, not all pages. Can a page be defined in the PCL and a custom renderer used to modify only the title bar in the UWP project and preserve the rest of the page layout from the PCL?
here current sale is a button,when a user select any list item then it will add quantity to this item to current sale square button
how to create this animation with label center of the square?
I have this problem,Im using Visual Studio Mac.
I debug my iOS app in my iPhone, but after a moment, the app in iPhone doesn't work, the debug process in Visual Studio goes well without any error, but iPhone doesn't open the app any more,
It happened to me for every projects of mine.
I had a stack layout with two labels side by side. In this case the content page is made as small as possible.
When I change the left column from a label to a list view it drastically increases the size of each row in both height and width to take up as much space as possible.
Similar to the two label version I would like the list view version to shrink to be as small as possible in both height and width so it is just big enough to encompass all of its contents. How do I do this?
I need to pull out the bundle version set in iOS as well as the version number from Android.
How possible for me to access all this bundle related staff from Xamarin Forms?
Hello,
I'm facing a problem with rounded corners. In a page in my PCL project I've a Frame with CornerRadius set to 20. On iOS and Android, no problems, they appears as I want but on UWP and WP Frame stays with square corner...
Is it a known bug or limitation ?
Thanks for your help!
Hi all,
everything was working fine with my XF app, until changed computer. After reinstalling all my programs etc, when I build the app i get this error:
Error java.lang.OutOfMemoryError. Consider increasing the value of $(JavaMaximumHeapSize). Java ran out of memory while executing 'java.exe -jar "C:\Program Files (x86)\Android\android-sdk\build-tools\25.0.3\lib\dx.jar" --dex --no-strict --output obj\Debug\android\bin R:\VeloGuide\App\VeloGuideApp\VeloGuideApp.Android\obj\Debug\android\bin\classes.zip "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\ReferenceAssemblies\Microsoft\Framework\MonoAndroid\v8.0\mono.android.jar" obj\Debug\lp\42\jl\arch-core-common.jar obj\Debug\lp\43\jl\arch-lifecycle-common.jar obj\Debug\lp\44\jl\bin\classes.jar obj\Debug\lp\45\jl\bin\classes.jar obj\Debug\lp\47\jl\bin\classes.jar obj\Debug\lp\48\jl\bin\classes.jar obj\Debug\lp\49\jl\bin\classes.jar obj\Debug\lp\50\jl\bin\classes.jar obj\Debug\lp\51\jl\bin\classes.jar obj\Debug\lp\52\jl\bin\classes.jar obj\Debug\lp\53\jl\bin\classes.jar obj\Debug\lp\54\jl\bin\classes.jar obj\Debug\lp\55\jl\bin\classes.jar obj\Debug\lp\56\jl\bin\classes.jar obj\Debug\lp\57\jl\bin\classes.jar obj\Debug\lp\58\jl\bin\classes.jar obj\Debug\lp\59\jl\bin\classes.jar obj\Debug\lp\6\jl\formsviewgroup.jar obj\Debug\lp\60\jl\bin\classes.jar'
This solution worked:
https://stackoverflow.com/a/36835891
but the first thing i wonder is: why did i start getting this error in the first place? Different JDK versions?
The second problem is that after I fix the build error, I can't deploy to my android phone anymore.
The build is successful, but I get the "There were deployment errors. Continue?" alert box.
I attached my Output window log. Please help, it must be some configuration, as I had to reinstall everything on a new PC.
Hi,
When the list of images is refreshed, infinite scrolling, some of the images load and then fade away. The array of images is has the expected number but, they are not being displayed.
I have 1st contacted Microsoft about this isssue and they have pointed me to FFImageLoading as the possible problem.
"'I've been in constant communication with some of our Escalation Engineers in regards to this issue. We were able to determine that the problem is occurring when the application is trying to set the HightRequest. On the DashboardPage.xaml.cs file -Line 162, If you change the img.HightRequest to a fix Hight, the issue does not occur when refreshing.
I am not sure if this bug is coming from our Xamarin Framework or if this is an issue with the FFImageLoading.
I did some research on the FFImageLoading component and noticed that an issue was submitted to their GitHub. Another user seemed to be having a very similar problem but with a ListView.
github DOT com luberda-molinet FFImageLoading issues 974"
Have you seen this issue before and do you have any suggestions for me?
Best,
I'm trying build my iOS application from Visual Studio for generate an IPA file, but I'm not having success.I set it up my provisioning profile, with my AppID etc, and when I try compile iOS application, gives following error:
"D:\AppNivel_Bkp_14032018_1450h\AppNivel\AppNivel.iOS\AppNivel.iOS.csproj" (default target) (1) ->
(_CodesignAppBundle target) ->
C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.targets(1930,3): error : /Users/user122749/Library/Caches/Xamarin/mtbs/Users/carlo/Desktop/IOS/AppNivel.iOS.app: unknown error -1=ffffffffffffffff
"
I am using Xamarin Forms, is there any component that i can use to open the Calendar application on the device in iOS and UWP?
Or dependency service.
Thank you in advance.
Hi All,
I have a ControlTemplet which is common for all the content pages which i have used in my Application. and my Control templet Contains A hamburger button at the top left corner , So now when i will inherit the control templet on all the pages the hamburger button is visible .. as we know that the control templet is on App.cs class so the clicked event of hamburger button is also on the app.cs class file . now i have to open the side navigation from each page but every time event is fired on App.cs file . now the problem is everytime whenever i am clicking the hamburger button side menu appears but detail page again set as the page i have set when creating masterdetailapge. i need that when ever i clicked hamburger button that time detail page should remain the same detail page on which i am right now . but now whenever i am clicking the hamburger button everytime detail page changes to lets say home page from any ContentPage.
@AlessandroCaliaro @MichaelRidland @JamesMontemagno @NMackay @adamkemp
Hi, I have been searching for a tutorial on creating a menu like Gmail master-detail. I can do the functionality. I am just curious as to what controls are used to build that. My guess is.
Content.content
?
>
I want to create that beautiful looking menu with the icons. Is there some tutorial that discusses actually building that. Every tutorial assumes the person wants the Master-Detail functionality but I want the LOOK and Feel.
Any help is appreciated.
Thanks
I am trying to set up a listView that shows a number of things from my itemsSource, and within those items I want to show a star rating. I am familiar with sfRating and it works great except for the slowdown I have seen when using it multiple times on a page.
I'm unsure how to go about this. I have a bit of code that will take a StackLayout container and a value (0.0-5.0) and show the correct number of filled/empty stars but do not think I am able to insert that container into the template in any way after googling around for awhile. I was hoping I could bind the contents of an empty shell, create it in code and replace it for each item but I haven't found a way to do that.
I am currently thinking I could accomplish this by having 5 filled stars, 5 empty stars, and one half star and bind each one to a value that will let me make it visible or not. That is a pretty ugly solution though and so I'm hoping someone could shed some light on the proper way of doing this? Any help would be appreciated, thanks.
I have done some search and did not find any documentation on how to use it in Xamarin.Forms. About WPF, I found some but they was old, and I couldn't figure out how to bind it with Xamarin. Please, write here how to use it, or provide some links, please.
Hi guys,
I really love Xamarin Live Player. It works perfectly with a "standard" XF application.
But I can't find a way to make it work with a Prism application. I just get 20 build errors with the out of the box default app.
Any help? Has anybody been able to use Xamarin Live Player with a Prism App?
@BrianLagunas any work around?
Thanks!
We have the following navigation hierarchy in place:
Login (ContentPage)
-> Home (ContentPage)
--> List of Items (ContentPage)
---> Details View (TabbedPage)
----> Add Entry (ContentPage without NavigationBar)
----> Read Only View Entry (ContentPage)
On the Add Entry page, we removed the navigation bar so we could add a guard to the back navigation so users do not lose their data from accidental taps. We also have a button on the TabbedPage that pulls up the device camera allowing users to capture pictures for later use.
The problem comes into play when returning to the TabbedPage (Details View), from either the Camera or the Add Entry screen. The tabbedpage resizes itself and the tabs pushed past the bottom of the screen on iOS. Checking the page size before and after navigation shows that the TabbedPage is resizing itself based on the previous page height (i.e. a page without the navigation bar or the screen the plugin displays when capturing photos).
Rotating the phone to landscape and back to portrait corrects the sizing issue but that is obviously a major issue for our users. We have tried to set the height of the page based on the height of the tabbedpage when it first renders but that is being ignored as well.
This is also not a constant issue. One developer can build the app using the Ad-Hoc configuration and the problem does not exist; however, if he builds using debug, it is present. Another dev has the problem regardless of Ad-Hoc or Debug.
We have one dev on the team staying up to date with Xamarin updates while others are staying one or two behind in case of problems. The dev with the most current version of Xamarin and VS2017 has the problem regardless of configuration. We have updated NUget packages, completely deleted the local repository, rolled back to an old branch and nothing seems to fix this issue.
Has anyone else experienced this problem? The pages in question have not changed in a few months so no recent code changes were the obvious source.