﻿<?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 - The views in the SectionHeader of UICollectionView cannot bind to any BindableProperties</title><link>http://www.intersoftsolutions.com/Community/Crosslight/The-views-in-the-SectionHeader-of-UICollectionView-cannot-bind-to-any-BindableProperties/</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>The views in the SectionHeader of UICollectionView cannot bind to any BindableProperties</title><link>http://www.intersoftsolutions.com/Community/Crosslight/The-views-in-the-SectionHeader-of-UICollectionView-cannot-bind-to-any-BindableProperties/</link><pubDate>Wed, 25 Mar 2015 02:55:11 GMT</pubDate><dc:creator>leo.c</dc:creator><category>uicollectionview</category><description>&lt;p&gt;Hi Leo Hong,&lt;/p&gt;&lt;p&gt;Your welcome.&lt;/p&gt;&lt;p&gt;Best Regards,&lt;br&gt;Leo Chandra&lt;/p&gt;</description></item><item><title>The views in the SectionHeader of UICollectionView cannot bind to any BindableProperties</title><link>http://www.intersoftsolutions.com/Community/Crosslight/The-views-in-the-SectionHeader-of-UICollectionView-cannot-bind-to-any-BindableProperties/</link><pubDate>Tue, 24 Mar 2015 09:54:51 GMT</pubDate><dc:creator>hongliyu2002</dc:creator><category>uicollectionview</category><description>&lt;p&gt;It works, thank you&lt;/p&gt;</description></item><item><title>The views in the SectionHeader of UICollectionView cannot bind to any BindableProperties</title><link>http://www.intersoftsolutions.com/Community/Crosslight/The-views-in-the-SectionHeader-of-UICollectionView-cannot-bind-to-any-BindableProperties/</link><pubDate>Tue, 24 Mar 2015 07:11:39 GMT</pubDate><dc:creator>leo.c</dc:creator><category>uicollectionview</category><description>&lt;p&gt;Hi Leo Hong,&lt;/p&gt;&lt;p&gt;We have update crosslight to support Command binding to UIButton on group header section. Please find the nightly build&amp;nbsp;&lt;a href="http://git.intersoftpt.com/projects/CROS/repos/updates/browse/Crosslight3_0_5000_217" target="_blank"&gt;here&lt;/a&gt;. Please note that you need to use Unified API for it to work.&lt;/p&gt;&lt;p&gt;Best Regards,&lt;br&gt;Leo&lt;/p&gt;</description></item><item><title>The views in the SectionHeader of UICollectionView cannot bind to any BindableProperties</title><link>http://www.intersoftsolutions.com/Community/Crosslight/The-views-in-the-SectionHeader-of-UICollectionView-cannot-bind-to-any-BindableProperties/</link><pubDate>Fri, 20 Mar 2015 09:21:19 GMT</pubDate><dc:creator>leo.c</dc:creator><category>uicollectionview</category><description>&lt;p&gt;Hi Leo Hong,&lt;/p&gt;&lt;p&gt;We will investigate about this. Will get back on you as soon as I found any update on this.&lt;/p&gt;&lt;p&gt;Best Regards,&lt;br&gt;Leo Chandra&lt;/p&gt;</description></item><item><title>The views in the SectionHeader of UICollectionView cannot bind to any BindableProperties</title><link>http://www.intersoftsolutions.com/Community/Crosslight/The-views-in-the-SectionHeader-of-UICollectionView-cannot-bind-to-any-BindableProperties/</link><pubDate>Thu, 19 Mar 2015 09:46:35 GMT</pubDate><dc:creator>hongliyu2002</dc:creator><category>uicollectionview</category><description>&lt;p&gt;I tried your sample code. It's ok for TextProperty or ImageSourceProperty, but CommandProperty of UIButton still does not work. No matter using AddBinding or AddViewModelBinding.&lt;/p&gt;&lt;pre&gt;itemBinding.AddBinding("OKLabel", BindableProperties.TextProperty, "Title", TargetBindingType.Group);&lt;/pre&gt;&lt;pre&gt;itemBinding.AddBinding("OKButton", BindableProperties.TextProperty, "Title", TargetBindingType.Group);&lt;/pre&gt;&lt;pre&gt;itemBinding.AddViewModelBinding("OKButton", BindableProperties.CommandProperty, "OKCommand", TargetBindingType.Group);&lt;/pre&gt;&lt;pre&gt;itemBinding.AddBinding("OKButton", BindableProperties.CommandParameterProperty, ".", TargetBindingType.Group);&lt;/pre&gt;</description></item><item><title>The views in the SectionHeader of UICollectionView cannot bind to any BindableProperties</title><link>http://www.intersoftsolutions.com/Community/Crosslight/The-views-in-the-SectionHeader-of-UICollectionView-cannot-bind-to-any-BindableProperties/</link><pubDate>Thu, 19 Mar 2015 06:12:08 GMT</pubDate><dc:creator>leo.c</dc:creator><category>uicollectionview</category><description>&lt;p&gt;Hi Leo Hong,&lt;/p&gt;&lt;p&gt;Please make sure that the View (ex:UILabel) have a valid referencing outlet with the same name as the one you have used in binding provider. If the xib have been configured correctly, the following code should be able to help you binding SectionHeader of UICollectionView:&lt;/p&gt;&lt;ol&gt;&lt;li&gt;On binding provider, bind the label on header section using ItemBindingDescription with "Group" TargetBindingType. Example:&lt;/li&gt;&lt;pre&gt;itemBinding.AddBinding("TextLabel", BindableProperties.TextProperty, new BindingDescription("Title"), TargetBindingType.Group);&lt;/pre&gt;&lt;li&gt;On ViewModel, please make sure that GroupItems never return null but empty List instead. This is useful so BindingProvider could recognize your GroupItems.&amp;nbsp;Example:&lt;/li&gt;&lt;pre&gt;public override System.Collections.IEnumerable GroupItems {	get {
		return (base.GroupItems != null) ? base.GroupItems : new List&lt;categorygroup&gt; ();
	}
	set {
		base.GroupItems = value;
	}
}&lt;/categorygroup&gt;&lt;/pre&gt;&lt;li&gt;Please set your ViewController to used the defined View and to show Section Header. Example:&lt;/li&gt;&lt;pre&gt;public override bool ShowSectionHeader
{
	get
	{
		return true;
	}
}
public override UIViewTemplate SectionHeaderTemplate
{
	get
	{
		return new UIViewTemplate(ItemCollectionViewHeader.Nib);
	}
}&lt;/pre&gt;&lt;p&gt;note: ItemCollectionViewHeader should inherited from UICollectionReusableView.&lt;/p&gt;&lt;/ol&gt;&lt;p&gt;That should allow you to bind the views in SectionHeader.&lt;/p&gt;&lt;p&gt;Best Regards,&lt;br&gt;Leo Chandra&lt;/p&gt;</description></item><item><title>The views in the SectionHeader of UICollectionView cannot bind to any BindableProperties</title><link>http://www.intersoftsolutions.com/Community/Crosslight/The-views-in-the-SectionHeader-of-UICollectionView-cannot-bind-to-any-BindableProperties/</link><pubDate>Wed, 18 Mar 2015 09:32:12 GMT</pubDate><dc:creator>hongliyu2002</dc:creator><category>uicollectionview</category><description>&lt;p&gt;When I enabled ShowSectionHeader and specified SectionHeaderTemplate in the UICollectionView, I found the views in the SectionHeaderTemple (it should be inherited from UICollectionReusableView) cannot perform data binding. Such as UIButton or UILabel, they cannot bind to CommandProperty nor TextProperty.&amp;nbsp;&lt;/p&gt;&lt;p&gt;The views in the TableView header has no problem.&amp;nbsp;&lt;span style="font-size: 10pt;"&gt;Please take a look.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;It can be easily reproduce. The ItemCollectionViewHeader is already in the MyInventory WebAPI sample. Add some view to this header and write some binding logic to the&amp;nbsp;ItemListBindingProvider&lt;/p&gt;</description></item></channel></rss>