Xamarin.Forms.Xaml.XamlParseException: No Property of name AutomationId found - xamarin

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

Related

Rg.Plugins.Popup Crashes on closing popup only in UWP

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 ...

Xamarin.Forms - How to change the cursor position in the input field?

I am learning to develop cross platform mobile applications using Xamarin.Forms and Visual Studio 2017. Input field Entry has a CursorPosition property in the documentation. But when I try to use it I get the error "Property not found". What am I doing wrong? thank
The CursorPosition property has been introduced in Xamairn.Forms 3.2. Prior to that you need to write your own CustomRenderer. Check the version and upgrade accordingly.

App designer not working for existing titanium apps - XML parse error

I tried to use app designer with an existing app to see if it could render the views properly. However, when I open an existing view in app designer mode it shows the error
XML Parsing Error
Line : 1
Premature end of file.
I've tried this with a brand new project and it seems to work fine without error. I am also using the latest SDK with my old project (5.4.0).
Another thing I wanted to try was using the "Movies" demo app with the app designer and it didn't have an error but it did show a blank page and only when you turned on "Show Anchors" from the toolbar did it show some outlines of controls but they were not in the correct places.
Hopefully someone has some ideas but it seems to me this only works with brand new projects for some reason.
I've looked in the studio log files too and there's no entry for app designer when I use it and see this error message.
Thanks in advance for any help!

Are custom bindings required for Xamarin.Forms controls in ReactiveUI?

Trying to see xamarin.Forms and ReactiveUI playing nicely together and I run into the following error when trying to bind to a xamarin.form button
Couldn't find a Command Binder for Xamarin.Forms.Button
using this code:
this.BindCommand (ViewModel, vm => vm.Register, v => v.register);
Am I missing something or do I need to do some special binding for these new xamarin.forms controls?
It works, but support is brand new - you need to build ReactiveUI from source at the moment and include the new ReactiveUI.XamForms.dll assembly.

Cordova platform add wp7 fail : Object #<Object> has no method 'config_xml'

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.

Resources