Closed JessieArr closed 6 years ago
Hello, I tried to reproduce the bug but I did not have the error you had.
Can you attached a test program.
I'm at work right now, but can do so once I get home this evening. What is the best way to share it? Shall I just Zip the Solution and project folders? Or would you prefer I create a public Github repo?
PS - Thanks for the quick start guide! It was very helpful. :)
You are welcome
Zip the solution it’s a good solution.
I created a new solution from scratch using the above steps and was able to reproduce the issue. You can download the Zipped solution here (22MB): https://www.dropbox.com/s/en8n5jypy9l3yys/HelloWPF.zip?dl=0
It is also publicly available on my Github if that is easier: https://github.com/JessieArr/HelloWPF
To reproduce, simply set HelloWPF.WPF
as your startup project in Visual Studio and then hit "Start" in Debug mode on AnyCPU.
Note also that I am using https://www.myget.org/F/xamarinforms-ci/api/v2 as my package source for Xamarin Forms Nightly builds - it was mentioned in one of the project's blog posts, and I am assuming it is still current. If that assumption is incorrect, it could be the cause of this issue, but the version numbers look current to me so I think it's still valid.
You should not use the myget source package anymore. It was used before the merge with Xamarin Forms.
Regarding the error, you use two version of Xamarin Forms. Please update all packages to the latest version 2.6.0-nightly ....
Ah, that resolved it. My apologies, Xamarin.Forms.Platform.WPF lists the same version of Xamarin.Forms as a dependency - I had assumed it would also pull in the required version when I added it to the solution. As soon as I updated them both I actually got a compiler error about a version mismatch that required me to restart VS. I assume this was probably added in a more recent version of Xamarin Forms than I was using.
Thanks for your time, sorry the issue was something so silly.
Regarding the package source - what is the new package source for Nightly builds? The one I'm using is still listed for Nightly Builds in the project wiki: https://github.com/xamarin/Xamarin.Forms/wiki/Nightly-Builds
Sorry I was wrong.
Nightly build : https://www.myget.org/F/xamarinforms-ci/api/v2
Description
Xamarin.Forms.Platform.WPF app crashes when created with the MasterDetail template (although it seems to be related to the Entry and Editor controls specifically.)
Steps to Reproduce
Expected Behavior
NewItemPage is rendered successfully.
Actual Behavior
Application crashes with the following exception: System.MissingMethodException: 'Method not found: 'Int32 Xamarin.Forms.InputView.get_MaxLength()'.'
Stack Trace: at Xamarin.Forms.Platform.WPF.EntryRenderer.UpdateMaxLength() at Xamarin.Forms.Platform.WPF.EntryRenderer.OnElementChanged(ElementChangedEventArgs`1 e) in C:\agent_work\1\s\Xamarin.Forms.Platform.WPF\Renderers\EntryRenderer.cs:line 41
Basic Information
Additional Information
Commenting out the editable text fields (Entry, and Editor) on the ContentPage allows it to render successfully. The full XAML for the page is here:
And the Codebehind:
============================================= Please let me know if there is any other information I can provide. Thank you for your time!
PS - I'm super excited about WPF support! Thanks to you all for your hard work on this feature! :D