﻿<?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 to Show/Hide Form Sections</title><link>http://www.intersoftsolutions.com/Community/Crosslight/How-to-Use-Crosslight-v2-to-ShowHide-Form-Sections/</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 to Show/Hide Form Sections</title><link>http://www.intersoftsolutions.com/Community/Crosslight/How-to-Use-Crosslight-v2-to-ShowHide-Form-Sections/</link><pubDate>Wed, 15 Jul 2015 09:15:24 GMT</pubDate><dc:creator>Arief</dc:creator><description>&lt;p&gt;Hi Thomas,&lt;br&gt;&lt;br&gt;The best estimate we can give is this month along with our new websites, We still doing extensive testing for Crosslight 4 especially it was along with imminent release of VS2015 and Microsoft Edge (it actually affect our samples and Web Components&amp;nbsp;too based from our testing). But the most important we have a new code generator which we must check extensively or it can break samples and our project templates.&lt;br&gt;&lt;br&gt;Hope this helps.&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 to Show/Hide Form Sections</title><link>http://www.intersoftsolutions.com/Community/Crosslight/How-to-Use-Crosslight-v2-to-ShowHide-Form-Sections/</link><pubDate>Fri, 10 Jul 2015 06:46:39 GMT</pubDate><dc:creator>thomas.albert@tea-net.ch</dc:creator><description>&lt;p&gt;Hello Yudi,&lt;/p&gt;&lt;p&gt;many bugs like to one mentoined in this thread should be fixed in Crosslight 4. But when will Crosslight 4 finally be released. I am waiting for a couple of bug fixes, too.&lt;/p&gt;&lt;p&gt;Thanks,&lt;/p&gt;&lt;p&gt;Thomas&lt;br&gt;&lt;/p&gt;</description></item><item><title>How to Use Crosslight v2 to Show/Hide Form Sections</title><link>http://www.intersoftsolutions.com/Community/Crosslight/How-to-Use-Crosslight-v2-to-ShowHide-Form-Sections/</link><pubDate>Fri, 19 Jun 2015 07:33:51 GMT</pubDate><dc:creator>yudi</dc:creator><description>&lt;p&gt;&lt;span style="color: #1f497d;"&gt;The hotfix for CROS-580 is available in Crosslight which will be released soon. I have tested the VisibilityBinding attribute using Crosslight 4 assembly and found that it works as expected.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="color: #1f497d;"&gt;Hope this helps.&lt;/span&gt;&lt;/p&gt;</description></item><item><title>How to Use Crosslight v2 to Show/Hide Form Sections</title><link>http://www.intersoftsolutions.com/Community/Crosslight/How-to-Use-Crosslight-v2-to-ShowHide-Form-Sections/</link><pubDate>Thu, 18 Jun 2015 14:00:52 GMT</pubDate><dc:creator>jtungol@silentpartnersoft.com</dc:creator><description>Hi,&lt;br&gt;&lt;br&gt;In which release was CROS-580 resolved? Please advise.&lt;br&gt;&lt;br&gt;Thanks!&lt;br&gt;</description></item><item><title>How to Use Crosslight v2 to Show/Hide Form Sections</title><link>http://www.intersoftsolutions.com/Community/Crosslight/How-to-Use-Crosslight-v2-to-ShowHide-Form-Sections/</link><pubDate>Wed, 22 Oct 2014 03:41:01 GMT</pubDate><dc:creator>yudi</dc:creator><description>&lt;p&gt;&lt;span style="color: #1f497d;"&gt;This has been forwarded to Crosslight development team as feature request. The request is filed under CROS-580.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="color: #1f497d;"&gt;I will keep this thread updated with any news I heard from the team regarding CROS-580&lt;/span&gt;&lt;/p&gt;</description></item><item><title>How to Use Crosslight v2 to Show/Hide Form Sections</title><link>http://www.intersoftsolutions.com/Community/Crosslight/How-to-Use-Crosslight-v2-to-ShowHide-Form-Sections/</link><pubDate>Tue, 21 Oct 2014 23:46:44 GMT</pubDate><dc:creator>dfugaban@silentpartnersoft.com</dc:creator><description>&lt;p&gt;Any updates?&lt;/p&gt;</description></item><item><title>How to Use Crosslight v2 to Show/Hide Form Sections</title><link>http://www.intersoftsolutions.com/Community/Crosslight/How-to-Use-Crosslight-v2-to-ShowHide-Form-Sections/</link><pubDate>Fri, 19 Sep 2014 08:31:56 GMT</pubDate><dc:creator>yudi</dc:creator><description>&lt;p&gt;&lt;span style="color: #1f497d;"&gt;I forwarded this to Crosslight development team to be discussed further. I will get back to you as soon as possible.&lt;/span&gt;&lt;/p&gt;</description></item><item><title>How to Use Crosslight v2 to Show/Hide Form Sections</title><link>http://www.intersoftsolutions.com/Community/Crosslight/How-to-Use-Crosslight-v2-to-ShowHide-Form-Sections/</link><pubDate>Thu, 18 Sep 2014 04:54:00 GMT</pubDate><dc:creator>dfugaban@silentpartnersoft.com</dc:creator><description>&lt;p&gt;Hi Yudi,&lt;/p&gt;&lt;p&gt;Thanks for the update, however we are referring to VisibilityBinding for a section, not the individual properties.&lt;/p&gt;&lt;p&gt;Please advise. Thanks!&lt;/p&gt;</description></item><item><title>How to Use Crosslight v2 to Show/Hide Form Sections</title><link>http://www.intersoftsolutions.com/Community/Crosslight/How-to-Use-Crosslight-v2-to-ShowHide-Form-Sections/</link><pubDate>Thu, 18 Sep 2014 02:00:02 GMT</pubDate><dc:creator>yudi</dc:creator><description>&lt;p&gt;&lt;span style="color: #1f497d;"&gt;I created a test project; and use &lt;strong&gt;EnabledBinding&lt;/strong&gt; and &lt;strong&gt;VisibilityBinding&lt;/strong&gt; feature where the &lt;em&gt;SourceType&lt;/em&gt; is set to Model or ViewModel.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="color: #1f497d;"&gt;Following snippet code shows the summary of how to use these features in a section.&lt;/span&gt;&lt;/p&gt;&lt;pre&gt;public class SoldSection{
    // EnabledBinding with SourceType is set to ViewModel
            
    [Editor(EditorType.Switch)]
    [Display(Caption = "EnabledBinding to VM")]
    [Binding(Path="IsSold", SourceType=BindingSourceType.ViewModel)]
    public static bool IsSold;

    [Display(Caption = "Sold Date")]
    [Editor(EditorType.Date)]
    [EnabledBinding(Path = "IsSold", SourceType = BindingSourceType.ViewModel)]
    [Binding(StringFormat = "{0:d}")]
    public static DateTime SoldDate;

    // End of EnabledBinding with SourceType is set to ViewModel

            
    // EnabledBinding with SourceType is set to Model
            
    [Editor(EditorType.Switch)]
    [Display(Caption = "EnabledBinding to M")]
    public static bool IsSold2;

    [Display(Caption = "Sold Date2")]
    [Editor(EditorType.Date)]
    [EnabledBinding(Path = "IsSold2", SourceType=BindingSourceType.Model)]
    [Binding(StringFormat = "{0:d}")]
    public static DateTime SoldDate2;

    // End of EnabledBinding with SourceType is set to Model


    // VisibilityBinding with SourceType is set to ViewModel

    [Editor(EditorType.Switch)]
    [Display(Caption = "VisibilityBinding to VM")]
    [Binding(Path = "IsSold3", SourceType = BindingSourceType.ViewModel)]
    public static bool IsSold3;

    [Display(Caption = "Sold Date3")]
    [Editor(EditorType.Date)]
    [VisibilityBinding(Path = "IsSold3", SourceType = BindingSourceType.ViewModel)]
    [Binding(StringFormat = "{0:d}")]
    public static DateTime SoldDate3;

    // End of VisibilityBinding with SourceType is set to ViewModel


    // VisibilityBinding with SourceType is set to Model

    [Editor(EditorType.Switch)]
    [Display(Caption = "VisibilityBinding to M")]
    [Binding(Path="IsSold4", SourceType=BindingSourceType.Model)]
    public static bool IsSold4;

    [Display(Caption = "Sold Date4")]
    [Editor(EditorType.Date)]
    [VisibilityBinding(Path = "IsSold4", SourceType=BindingSourceType.Model)]
    [Binding(StringFormat = "{0:d}")]
    public static DateTime SoldDate4;

    // End of VisibilityBinding with SourceType is set to Model
}&lt;/pre&gt;
&lt;p&gt;&lt;span style="color: #1f497d;"&gt;Hope this helps.&lt;/span&gt;&lt;/p&gt;</description></item><item><title>How to Use Crosslight v2 to Show/Hide Form Sections</title><link>http://www.intersoftsolutions.com/Community/Crosslight/How-to-Use-Crosslight-v2-to-ShowHide-Form-Sections/</link><pubDate>Wed, 17 Sep 2014 03:52:44 GMT</pubDate><dc:creator>dfugaban@silentpartnersoft.com</dc:creator><description>&lt;p&gt;Hi,&lt;br&gt;&lt;br&gt;I believe the question we're supposed to be asking is... what happened to the VisibilityBinding on build 2.0.5000.78? We just closed related thread entitled&amp;nbsp;&lt;a href="https://www.intersoftpt.com/Community/Crosslight/How-to-Use-Crosslight-v2-FormMetaData-with-EnabledBinding-and-VisibilityBinding-Attributes/" target="_blank"&gt;How to Use Crosslight v2 FormMetaData with EnabledBinding and VisibilityBinding Attributes&lt;/a&gt;, within this thread we asked how to use these features. And during that time the code snippet below was working, until the latest update (Update 4 to be specific). Lots of fixes are needed on this update, but also did some damage.&lt;br&gt;&lt;br&gt;&lt;/p&gt;&lt;pre&gt;[Section("Commissions", Style = SectionLayoutStyle.RightDetail)]        [VisibilityBinding(Path = "DisplayCommissions", SourceType = BindingSourceType.ViewModel, ConverterType = typeof(BooleanConverter))]
        public static CommissionSection Commissions;&lt;/pre&gt;&lt;p&gt;Please try to replicate the issue. Here's the code at Navigated event of the viewmodel. Thanks!&lt;/p&gt;&lt;pre&gt;    try
    {
        // Display an activity indicator.
        this.ActivityPresenter.Show("Loading...", ActivityStyle.SmallIndicatorWithText, true);

        // Always check for reachbility before anything else;
        var p_Result = await this.m_MercuryAdapter.CheckReachabilityAsync();

        // Throw a communication exception and handle the exception.
        if (!p_Result.IsReachable) throw new ReachabilityException();

        // Get the setting whether to display commissions on mobile or not.
        var p_Parameter = await this.m_MercuryAdapter.GetParameterAsync("CommissionsOnMobile");

        // Parse and convert the string into a boolean data type.
        this.DisplayCommissions = Convert.ToBoolean(p_Parameter);
    }
    catch
    {
        // In case of errors, set a default value.
        this.DisplayCommissions = false;
    }
    finally
    {
        // Hide indicator and reset busy state.
        this.ActivityPresenter.Hide();
        this.IsBusy = false;
    }&lt;/pre&gt;&lt;p&gt;The DisplayCommissions property is of boolean type.&lt;/p&gt;&lt;p&gt;&lt;br&gt;&lt;/p&gt;</description></item></channel></rss>