I'm using Rg.Plugins.Popup for a while but I can't get it working anymore on UWP for new projects.
While its working perfectly in Android, I get this error in UWP :
Exception thrown: 'System.NullReferenceException' in Rg.Plugins.Popup.UWP.dll
Object reference not set to an instance of an object.
Rg.Plugins.Popup.UWP.dll!Rg.Plugins.Popup.Windows.Renderers.PopupPageRenderer.UpdateElementSize() Line 124
I made a small test repo here.
I use Rg.plugins.popup 1.1.5.188, Xamarin 5.0.0.2012 and the targeted plaform in UWP is 10.0.19041.
Can anyone help me and/or check if you get the same behavior ?
I also notice that with Rg.plugins.popup version 2.0.0.12, I get another error :
Error CS0234 The type or namespace name 'Popup' does not exist in the namespace 'Rg.Plugins.Popup' (are you missing an assembly reference?)
Here is my initialisation code in UWP, just as describe in the WIKI:
What a waste of time ...
https://github.com/rotorgames/Rg.Plugins.Popup/issues/527
The minimum target has to be set to 10.0.17763 or higher. Not only the target version. That was the trick.
So stupid ...
Related
Me and my team have just migrated our cross-platform XF 4 project to XF5.
The only issue that we have encountered thus far is the following:
Our UWP App was throwing an unhandled App.Xaml exception when navigating to a different page for no apparent reason and after some search, installing the nugget Microsoft.UI.Xaml explicitly fixed that issue, even though that nugget package is supposed to be installed along with XF5 nugget.
But right now a new issue has emerged. When calling the await Application.Current.MainPage.**DisplayAlert**(szTitle, szMessage, btnOk, btnCancel); from the UI thread the alert gets displayed properly but when I click on one of its buttons Ι get an unhandled exception
"No installed components were detected. The property path '(controls:AnimatedIcon.State)' could not be resolved for a Setter." where controls is defined as xmlns:controls="using:Microsoft.UI.Xaml.Controls"
Could you please help me find out what is going wrong?
As far as I know the DisplayAlert() is handled by Xamarin.Forms.
I was trying to do Xamarin UI Test on existing application. When i added following AutomationId i can't run the application and it throws following error
Xamarin.Forms.Xaml.XamlParseException: Position 36:14. No Property of name AutomationId found
and i can't run the test either
Your Help will be really appreciated
AutomationId is supported since Xamarin.Forms 2.2.0 and replaces StyleId for UI testing purposes. So you have to update your package.
https://forums.xamarin.com/discussion/63983/xamarin-forms-2-2-0
I actually try to create a WP7 application with Apache Cordova, so I follow their documentation
I installed the WP7 SDK, added .NET Framework in my Path,
fix this bug.
And now when I try to run "cordova platform add wp7" I've this error message :
Checking wp7 requirements...
Creating WP7 project...
[TypeError: Object #<Object> has no method 'config_xml']
with -d option I get this :
TypeError: Object #<Object> has no method 'config_xml'
at C:\Users\Julien\AppData\Roaming\npm\node_modules\cordova\src\prepare.js:80:45
I use the basic project show in the Cordova doc to test it (HelloWorld).
Some idea to fix it ? because I searched but didn't found any solution...
Ask me if you need more infos on my configs.
I had the same issue with WP7 platform and everything seems updated (cordova -v => 3.2.0-0.3.0).
As a workaround, i add the following function to the %APPDATA%\npm\node_modules\cordova\src\metadata\wp7_parser.js:
config_xml:function() {
return this.config_path;
},
Projects compiling and running with no error so far.
I submitted this bug on the Cordova JIRA platform :
https://issues.apache.org/jira/browse/CB-5499
It will be solved in the 3.3.0 version of cordova.
I am developing an app that uses DatePicker and LoopSelector at same time.
Looking on the tutorials for each of them I have been advised to add assembly references, first one for DatePicker and second one for Loopselector:
xmlns:toolkit="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls.Toolkit"
xmlns:toolkit="clr-namespace:Microsoft.Phone.ControlsPrimitives;assembly=Microsoft.Phone.Controls.Toolkit"
and then I get error message saying The type 'toolkit:Selector' wasn't found.
I welcome any ideas. Thanks.
You cannot have the same name ("toolkit") for both of them!
I have been searching for a solution but couldn't find any yet.
Situation is that I have a customcontrol that uses GestureEventArgs to apply some effect on the "Tap" event. The GestureEventArgs come out of the System.Windows.Input namespace. This is a WP7 (7.1) project by the way. If I use this control in an other WP7 (7.1) project my visual studio 2010 just crashes. No error or exception.
When I open the xaml file in Blend I get the following error:
TypeLoadException: Could not load type
"System.Windows.Input.GestureEventArgs" from assembly
"System.Windows.Input, version= 2.0.5.0, Culture = neutral,
PublicKeyToken=7cec85d7bea7798e"
The only cause that I see is that in the Microsoft.Phone.Controls namespace in my otherproject, also has a GestureEventArgs. But there isn't a complaint about ambiguity.
Anybody has been in this situation?
A fix would be awesome!
I ran into this when I installed and referenced the Windows Phone Silverlight Toolkit. It adds a new GestureEventsArgs to System.Windows.Controls. I got around this by aliasing my using for System.Windows.Input
using input=System.Windows.Input;