﻿<?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 - Crosslight iOS TableView and Label</title><link>http://www.intersoftsolutions.com/Community/Crosslight/Crosslight-iOS-TableView-and-Label/</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>Crosslight iOS TableView and Label</title><link>http://www.intersoftsolutions.com/Community/Crosslight/Crosslight-iOS-TableView-and-Label/</link><pubDate>Wed, 16 Sep 2015 01:55:36 GMT</pubDate><dc:creator>leo.c</dc:creator><description>&lt;p&gt;Hi Thomas,&lt;/p&gt;&lt;p&gt;Sorry about the link, I have fixed that. Now the link should have pointed to Crosslight4_0_5000_303 hotfix that you have downloaded.&lt;/p&gt;&lt;p&gt;Best Regards,&lt;br&gt;Leo&lt;/p&gt;</description></item><item><title>Crosslight iOS TableView and Label</title><link>http://www.intersoftsolutions.com/Community/Crosslight/Crosslight-iOS-TableView-and-Label/</link><pubDate>Tue, 15 Sep 2015 18:11:25 GMT</pubDate><dc:creator>thomas.albert@tea-net.ch</dc:creator><description>&lt;p&gt;Hello Leo,&lt;/p&gt;&lt;p&gt;Thank you for the update. Unfortunately, I cannot access the hotfix link. Following "this link" mentoined above, I come to a login page. My regular Intersoft account&amp;nbsp;login does not work here. So, I cannot download the hotfix.&lt;/p&gt;&lt;p&gt;Do you mean "Crosslight4_0_5000_303.zip" with the hotfix? I just downloaded this version from the git repository.&lt;/p&gt;&lt;p&gt;Thanks for clarifying.&lt;/p&gt;&lt;p&gt;Thomas&lt;br&gt;&lt;/p&gt;</description></item><item><title>Crosslight iOS TableView and Label</title><link>http://www.intersoftsolutions.com/Community/Crosslight/Crosslight-iOS-TableView-and-Label/</link><pubDate>Tue, 15 Sep 2015 10:02:54 GMT</pubDate><dc:creator>leo.c</dc:creator><description>&lt;p&gt;Hi Thomas,&lt;/p&gt;&lt;p&gt;For your information, Programmatically change SelectedItem Property in Standard Interaction Mode issue has been fixed. You should be able to find the hotfix from this&amp;nbsp;&lt;a href="http://git.intersoftpt.com/projects/CROS/repos/updates/browse/Crosslight4_0_5000_303" target="_blank"&gt;link&lt;/a&gt;. This hotfix also include fix for SelectedItems issue on&amp;nbsp;&lt;a href="http://www.intersoftpt.com/Community/Crosslight/Crosslight-Editable-Table-View/" target="_blank"&gt;this thread&lt;/a&gt;.&lt;/p&gt;&lt;p&gt;note : It is recommended to removed the work around that have been suggested previously before you applied this hotfix.&lt;/p&gt;&lt;p&gt;Best Regards,&lt;br&gt;&lt;span style="font-size: 10pt;"&gt;Leo&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-size: 13.3333px;"&gt;&lt;i&gt;Edit : Hotfix Link has been fixed.&lt;/i&gt;&lt;/span&gt;&lt;/p&gt;</description></item><item><title>Crosslight iOS TableView and Label</title><link>http://www.intersoftsolutions.com/Community/Crosslight/Crosslight-iOS-TableView-and-Label/</link><pubDate>Mon, 16 Mar 2015 18:47:19 GMT</pubDate><dc:creator>thomas.albert@tea-net.ch</dc:creator><description>&lt;p&gt;Hello Leo,&lt;/p&gt;&lt;p&gt;Thanks for clarifying.&lt;br&gt;&lt;/p&gt;</description></item><item><title>Crosslight iOS TableView and Label</title><link>http://www.intersoftsolutions.com/Community/Crosslight/Crosslight-iOS-TableView-and-Label/</link><pubDate>Mon, 16 Mar 2015 01:41:46 GMT</pubDate><dc:creator>leo.c</dc:creator><description>&lt;p&gt;Hi Thomas,&lt;/p&gt;&lt;p&gt;Sorry for the delay. From the answer I got from our developer team, The event was suppressed by crosslight because all logic operation should be done in ViewModel.&lt;/p&gt;&lt;p&gt;Best Regards,&lt;br&gt;Leo&lt;/p&gt;</description></item><item><title>Crosslight iOS TableView and Label</title><link>http://www.intersoftsolutions.com/Community/Crosslight/Crosslight-iOS-TableView-and-Label/</link><pubDate>Thu, 12 Mar 2015 16:45:55 GMT</pubDate><dc:creator>thomas.albert@tea-net.ch</dc:creator><description>&lt;p&gt;Hello Leo,&lt;/p&gt;&lt;p&gt;any news about "RowSelected" or "RowHighlighted" from the developer team?&lt;/p&gt;&lt;p&gt;Thanks,&lt;/p&gt;&lt;p&gt;Thomas&lt;br&gt;&lt;/p&gt;</description></item><item><title>Crosslight iOS TableView and Label</title><link>http://www.intersoftsolutions.com/Community/Crosslight/Crosslight-iOS-TableView-and-Label/</link><pubDate>Thu, 05 Mar 2015 12:29:29 GMT</pubDate><dc:creator>thomas.albert@tea-net.ch</dc:creator><description>&lt;p&gt;Hello Leo,&lt;/p&gt;&lt;p&gt;your proposed solutions work great.&lt;/p&gt;&lt;p&gt;Thanks,&lt;br&gt;Thomas&lt;br&gt;&lt;/p&gt;</description></item><item><title>Crosslight iOS TableView and Label</title><link>http://www.intersoftsolutions.com/Community/Crosslight/Crosslight-iOS-TableView-and-Label/</link><pubDate>Thu, 05 Mar 2015 10:00:10 GMT</pubDate><dc:creator>leo.c</dc:creator><description>&lt;p&gt;Hi Thomas,&lt;/p&gt;&lt;p&gt;Thanks for your information.&lt;br&gt;I have look into the empty row behaviour that you have mentioned. It is the default behaviour on iOS. But you could change this behaviour by changing Appearance property that is already defined. Please add the following code to your view controller:&lt;/p&gt;&lt;pre&gt;public override TableViewAppearance Appearance {	get {
		var appearence = new TableViewAppearance ();
		appearence.HideSeparatorOnEmptyCell = true;
		return appearence;
	}
}&lt;/pre&gt;&lt;p&gt;As an alternative, you could simple change the appearance on InitializeView.&lt;/p&gt;&lt;p&gt;Regarding deselecting a selected row, it is a non-standard behaviour except for multiple selection. But still, you could easily implement this behaviour on view controller&amp;nbsp;&lt;span style="color: rgb(51, 51, 51); font-family: Menlo; font-size: 10pt;"&gt;OnViewModelPropertyChanged&lt;/span&gt;. That should give a control to what to do in view controller when there is a changes to it's viewmodel property. The following a snipet code about how you deselect a selected row after it is clicked:&lt;/p&gt;&lt;p&gt;&lt;span style="font-size: 10pt;"&gt;BindingProvider :&lt;/span&gt;&lt;/p&gt;&lt;pre&gt;this.AddBinding("TableView", BindableProperties.SelectedItemProperty, "SelectedItem", BindingMode.TwoWay);&lt;/pre&gt;&lt;p&gt;&lt;span style="font-size: 10pt;"&gt;ViewModel :&lt;/span&gt;&lt;/p&gt;&lt;pre&gt;public override Item SelectedItem {
	get {
		return base.SelectedItem;
	}
	set {
		if (base.SelectedItem == value)
			base.SelectedItem = null;
		else
			base.SelectedItem = value;
	}
}&lt;/pre&gt;&lt;p&gt;ViewController&lt;/p&gt;&lt;pre&gt;protected override void OnViewModelPropertyChanged(System.ComponentModel.PropertyChangedEventArgs e)
{
	if (e.PropertyName == "SelectedItem") {
		if (this.ViewModel.SelectedItem == null) {
			TableView.DeselectRow (TableView.IndexPathForSelectedRow, true);
		}
	}
}&lt;br&gt;&lt;br&gt;public override TableViewInteraction InteractionMode
{
	get
	{
		return TableViewInteraction.Standard;
	}
}&lt;/pre&gt;&lt;div&gt;&lt;span style="font-size: 10pt;"&gt;That should do the trick.&lt;br&gt;&lt;/span&gt;&lt;span style="font-size: 10pt;"&gt;note: InteractionMode need to be set to Standard to avoid checked icon on a selected row. Regarding "RowSelected", I will update you later after I discuss it will our developer team.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-size: 10pt;"&gt;&lt;br&gt;Best Regards,&lt;br&gt;Leo&lt;/span&gt;&lt;/div&gt;</description></item><item><title>Crosslight iOS TableView and Label</title><link>http://www.intersoftsolutions.com/Community/Crosslight/Crosslight-iOS-TableView-and-Label/</link><pubDate>Tue, 03 Mar 2015 19:31:41 GMT</pubDate><dc:creator>thomas.albert@tea-net.ch</dc:creator><description>&lt;p&gt;Hello Leo,&lt;/p&gt;&lt;p&gt;Thanks for your response.&lt;/p&gt;&lt;p&gt;Points 1 and 4 work like you described it. But regarding point 1 I wonder why "RowSelected" or "RowHighlighted" never get called within the ViewController. Are these "Events" suppressed by Crosslight? The same with "OnSelectedItemChanged within the ViewModel. It is not called when changing the selection of the TableView. This seems like a bug to me. By the way, I use the iOS unified assemblies.&lt;/p&gt;&lt;p&gt;Your proposed solution for 2 is not an option for me, because I don't want to have the "checked" icon when a row is selected. Is there another possibility to deselect a selected row? I tried "this.SelectedItem = null;" but it didn't work.&lt;/p&gt;&lt;p&gt;I have attached a screenshot to describe point 3 better. Here the tableview has 4 rows with content, but there are much more row separators shown.&lt;/p&gt;&lt;p&gt;Thanks,&lt;/p&gt;&lt;p&gt;Thomas&lt;br&gt;&lt;/p&gt;</description></item><item><title>Crosslight iOS TableView and Label</title><link>http://www.intersoftsolutions.com/Community/Crosslight/Crosslight-iOS-TableView-and-Label/</link><pubDate>Mon, 02 Mar 2015 10:12:21 GMT</pubDate><dc:creator>leo.c</dc:creator><description>&lt;p&gt;Hi Thomas,&lt;/p&gt;&lt;p&gt;1. You could make a DelegateCommand in ViewModel and bind it to "TableView" SelectedCommandProperty. ex: this.AddBinding("TableView", BindableProperties.SelectedCommandProperty, "SelectCommand");&lt;/p&gt;&lt;p&gt;2. You could try set InteractionMode to ChoiceInput and ChoiceInputMode to Multiple.&lt;/p&gt;&lt;p&gt;3. I have test MyInventory sample with Item data down to 5. The result show there is no empty rows. Please tell me the step-by-step used to produce the issue and provide me with a sample if possible.&lt;/p&gt;&lt;p&gt;4. It's possible to set a label with multiple lines text. After you set the multi line text, you need to specify the number of lines that will use to render the text. It will look like the following code:&lt;br&gt;&lt;span style="font-size: 10pt;"&gt;label.Text = "Line1\nLine2"&lt;br&gt;&lt;/span&gt;&lt;span style="font-size: 10pt;"&gt;label.Lines = 2;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;Hope this useful.&lt;/p&gt;&lt;p&gt;Best Regards,&lt;br&gt;&lt;span style="font-size: 10pt;"&gt;Leo&lt;/span&gt;&lt;/p&gt;</description></item><item><title>Crosslight iOS TableView and Label</title><link>http://www.intersoftsolutions.com/Community/Crosslight/Crosslight-iOS-TableView-and-Label/</link><pubDate>Fri, 27 Feb 2015 13:56:01 GMT</pubDate><dc:creator>thomas.albert@tea-net.ch</dc:creator><description>&lt;p&gt;Hello Crosslight Support,&lt;/p&gt;&lt;p&gt;I have some questions about the TableView on iOS.&lt;/p&gt;&lt;p&gt;1. I have the built-in TableView and in the ViewController I set InteractionMode the Standard. I want to capture a row click. I thought the override RowSelected would do the trick. But when clicking on a row my breakpoint is never hit. How can I capture a row click in the ViewController? Is there a better my, so I can capture the row click in the ViewModel?&lt;/p&gt;&lt;p&gt;2. This belongs to 1. After clicking on a row, this row is selected. How can I deselect a row after it is clicked?&lt;/p&gt;&lt;p&gt;3. The TableView fills by default the whole screen. If I have less rows with content then the height of the screen, there are empty rows with just a row separator. How can I only show rows with content?&lt;/p&gt;&lt;p&gt;4. I want to set the text of a label programmatically. How can I set the text of a label when the text contains multiple lines? I thought "label.Text = @"Line1\nLine2" would work, but it doesn't.&lt;/p&gt;&lt;p&gt;Thanks for your support.&lt;/p&gt;&lt;p&gt;Thomas&lt;br&gt;&lt;/p&gt;</description></item></channel></rss>