{"action":"created","issue":{"url":"https://api.github.com/repos/rid00z/FreshMvvm/issues/23","labels_url":"https://api.github.com/repos/rid00z/FreshMvvm/issues/23/labels{/name}","comments_url":"https://api.github.com/repos/rid00z/FreshMvvm/issues/23/comments","events_url":"https://api.github.com/repos/rid00z/FreshMvvm/issues/23/events","html_url":"https://github.com/rid00z/FreshMvvm/issues/23","id":118829559,"number":23,"title":"Arc.Userdialogs","user":{"login":"MBrekhof","id":13586354,"avatar_url":"https://avatars.githubusercontent.com/u/13586354?v=3","gravatar_id":"","url":"https://api.github.com/users/MBrekhof","html_url":"https://github.com/MBrekhof","followers_url":"https://api.github.com/users/MBrekhof/followers","following_url":"https://api.github.com/users/MBrekhof/following{/other_user}","gists_url":"https://api.github.com/users/MBrekhof/gists{/gist_id}","starred_url":"https://api.github.com/users/MBrekhof/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MBrekhof/subscriptions","organizations_url":"https://api.github.com/users/MBrekhof/orgs","repos_url":"https://api.github.com/users/MBrekhof/repos","events_url":"https://api.github.com/users/MBrekhof/events{/privacy}","received_events_url":"https://api.github.com/users/MBrekhof/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-11-25T12:46:38Z","updated_at":"2015-11-25T19:43:32Z","closed_at":null,"body":"I'm using Arc.Userdialogs together with FreshMvvm which works well with one exception: the messages(toasts) appear and reappear as if there is an additional refresh/repaint by FreshMvvm.\r\n\r\nDid you ever use Arc.Userdialogs with FreshMvvm and are there any gotchas or whatever?"},"comment":{"url":"https://api.github.com/repos/rid00z/FreshMvvm/issues/comments/159711509","html_url":"https://github.com/rid00z/FreshMvvm/issues/23#issuecomment-159711509","issue_url":"https://api.github.com/repos/rid00z/FreshMvvm/issues/23","id":159711509,"user":{"login":"rid00z","id":1546173,"avatar_url":"https://avatars.githubusercontent.com/u/1546173?v=3","gravatar_id":"","url":"https://api.github.com/users/rid00z","html_url":"https://github.com/rid00z","followers_url":"https://api.github.com/users/rid00z/followers","following_url":"https://api.github.com/users/rid00z/following{/other_user}","gists_url":"https://api.github.com/users/rid00z/gists{/gist_id}","starred_url":"https://api.github.com/users/rid00z/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rid00z/subscriptions","organizations_url":"https://api.github.com/users/rid00z/orgs","repos_url":"https://api.github.com/users/rid00z/repos","events_url":"https://api.github.com/users/rid00z/events{/privacy}","received_events_url":"https://api.github.com/users/rid00z/received_events","type":"User","site_admin":false},"created_at":"2015-11-25T19:43:32Z","updated_at":"2015-11-25T19:43:32Z","body":"Shouldn't\n\nOn Thursday, 26 November 2015, Michael Ridland <rid00z@gmail.com> wrote:\n\n>\n> You should really be loading a dialog during the init method. Normally I\n> never have to do that, dialogs are shown in commands.\n>\n> On Thursday, 26 November 2015, MBrekhof <notifications@github.com\n> <javascript:_e(%7B%7D,'cvml','notifications@github.com');>> wrote:\n>\n>> I'll ask them also, just in case:\n>>\n>> This works as expected:\n>>\n>> [ImplementPropertyChanged]\n>> public class GebruikerPageModel : FreshBasePageModel\n>> {\n>>     IDatabaseService _databaseService;\n>>     private IUserDialogs _userDialogs;\n>>     public Gebruiker gebruiker { get; set; }\n>>\n>>     public GebruikerPageModel(IDatabaseService databaseService,IUserDialogs userDialogs)\n>>     {\n>>         _databaseService = databaseService;\n>>         _userDialogs = userDialogs;\n>>     }\n>>\n>>     public override void Init(object initData)\n>>     {\n>>\n>> ....\n>> }\n>>\n>>     public Command SaveGebruiker\n>>     {\n>>         get       {\n>>             return new Command(() =>\n>>             {\n>>                 if (!CrossConnectivity.Current.IsConnected)\n>>                 {\n>>                     _userDialogs.ErrorToast(\"Probleem\", \"Geen werkende Wifi verbinding\", 5000);\n>>                 }\n>>                 else\n>>                 {\n>>                     List<Inbox> testboxes = _databaseService.GetInboxes();\n>>                     if (testboxes?.Count == 0)\n>>                         _userDialogs.ErrorToast(\"Probleem\", \"Geen inboxen gevonden, gegevens correct?\", 5000);\n>>                     else\n>>                     {\n>>                         _databaseService.SaveGebruiker(gebruiker);\n>>                         App.CurrentUser = gebruiker;\n>>                     }\n>>                 }\n>>                 CoreMethods.PopPageModel(gebruiker);\n>>             });\n>>         }\n>>     }\n>>\n>> }\n>>\n>> This produces some red flashes:\n>> [ImplementPropertyChanged]\n>> public class InboxListPageModel : FreshBasePageModel\n>> {\n>> IDatabaseService _databaseService;\n>> IUserDialogs _userDialogs;\n>>\n>>     private string inboxesHeader = \"Inboxen\";\n>>\n>>     public string InboxesHeader\n>>     {\n>>         get { return inboxesHeader; }\n>>         set { inboxesHeader = value; }\n>>     }\n>>\n>>     public InboxListPageModel(IDatabaseService databaseService, IUserDialogs userDialogs)\n>>     {\n>>         _databaseService = databaseService;\n>>         _userDialogs = userDialogs;\n>>     }\n>>\n>>     public ObservableCollection<Inbox> Inboxes { get; set; }\n>>\n>>     public override void Init(object initData)\n>>     {\n>>\n>>         Gebruiker gebr = App.CurrentUser;\n>>         if (App.CurrentUser == null)\n>>         {\n>>             _userDialogs.ShowError(\"Geen Digidoc ID ingevuld.\", 3000);\n>>         }\n>>         else\n>>         {\n>>             if (String.IsNullOrEmpty(App.CurrentUser.Naam))\n>>                 _userDialogs.ShowError(\"Geen correcte Digidoc ID ingevuld.\", 3000);\n>>         }\n>>         if (!CrossConnectivity.Current.IsConnected)\n>>         {\n>>             _userDialogs.ErrorToast(\"Probleem\",\"Er is geen Wifi beschikbaar\", 3000);\n>>         }\n>>     }\n>>\n>> ....\n>>\n>> —\n>> Reply to this email directly or view it on GitHub\n>> <https://github.com/rid00z/FreshMvvm/issues/23#issuecomment-159703864>.\n>>\n>\n>\n> --\n>\n> *Michael Ridland | Technical Director | Xamarin MVP*\n>\n> XAM Consulting - Mobile Technology Specialists\n>\n> www.xam-consulting.com\n>\n> Blog: www.michaelridland.com\n>\n>\n>\n>\n\n-- \n\n*Michael Ridland | Technical Director | Xamarin MVP*\n\nXAM Consulting - Mobile Technology Specialists\n\nwww.xam-consulting.com\n\nBlog: www.michaelridland.com\n"}}