﻿<?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 FormMetaData with EnabledBinding and VisibilityBinding Attributes</title><link>http://www.intersoftsolutions.com/Community/Crosslight/How-to-Use-Crosslight-v2-FormMetaData-with-EnabledBinding-and-VisibilityBinding-Attributes/</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 FormMetaData with EnabledBinding and VisibilityBinding Attributes</title><link>http://www.intersoftsolutions.com/Community/Crosslight/How-to-Use-Crosslight-v2-FormMetaData-with-EnabledBinding-and-VisibilityBinding-Attributes/</link><pubDate>Fri, 19 Sep 2014 08:36:14 GMT</pubDate><dc:creator>yudi</dc:creator><description>&lt;p&gt;&lt;span style="color: #1f497d;"&gt;The VisibilityBinding for sections problem has been forwarded to Crosslight development team to be investigated further. I will update the result on the "&lt;a href="http://www.intersoftpt.com/Community/Crosslight/How-to-Use-Crosslight-v2-to-ShowHide-Form-Sections/" target="_blank"&gt;How to Use Crosslight v2 to Show/Hide Form Sections&lt;/a&gt;" thread.&lt;/span&gt;&lt;/p&gt;</description></item><item><title>How to Use Crosslight v2 FormMetaData with EnabledBinding and VisibilityBinding Attributes</title><link>http://www.intersoftsolutions.com/Community/Crosslight/How-to-Use-Crosslight-v2-FormMetaData-with-EnabledBinding-and-VisibilityBinding-Attributes/</link><pubDate>Thu, 18 Sep 2014 04:56:56 GMT</pubDate><dc:creator>dfugaban@silentpartnersoft.com</dc:creator><description>&lt;p&gt;Hi Yudi,&lt;/p&gt;&lt;p&gt;Thanks for your reply. However, this issue has already been resolved. We've opened a new thread regarding VisibilityBinding for sections, not the individual properties.&lt;/p&gt;&lt;p&gt;Thanks!&lt;/p&gt;</description></item><item><title>How to Use Crosslight v2 FormMetaData with EnabledBinding and VisibilityBinding Attributes</title><link>http://www.intersoftsolutions.com/Community/Crosslight/How-to-Use-Crosslight-v2-FormMetaData-with-EnabledBinding-and-VisibilityBinding-Attributes/</link><pubDate>Thu, 18 Sep 2014 02:01:48 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 FormMetaData with EnabledBinding and VisibilityBinding Attributes</title><link>http://www.intersoftsolutions.com/Community/Crosslight/How-to-Use-Crosslight-v2-FormMetaData-with-EnabledBinding-and-VisibilityBinding-Attributes/</link><pubDate>Wed, 23 Jul 2014 09:44:28 GMT</pubDate><dc:creator>dfugaban@silentpartnersoft.com</dc:creator><description>&lt;p&gt;Nevermind, we've managed to make it work using a property/field from the viewmodel. Using the same setup with "IsNewItem" from the ItemEditorViewModel. Here's the attribute setup.&lt;/p&gt;&lt;pre&gt;[EnabledBinding(Path = "EnableEntries", SourceType = BindingSourceType.ViewModel, ConverterType = typeof(BooleanConverter))]&lt;/pre&gt;&lt;p&gt;&lt;span style="font-size: 10pt;"&gt;Hope others will find it useful. Thanks!&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-size: 10pt;"&gt;P.S. Although this worked, the fact remains that using a property/field from the item model doesn't. Or we could be missing something, and this should still remain an open case.&lt;/span&gt;&lt;/p&gt;</description></item><item><title>How to Use Crosslight v2 FormMetaData with EnabledBinding and VisibilityBinding Attributes</title><link>http://www.intersoftsolutions.com/Community/Crosslight/How-to-Use-Crosslight-v2-FormMetaData-with-EnabledBinding-and-VisibilityBinding-Attributes/</link><pubDate>Wed, 23 Jul 2014 07:20:35 GMT</pubDate><dc:creator>dfugaban@silentpartnersoft.com</dc:creator><description>&lt;blockquote&gt;&lt;p&gt;Yes, we are using a boolean type. These bindings do work initially. But once the values are changed, the view is not being notified. Primarily, we are using &lt;b&gt;EnabledBinding&lt;/b&gt;, can you try that as well and confirm if its working on your end.&lt;/p&gt;&lt;/blockquote&gt;&lt;p&gt;In addition to this, we are setting the property value of this.Item.EnableEntries property from the ItemEditorViewModel, not from ItemListViewModel. Basically, setting the property value from ItemListViewModel does work before loading the ItemEditorViewModel because it has not been loaded yet.&lt;/p&gt;</description></item><item><title>How to Use Crosslight v2 FormMetaData with EnabledBinding and VisibilityBinding Attributes</title><link>http://www.intersoftsolutions.com/Community/Crosslight/How-to-Use-Crosslight-v2-FormMetaData-with-EnabledBinding-and-VisibilityBinding-Attributes/</link><pubDate>Wed, 23 Jul 2014 07:10:17 GMT</pubDate><dc:creator>dfugaban@silentpartnersoft.com</dc:creator><description>&lt;p&gt;Yes, we are using a boolean type. These bindings do work initially. But once the values are changed, the view is not being notified. Primarily, we are using &lt;b&gt;EnabledBinding&lt;/b&gt;, can you try that as well and confirm if its working on your end.&lt;/p&gt;</description></item><item><title>How to Use Crosslight v2 FormMetaData with EnabledBinding and VisibilityBinding Attributes</title><link>http://www.intersoftsolutions.com/Community/Crosslight/How-to-Use-Crosslight-v2-FormMetaData-with-EnabledBinding-and-VisibilityBinding-Attributes/</link><pubDate>Tue, 22 Jul 2014 22:40:47 GMT</pubDate><dc:creator>yudi</dc:creator><description>&lt;p&gt;&lt;span style="color: #1f497d;"&gt;I'm using MyInventory sample project as reference for your reported problem. First, please find &lt;strong&gt;Item.FormMetadata.cs&lt;/strong&gt; file in the &lt;em&gt;MyInventory.Core/Models&lt;/em&gt;.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="color: #1f497d;"&gt;The SoldDate property - marked with VisibilityBinding attribute -, is bound to a boolean property named IsSold. Could you please confirm whether you are binding the property to a boolean value?&lt;/span&gt;&lt;/p&gt;</description></item><item><title>How to Use Crosslight v2 FormMetaData with EnabledBinding and VisibilityBinding Attributes</title><link>http://www.intersoftsolutions.com/Community/Crosslight/How-to-Use-Crosslight-v2-FormMetaData-with-EnabledBinding-and-VisibilityBinding-Attributes/</link><pubDate>Tue, 22 Jul 2014 20:22:48 GMT</pubDate><dc:creator>dfugaban@silentpartnersoft.com</dc:creator><description>&lt;p&gt;Hi Guys,&lt;/p&gt;&lt;p&gt;We are currently experiencing issues with the attributes for Enabled and Visibility bindings. These attributes work on initial load of the View; however, when you change the value of the property/field that is bound to the Section or Element the bindings are NO longer working. How do you notify the attributes that the property/field bound to it has changed and that the view needs to be notified of the changes as well?&lt;/p&gt;</description></item></channel></rss>