﻿<?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 - How to Use Crosslight v2 Advanced Master Detail to Close Detail View?</title><link>http://www.intersoftsolutions.com/Community/Crosslight/How-to-Use-Crosslight-v2-Advanced-Master-Detail-to-Close-Detail-View/</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>How to Use Crosslight v2 Advanced Master Detail to Close Detail View?</title><link>http://www.intersoftsolutions.com/Community/Crosslight/How-to-Use-Crosslight-v2-Advanced-Master-Detail-to-Close-Detail-View/</link><pubDate>Fri, 03 Jul 2015 02:22:55 GMT</pubDate><dc:creator>Arief</dc:creator><description>&lt;p&gt;Hi Jimmy,&lt;br&gt;&lt;br&gt;I will inform feature request for developer under CROS-861, as this is not the default android behaviour.&lt;br&gt;Please note that we will be planned this feature after version 4 release.&lt;br&gt;&lt;br&gt;Best Regards,&lt;br&gt;Arief&lt;br&gt;&lt;/p&gt;</description></item><item><title>How to Use Crosslight v2 Advanced Master Detail to Close Detail View?</title><link>http://www.intersoftsolutions.com/Community/Crosslight/How-to-Use-Crosslight-v2-Advanced-Master-Detail-to-Close-Detail-View/</link><pubDate>Tue, 30 Jun 2015 14:41:05 GMT</pubDate><dc:creator>jtungol@silentpartnersoft.com</dc:creator><description>Hi Arief,&lt;br&gt;&lt;br&gt;Please advise how this thing is going.&lt;br&gt;&lt;br&gt;Thanks!&lt;br&gt;</description></item><item><title>How to Use Crosslight v2 Advanced Master Detail to Close Detail View?</title><link>http://www.intersoftsolutions.com/Community/Crosslight/How-to-Use-Crosslight-v2-Advanced-Master-Detail-to-Close-Detail-View/</link><pubDate>Mon, 22 Jun 2015 04:17:29 GMT</pubDate><dc:creator>Arief</dc:creator><description>&lt;p&gt;Hi Jimmy,&lt;br&gt;&lt;br&gt;I'm discussing this with our developer, as far as i know Android state management is rather different so method must be rather different. I will get back to this if i have new information regarding this issues.&lt;br&gt;&lt;br&gt;Best Regards,&lt;br&gt;Arief&lt;br&gt;&lt;/p&gt;</description></item><item><title>How to Use Crosslight v2 Advanced Master Detail to Close Detail View?</title><link>http://www.intersoftsolutions.com/Community/Crosslight/How-to-Use-Crosslight-v2-Advanced-Master-Detail-to-Close-Detail-View/</link><pubDate>Thu, 18 Jun 2015 13:44:36 GMT</pubDate><dc:creator>jtungol@silentpartnersoft.com</dc:creator><description>In relation to this concern, how can we implement the same behavior on other platforms like Android, WinPhone, etc? Are there equivalent objects on other platforms in relation to how the SetDetailViewController was used with iOS?&lt;br&gt;</description></item><item><title>How to Use Crosslight v2 Advanced Master Detail to Close Detail View?</title><link>http://www.intersoftsolutions.com/Community/Crosslight/How-to-Use-Crosslight-v2-Advanced-Master-Detail-to-Close-Detail-View/</link><pubDate>Mon, 25 Aug 2014 10:47:53 GMT</pubDate><dc:creator>dfugaban@silentpartnersoft.com</dc:creator><description>&lt;p&gt;Yes, currently this is how it's implemented.&lt;/p&gt;</description></item><item><title>How to Use Crosslight v2 Advanced Master Detail to Close Detail View?</title><link>http://www.intersoftsolutions.com/Community/Crosslight/How-to-Use-Crosslight-v2-Advanced-Master-Detail-to-Close-Detail-View/</link><pubDate>Mon, 25 Aug 2014 09:46:24 GMT</pubDate><dc:creator>jimmyps@intersoftpt.com</dc:creator><description>&lt;p&gt;Hello Domingo,&lt;/p&gt;&lt;p&gt;While it's possible for the development team to implement this behavior as a built-in feature (through an option), you can also implement this behavior directly in your app.&lt;/p&gt;&lt;p&gt;Most of our components are designed with solid architecture and interfaces which expose a number of methods that you can call in the platform-specific view context. Since this task relates to the iOS specific view, you can easily achieve this behavior by getting the instance of the&amp;nbsp;&lt;a href="http://developer.intersoftpt.com/display/crosslightapi/IMasterDetailViewController+Interface" target="_blank"&gt;IMasterDetailViewController&lt;/a&gt;&amp;nbsp;from the table view controller in question, and then call the &lt;b&gt;SetDetailViewController&lt;/b&gt; method in the ViewDidDisappear method override.&lt;/p&gt;&lt;p&gt;Crosslight also comes with a lot of convenience APIs which might not be easily discovered. For instance, you can use GetParentViewController(parentType) and pass in an interface type to get the instance of the parent view controller with the particular type.&lt;/p&gt;&lt;p&gt;Here's the code example, referring to the MyInventory_MasterDetail sample.&lt;/p&gt;&lt;pre&gt; &lt;br&gt;  &lt;br&gt;        private IMasterDetailViewController _masterDetailController = null;&lt;br&gt;&lt;br&gt;        protected override void InitializeView()        {
            base.InitializeView();

            // gets the master detail instance that host this view controller
            _masterDetailController = this.GetParentViewController(typeof(IMasterDetailViewController)) as IMasterDetailViewController;
        }

        public override void ViewDidDisappear(bool animated)
        {
            base.ViewDidDisappear(animated);

            // set the detail view controller with animation
            _masterDetailController.SetDetailViewController(new ItemDetailViewController(), true);
        }&lt;br&gt; &lt;/pre&gt;&lt;p&gt;&lt;span style="font-size: 10pt;"&gt;With the code above applied, when you go back from the items list to category, notice the detail view is now nicelyanimating back to "No items selected".&lt;/span&gt;&lt;/p&gt;&lt;p&gt;Hope this helps,&lt;br&gt;Jimmy&lt;/p&gt;</description></item><item><title>How to Use Crosslight v2 Advanced Master Detail to Close Detail View?</title><link>http://www.intersoftsolutions.com/Community/Crosslight/How-to-Use-Crosslight-v2-Advanced-Master-Detail-to-Close-Detail-View/</link><pubDate>Mon, 25 Aug 2014 02:39:21 GMT</pubDate><dc:creator>Hans</dc:creator><description>Hello,&lt;br&gt;&lt;br&gt;I apologize for the inconvenience.&lt;br&gt;&lt;br&gt;I have forwarded this issue to the developer team under work item number CROS-528.&lt;br&gt;&lt;br&gt;We will let you know if there is an update regarding this issue.&lt;br&gt;&lt;br&gt;Thank you for your patience.&lt;br&gt;&lt;br&gt;Regards,&lt;br&gt;Hans K.</description></item><item><title>How to Use Crosslight v2 Advanced Master Detail to Close Detail View?</title><link>http://www.intersoftsolutions.com/Community/Crosslight/How-to-Use-Crosslight-v2-Advanced-Master-Detail-to-Close-Detail-View/</link><pubDate>Wed, 20 Aug 2014 11:47:41 GMT</pubDate><dc:creator>dfugaban@silentpartnersoft.com</dc:creator><description>&lt;p&gt;Hi Guys,&lt;br&gt;&lt;br&gt;&lt;br&gt;Kindly advise how to close the detail view when the master list goes back to the upper stack. Using the Master/Detail sample that you have provided... going back to the category list after viewing an item from the inventory (ItemListViewController) should close the detail view, regardless if the detail view has navigation context or not. We need to set it back to the default detail view such as when "no item is selected" to avoid editing or manipulating the details once the master panel/view is back to the category list.&lt;/p&gt;&lt;p&gt;&lt;span style="font-size: 10pt;"&gt;&lt;br&gt;Thanks!&lt;/span&gt;&lt;/p&gt;</description></item></channel></rss>