Click here to Skip to main content
15,436,350 members
Home / Discussions / Mobile
   

Mobile

 
QuestionHow to install Visual Studio Android Emulator in Windows 10 Home Pin
Paramu197316-Apr-20 19:43
MemberParamu197316-Apr-20 19:43 
Questiona pdf book mobile app Pin
Member 1472128719-Jan-20 23:32
MemberMember 1472128719-Jan-20 23:32 
AnswerRe: a pdf book mobile app Pin
Richard MacCutchan20-Jan-20 0:36
mveRichard MacCutchan20-Jan-20 0:36 
GeneralRe: a pdf book mobile app Pin
Member 1472128720-Jan-20 0:38
MemberMember 1472128720-Jan-20 0:38 
GeneralRe: a pdf book mobile app Pin
Richard MacCutchan20-Jan-20 0:53
mveRichard MacCutchan20-Jan-20 0:53 
GeneralRe: a pdf book mobile app Pin
Member 1472128720-Jan-20 0:57
MemberMember 1472128720-Jan-20 0:57 
AnswerRe: a pdf book mobile app Pin
Real Car2-Apr-20 21:15
professionalReal Car2-Apr-20 21:15 
QuestionXamarin Forms & WPF Question Pin
Kevin Marois16-Jan-20 5:54
professionalKevin Marois16-Jan-20 5:54 
I'm a long time WPF developer. I am working on a WPF business app for a client and I'm going to be developing an Android tablet app to go with it. This is my first Xamarin Forms project, so bear with me...

I followed the tutorials here Xamarin documentation - Xamarin | Microsoft Docs under "Get started with Xamarin.Forms", "Build Your First App". I went through all four projects. Everything works fine.

So I then decided to convert the project to MVVM. One thing that I found through Googling is that if you want a View Model to open a new page, your View Model has to know about the INavigation property on the Page See this. What concerns me is that INavigation has to be passed from the UI into the CTOR of the VM. IMHO, This creates a few problems:

1) The VM must be set in the CTOR of the view. That prevents you from doing this.
2) A UI property now has to be passed to the VM.
3) Doing it this way means that you cannot share VMs between WPF and Xamrin Forms projects as WPF doesn't have INavigation.

One this last point... I got the impression from reading up on Xamarin Forms that it's all about sharing code. It seems to me that I could have VMs in a shared project, and use the them in both WPF and Xamarin Forms apps. For example, a LoginViewModel is a good candidate.

Again, I'm very new to Xamarin Forms. I would like to share VMs if I can. I'm open to hearing how this should work.

Thanks
If it's not broken, fix it until it is.
Everything makes sense in someone's mind.
Ya can't fix stupid.


modified 28-Jan-20 11:18am.

AnswerRe: Xamarin Forms & WPF Question Pin
Vimalsoft(Pty) Ltd2-Feb-20 22:48
professionalVimalsoft(Pty) Ltd2-Feb-20 22:48 
QuestionWhy is it the samsung j2 prime mobile if you restart it sometimes its say "optimized andriod" and it takes 24 hrs to open again ? Pin
Alliah Mendia27-Nov-19 19:01
MemberAlliah Mendia27-Nov-19 19:01 
QuestionBest path to developing App Pin
StampedePress22-Oct-19 0:47
MemberStampedePress22-Oct-19 0:47 
AnswerRe: Best path to developing App Pin
OriginalGriff22-Oct-19 0:52
mveOriginalGriff22-Oct-19 0:52 
GeneralRe: Best path to developing App Pin
StampedePress22-Oct-19 1:35
MemberStampedePress22-Oct-19 1:35 
AnswerRe: Best path to developing App Pin
Fleurpink16-Jan-20 9:27
MemberFleurpink16-Jan-20 9:27 
AnswerRe: Best path to developing App Pin
Member 147602671-Mar-20 22:26
MemberMember 147602671-Mar-20 22:26 
QuestionLoan lending application Pin
Member 1460081022-Sep-19 21:05
MemberMember 1460081022-Sep-19 21:05 
AnswerRe: Loan lending application Pin
Richard MacCutchan23-Sep-19 6:49
mveRichard MacCutchan23-Sep-19 6:49 
QuestionNeed advice on which framework I should use for my app Pin
Member 145542078-Aug-19 2:48
MemberMember 145542078-Aug-19 2:48 
AnswerRe: Need advice on which framework I should use for my app Pin
Vimalsoft(Pty) Ltd3-Feb-20 3:57
professionalVimalsoft(Pty) Ltd3-Feb-20 3:57 
QuestionWebsite Cell Phone Display...Nav Bar doesn't scroll Pin
Member 1208020121-Jul-19 5:34
MemberMember 1208020121-Jul-19 5:34 
AnswerRe: Website Cell Phone Display...Nav Bar doesn't scroll Pin
OriginalGriff21-Jul-19 5:40
mveOriginalGriff21-Jul-19 5:40 
GeneralRe: Website Cell Phone Display...Nav Bar doesn't scroll Pin
Member 1208020121-Jul-19 6:20
MemberMember 1208020121-Jul-19 6:20 
GeneralRe: Website Cell Phone Display...Nav Bar doesn't scroll Pin
OriginalGriff21-Jul-19 6:29
mveOriginalGriff21-Jul-19 6:29 
QuestionMigrate to AndroidX Pin
Aigtechnologies16-Jul-19 21:55
professionalAigtechnologies16-Jul-19 21:55 
AnswerRe: Migrate to AndroidX Pin
Afzaal Ahmad Zeeshan21-Jul-19 6:48
mveAfzaal Ahmad Zeeshan21-Jul-19 6:48 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.