﻿<?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 do this</title><link>http://www.intersoftsolutions.com/Community/Crosslight/How-to-do-this/</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 do this</title><link>http://www.intersoftsolutions.com/Community/Crosslight/How-to-do-this/</link><pubDate>Tue, 09 Dec 2014 03:03:04 GMT</pubDate><dc:creator>technical@intersoftpt.com</dc:creator><description>&lt;p&gt;Hello Ryan,&lt;/p&gt;&lt;p&gt;The view-specific properties such as appearance aren't common to be implemented as bindable properties. That's because each platform has their own type and API which differ with other platforms. In Crosslight, we designed the bindable properties to cover most user interaction logic that can be well separated from the view.&lt;/p&gt;&lt;p&gt;The good news is that Crosslight also allows you to create your own bindable properties, so you can create binding for certain properties not supported in Crosslight. This can be easily done through binding adapter, a mechanism that Crosslight itself uses internally for the built-in MVVM-aware components.&lt;/p&gt;&lt;p&gt;You can see an example of binding adapter in our&amp;nbsp;&lt;a href="http://git.intersoftpt.com/projects/CROS-SUPP/repos/crosslight-syncfusion-sample/browse/CrosslightSyncFusionSample" target="_blank"&gt;Crosslight - Syncfusion chart binding sample&lt;/a&gt;&amp;nbsp;which is a bit quite advanced. We are planning to publish a simpler sample with walkthrough later this week. At the meantime, you can try to learn from the chart binding sample to grasp the concept.&lt;/p&gt;&lt;p&gt;Hope this helps.&lt;/p&gt;</description></item><item><title>How to do this</title><link>http://www.intersoftsolutions.com/Community/Crosslight/How-to-do-this/</link><pubDate>Mon, 08 Dec 2014 19:45:59 GMT</pubDate><dc:creator>devincroud</dc:creator><description>&lt;p&gt;This only helps one case, but what if I need to modify the image nativaley after it is set?&lt;/p&gt;&lt;p&gt;Like do the following:&lt;/p&gt;&lt;pre&gt;                  UserImage.Layer.MasksToBounds = true;                    UserImage.Layer.CornerRadius = UserImage.Frame.Height/2;&lt;/pre&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;br&gt;&lt;/p&gt;</description></item><item><title>How to do this</title><link>http://www.intersoftsolutions.com/Community/Crosslight/How-to-do-this/</link><pubDate>Sun, 07 Dec 2014 15:36:12 GMT</pubDate><dc:creator>technical@intersoftpt.com</dc:creator><description>&lt;p&gt;Dear Ryan,&lt;/p&gt;&lt;p&gt;Hiding a button can be easily done in ViewModel through data binding. You don't need a service to do that. Since service is singleton, the best practice for service is typically used for non UI related tasks. To learn more about MVVM and data binding in Crosslight, please refer to the article&amp;nbsp;&lt;a href="http://developer.intersoftpt.com/display/crosslight/Understanding+Data+Binding+and+MVVM+Design+Pattern" target="_blank"&gt;here&lt;/a&gt;.&lt;/p&gt;&lt;p&gt;Crosslight comes with several pre-built bindable properties to help developers accomplish common tasks easily. Specifically for your case, you can bind the &lt;i&gt;IsVisible&lt;/i&gt; property against the property in your ViewModel and the button. This allows you to set the property to true/false in ViewModel, which consequently reflects the visibilityof the bound view. You can find out the complete bindable properties in our class API reference&amp;nbsp;&lt;a href="http://developer.intersoftpt.com/display/crosslightapi/BindableProperties+Class" target="_blank"&gt;here&lt;/a&gt;.&lt;/p&gt;&lt;p&gt;To learn more how MVVM and data binding works, I highly suggest you to check our comprehensive MVVM samples from our Git server&amp;nbsp;&lt;a href="http://git.intersoftpt.com/projects/CROS/repos/samples/browse/MvvmSamples" target="_blank"&gt;here&lt;/a&gt;&amp;nbsp; There are some examples showing IsVisible property, as well as many others such as opacity, text,value, and more.&lt;/p&gt;&lt;p&gt;Hope this helps.&lt;/p&gt;</description></item><item><title>How to do this</title><link>http://www.intersoftsolutions.com/Community/Crosslight/How-to-do-this/</link><pubDate>Fri, 05 Dec 2014 22:17:22 GMT</pubDate><dc:creator>devincroud</dc:creator><description>&lt;p&gt;I have a simple Button on a View, and in the core have it bound to a ActionPresenter that shows up asking what you want to do with that button. &amp;nbsp;Once the user makes a selection, how in the world can I hide the button?&lt;/p&gt;&lt;p&gt;I have tried to setup a service using&amp;nbsp;IMobileComponentService to access the native but the issue is the button is not static, so I'm unable to set Button.hide = true;. &amp;nbsp;This is something I will need to access and can't figure out how to do this.&lt;/p&gt;&lt;p&gt;If I do something like&amp;nbsp;&lt;/p&gt;&lt;p&gt;var test = new ViewController;&lt;/p&gt;&lt;p&gt;test.hideButton();&amp;nbsp;&lt;/p&gt;&lt;p&gt;it won't work because the view is already established so I do't need a new ViewController within the service. &amp;nbsp;I have tried to setup EventHandler and binded it to the native delegate.&lt;/p&gt;&lt;p&gt;&lt;br&gt;&lt;/p&gt;&lt;p&gt;The other option I thought would help if the Core got executed before the native or if I could figure out how to wait for the core to finish its command in the native, then continue on with the native delegate...&lt;/p&gt;&lt;p&gt;Please help!&lt;/p&gt;</description></item></channel></rss>