Click here to Skip to main content
15,891,372 members
Home / Discussions / Mobile
   

Mobile

 
QuestionWhat are best app development tool to develop an uber-like app? Pin
Digital Harry4-Jun-19 4:25
professionalDigital Harry4-Jun-19 4:25 
AnswerRe: What are best app development tool to develop an uber-like app? Pin
Dave Kreskowiak5-Jun-19 5:22
mveDave Kreskowiak5-Jun-19 5:22 
GeneralRe: What are best app development tool to develop an uber-like app? Pin
Richard Deeming5-Jun-19 12:28
mveRichard Deeming5-Jun-19 12:28 
GeneralRe: What are best app development tool to develop an uber-like app? Pin
Mycroft Holmes5-Jun-19 12:58
professionalMycroft Holmes5-Jun-19 12:58 
AnswerRe: What are best app development tool to develop an uber-like app? Pin
emilysmithe11-Jun-19 23:00
professionalemilysmithe11-Jun-19 23:00 
AnswerRe: What are best app development tool to develop an uber-like app? Pin
HasanRaza9011-Sep-19 2:32
HasanRaza9011-Sep-19 2:32 
QuestionAfter photo gallery browsing it goes back to the first page Pin
Vimalsoft(Pty) Ltd30-May-19 11:10
professionalVimalsoft(Pty) Ltd30-May-19 11:10 
Questionmessage receiver Pin
Member 1415304827-Apr-19 23:29
Member 1415304827-Apr-19 23:29 
AnswerRe: message receiver Pin
Richard Deeming1-May-19 8:38
mveRichard Deeming1-May-19 8:38 
QuestionHow to add emoji png's to an Entry control or Custom Entry Control Pin
Vimalsoft(Pty) Ltd23-Apr-19 1:56
professionalVimalsoft(Pty) Ltd23-Apr-19 1:56 
AnswerRe: How to add emoji png's to an Entry control or Custom Entry Control Pin
David Crow23-Apr-19 5:21
David Crow23-Apr-19 5:21 
GeneralRe: How to add emoji png's to an Entry control or Custom Entry Control Pin
Vimalsoft(Pty) Ltd23-Apr-19 22:47
professionalVimalsoft(Pty) Ltd23-Apr-19 22:47 
QuestionAVD showing only “Android” in emulator Pin
Member 1357490016-Mar-19 23:52
Member 1357490016-Mar-19 23:52 
QuestionRe: AVD showing only “Android” in emulator Pin
David Crow27-Mar-19 10:58
David Crow27-Mar-19 10:58 
QuestionUSB Cable Between PC And Android Pin
C-P-User-38-Mar-19 5:30
C-P-User-38-Mar-19 5:30 
SuggestionRe: USB Cable Between PC And Android Pin
David Crow8-Mar-19 9:40
David Crow8-Mar-19 9:40 
GeneralRe: USB Cable Between PC And Android Pin
C-P-User-310-Mar-19 4:20
C-P-User-310-Mar-19 4:20 
AnswerRe: USB Cable Between PC And Android Pin
Richard Deeming8-Mar-19 9:43
mveRichard Deeming8-Mar-19 9:43 
QuestionXamarin forms and SQLIte database Pin
Mycroft Holmes25-Feb-19 19:37
professionalMycroft Holmes25-Feb-19 19:37 
SuggestionRe: Xamarin forms and SQLIte database Pin
David Crow26-Feb-19 4:15
David Crow26-Feb-19 4:15 
GeneralRe: Xamarin forms and SQLIte database Pin
Mycroft Holmes26-Feb-19 12:24
professionalMycroft Holmes26-Feb-19 12:24 
QuestionCross Platform Xamarin MVVM ListView binding to ViewModel List not working Pin
Stephen Holdorf19-Feb-19 2:46
Stephen Holdorf19-Feb-19 2:46 
AnswerRe: Cross Platform Xamarin MVVM ListView binding to ViewModel List not working Pin
Mycroft Holmes19-Feb-19 11:11
professionalMycroft Holmes19-Feb-19 11:11 
GeneralRe: Cross Platform Xamarin MVVM ListView binding to ViewModel List not working Pin
Stephen Holdorf20-Feb-19 4:48
Stephen Holdorf20-Feb-19 4:48 
I have it working. Yes ObservableCollections are the way to go but generic Lists are fine as well. The problem is that when the Model is bound the WebService call has not completed so when the List property is bound it is still null. Even when updated at this point the ObservableCollection won't work because it has not been seeded. The solution is to seed the ObservableCollection, or List, on the Page's OnAppearing event and bind the ViewModel as the BindingContext in this event. My solution is below:

protected override async void OnAppearing()
{
    var vm = new ViewModel.ViewModel();
    if (vm == null)
        return;

    HttpClient client = new HttpClient();
    HttpResponseMessage responseGet = await client.GetAsync(vm.Geturi);
    string response = await responseGet.Content.ReadAsStringAsync();

    //Xml Parsing
    var _objPizzaList = new ObservableCollection<XmlPizzaDetails>();
    XDocument doc = XDocument.Parse(response);

    vm.GetRequest(doc);

    this.BindingContext = vm;
}

QuestionXamarin Forms Picker binding Pin
Mycroft Holmes21-Dec-18 19:35
professionalMycroft Holmes21-Dec-18 19:35 

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.