﻿<?xml version="1.0" encoding="utf-8"?><rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:media="http://search.yahoo.com/mrss/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0"><channel><title>Intersoft Community - Crosslight - OnResume Show Modal</title><link>http://www.intersoftsolutions.com/Community/Crosslight/OnResume-Show-Modal/</link><description /><generator>http://www.intersoftsolutions.com</generator><language>en</language><copyright>Copyright 2002 - 2015 Intersoft Solutions Corp. All rights reserved.</copyright><ttl>60</ttl><item><title>OnResume Show Modal</title><link>http://www.intersoftsolutions.com/Community/Crosslight/OnResume-Show-Modal/</link><pubDate>Mon, 13 Oct 2014 08:13:42 GMT</pubDate><dc:creator>yudi</dc:creator><description>&lt;blockquote&gt;What about iOS?&lt;/blockquote&gt;&lt;p&gt;&lt;span style="color: #1f497d;"&gt;You can try to override ViewDidAppear in MainViewController.cs and add following snippet code.&lt;/span&gt;&lt;/p&gt;&lt;pre&gt;public override void ViewDidAppear(bool animated)
{
    base.ViewDidAppear(animated);

    this.ViewModel.NavigationService.Navigate(new NavigationTarget(typeof(AboutViewModel), NavigationMode.Modal));
}&lt;/pre&gt;
&lt;p&gt;&lt;span style="color: #1f497d;"&gt;Hope this help.&lt;/span&gt;&lt;/p&gt;</description></item><item><title>OnResume Show Modal</title><link>http://www.intersoftsolutions.com/Community/Crosslight/OnResume-Show-Modal/</link><pubDate>Fri, 10 Oct 2014 07:46:05 GMT</pubDate><dc:creator>devincroud</dc:creator><description>&lt;p&gt;Ok this kinda works for Android, it keeps popping up the AdViewModel over and over again which I can fix.&lt;/p&gt;&lt;p&gt;What about iOS?&lt;/p&gt;&lt;p&gt;


&lt;font face="Menlo"&gt;
&lt;span style="color:#333333;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style="color:#009695;"&gt;public&lt;/span&gt;&lt;span style="color:#333333;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span style="color:#009695;"&gt;override&lt;/span&gt;&lt;span style="color:#333333;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span style="color:#009695;"&gt;void&lt;/span&gt;&lt;span style="color:#333333;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span style="color:#333333;"&gt;DidEnterBackground&lt;/span&gt;&lt;span style="color:#333333;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span style="color:#333333;"&gt;(&lt;/span&gt;&lt;span style="color:#3364a4;"&gt;UIApplication&lt;/span&gt;&lt;span style="color:#333333;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span style="color:#333333;"&gt;application&lt;/span&gt;&lt;span style="color:#333333;"&gt;)&lt;/span&gt;&lt;br&gt;
&lt;span style="color:#333333;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style="color:#333333;"&gt;{&lt;/span&gt;&lt;br&gt;
&lt;span style="color:#333333;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;br&gt;
&lt;span style="color:#333333;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style="color:#333333;"&gt;}&lt;/span&gt;&lt;/font&gt;

&lt;/p&gt;&lt;p&gt;I'm unable to put the code to the ViewModel in there within the AppDelegate.cs&lt;/p&gt;</description></item><item><title>OnResume Show Modal</title><link>http://www.intersoftsolutions.com/Community/Crosslight/OnResume-Show-Modal/</link><pubDate>Fri, 10 Oct 2014 01:32:26 GMT</pubDate><dc:creator>yudi</dc:creator><description>&lt;p&gt;&lt;span style="color: #1f497d;"&gt;I uploaded my simple project in &lt;a href="https://onedrive.live.com/download?resid=A29317908CEA783A%21415" target="_blank"&gt;here&lt;/a&gt;. Please have the project tested on your end and let me know whether it helps or not.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="color: #1f497d;"&gt;For your information, I'm using Crosslight 2 Update 5 assembly files in my local end.&lt;/span&gt;&lt;/p&gt;</description></item><item><title>OnResume Show Modal</title><link>http://www.intersoftsolutions.com/Community/Crosslight/OnResume-Show-Modal/</link><pubDate>Thu, 09 Oct 2014 16:41:07 GMT</pubDate><dc:creator>devincroud</dc:creator><description>&lt;p&gt;I put the code into my RootViewModel but I get:&lt;/p&gt;    &lt;p&gt;protected override void OnResume() is marked as an override but no suitable method found to override.&lt;/p&gt;
    &lt;p&gt;And&lt;br&gt;
    If I put this into AppServices.cs in the core, I get Core/Infrastructure/AppService.cs(18,18): Error CS0120: An object reference is required to access non-static member `Intersoft.Crosslight.ViewModels.ViewModelBase.NavigationService' (CS0120) (IncroudRadio.Core)&lt;/p&gt;
    &lt;pre&gt;protected override void OnResume()
{
    base.OnResume();

    HomeViewModel.NavigationService.Navigate(new NavigationTarget(typeof (AdViewModel), NavigationMode.Modal));
}&lt;/pre&gt;</description></item><item><title>OnResume Show Modal</title><link>http://www.intersoftsolutions.com/Community/Crosslight/OnResume-Show-Modal/</link><pubDate>Thu, 09 Oct 2014 03:57:27 GMT</pubDate><dc:creator>yudi</dc:creator><description>&lt;p&gt;&lt;span style="color: #1f497d;"&gt;You can try to use following approach: Override OnResume in the activity of the root view model, then navigate to the target view model(for example: AboutViewModel).&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="color: #1f497d;"&gt;I created a simple project by using Blank project template. By default, SimpleViewModel is set as the RootViewModel (see override OnStart in AppService.cs file of Core project). I added a layout in the Android project and named it as About.axml. I also add AboutActivity and AboutViewModel.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="color: #1f497d;"&gt;In SimpleActivity class, override OnResume and navigate to the AboutViewModel by using following snippet code.&lt;/span&gt;&lt;/p&gt;
&lt;pre&gt;protected override void OnResume()
{
    base.OnResume();

    this.ViewModel.NavigationService.Navigate(new NavigationTarget(typeof (AboutViewModel), NavigationMode.Modal));
}&lt;/pre&gt;
&lt;p&gt;&lt;span style="color: #1f497d;"&gt;Hope this help.&lt;/span&gt;&lt;/p&gt;</description></item><item><title>OnResume Show Modal</title><link>http://www.intersoftsolutions.com/Community/Crosslight/OnResume-Show-Modal/</link><pubDate>Wed, 08 Oct 2014 21:34:53 GMT</pubDate><dc:creator>devincroud</dc:creator><description>I need to show a Modal View everytime a user comes back into the app. &amp;nbsp;Navigation services is not available in the Core AppInitializer. &amp;nbsp;Is there a work around to do this? &amp;nbsp;</description></item></channel></rss>