﻿<?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 to Implement Platform-Specific Binding Library SDKs?</title><link>http://www.intersoftsolutions.com/Community/Crosslight/How-to-Use-Crosslight-to-Implement-Platform-Specific-Binding-Library-SDKs/</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 to Implement Platform-Specific Binding Library SDKs?</title><link>http://www.intersoftsolutions.com/Community/Crosslight/How-to-Use-Crosslight-to-Implement-Platform-Specific-Binding-Library-SDKs/</link><pubDate>Wed, 23 Sep 2015 03:27:09 GMT</pubDate><dc:creator>leo.c</dc:creator><description>&lt;p&gt;Hi Jimmy,&lt;/p&gt;&lt;p&gt;For your information, Custom Bindable Properties and Binding Adapters only work for binding from ViewModel to view item (ex: TextView), not for binding to view context (ex: Activity). Usually,&amp;nbsp;&lt;span style="font-size: 13.3333px;"&gt;Bindable Properties and Binding Adapters&lt;/span&gt;&amp;nbsp;was used to create a binding&amp;nbsp;for custom view or extending existing binding adapter of a view item (ex: TextView) to add a new property binding, like the one described in&amp;nbsp;&lt;a href="http://developer.intersoftsolutions.com/display/crosslight/Create+Custom+Bindable+Properties+and+Binding+Adapter" target="_blank"&gt;Create Custom Bindable Properties and Binding Adapter&lt;/a&gt;&lt;span style="font-size: 10pt;"&gt;. Hope this will help you.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;Best Regards,&lt;br&gt;Leo&lt;/p&gt;</description></item><item><title>How to Use Crosslight to Implement Platform-Specific Binding Library SDKs?</title><link>http://www.intersoftsolutions.com/Community/Crosslight/How-to-Use-Crosslight-to-Implement-Platform-Specific-Binding-Library-SDKs/</link><pubDate>Tue, 22 Sep 2015 00:44:10 GMT</pubDate><dc:creator>jtungol@silentpartnersoft.com</dc:creator><description>&lt;p&gt;Yes, I believe the second paragraph makes sense... and that is how it is currenlty implemented. However, the custom bindable properties and binding adapters are not.&lt;br&gt;&lt;/p&gt;</description></item><item><title>How to Use Crosslight to Implement Platform-Specific Binding Library SDKs?</title><link>http://www.intersoftsolutions.com/Community/Crosslight/How-to-Use-Crosslight-to-Implement-Platform-Specific-Binding-Library-SDKs/</link><pubDate>Mon, 21 Sep 2015 08:39:43 GMT</pubDate><dc:creator>leo.c</dc:creator><description>&lt;p&gt;Hi Jimmy,&lt;/p&gt;&lt;p&gt;From your descriptions, I will assumpt that you have knowledge about how to implement custom services in crosslight. In case that you have not, you could refer to&amp;nbsp;&lt;a href="http://developer.intersoftsolutions.com/display/crosslight/Extending+Crosslight+-+Creating+Custom+Presenters+in+Crosslight+Apps" target="_blank"&gt;Extending Crosslight Tutorial&lt;/a&gt;.&lt;/p&gt;&lt;p&gt;And assuming that you have able to bind those events from library SDK to your view (viewcontroller/activity), you could invoke viewModel method from the event handler (ex: this.ViewModel.OnPrintDone()) on your view (viewcontroller/activity). To make your code look more organized, you could create an Interface, ex: IImplementPrintServices, that will describe all method should be implemented by ViewModel that used that custom service.&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;div id="replyFrame0" style="box-sizing: content-box; margin: 0px; padding: 0px; font-family: myriad_set_protext, 'Lucida Grande', Helvetica, sans-serif; line-height: 20.8px; font-size: 16px; -webkit-font-smoothing: antialiased; border: 0px; outline-offset: 0px; text-rendering: optimizeLegibility !important; color: rgb(63, 63, 63); font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255);"&gt;&lt;/div&gt;&lt;p&gt;&lt;/p&gt;&lt;div id="ctl00_ctl00_ctl00_ctl00_a_b_c_e_content0" class="postcontent" style="box-sizing: content-box; margin: 0px 0px 10px; padding: 0px; font-family: myriad_set_protext, 'Lucida Grande', Helvetica, sans-serif; line-height: 18px; font-size: 16px; -webkit-font-smoothing: antialiased; border: 0px; outline-offset: 0px; color: rgb(63, 63, 63); font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-rendering: optimizeLegibility !important; background-color: rgb(255, 255, 255);"&gt;&lt;blockquote style="padding-left: 10px; margin: 0px 0px 0px 5px; border-left-color: rgb(204, 204, 204); border-left-width: 1px; border-left-style: solid;"&gt;&lt;i&gt;How can we implement these events or listeners wherein we can bind each to a viewmodel like a CommandProperty does?&lt;/i&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;p&gt;For your information, binding like that only work for binding from viewmodel to view item, so it will not work with service. In case you interested in creating a custom binding adapter, you could refer to&amp;nbsp;&lt;a href="http://developer.intersoftsolutions.com/display/crosslight/Create+Custom+Bindable+Properties+and+Binding+Adapter" target="_blank"&gt;Create Custom Bindable Properties and Binding Adapter&lt;/a&gt;. Hope this will help you.&lt;/p&gt;&lt;p&gt;Best Regards,&lt;br&gt;Leo&lt;/p&gt;</description></item><item><title>How to Use Crosslight to Implement Platform-Specific Binding Library SDKs?</title><link>http://www.intersoftsolutions.com/Community/Crosslight/How-to-Use-Crosslight-to-Implement-Platform-Specific-Binding-Library-SDKs/</link><pubDate>Thu, 17 Sep 2015 23:49:13 GMT</pubDate><dc:creator>jtungol@silentpartnersoft.com</dc:creator><description>&lt;p&gt;Hi Guys,&lt;/p&gt;&lt;p&gt;How do we implement binding between a platform-specific library without breaking the rules of the MVVM pattern using the Crosslight framework? First off, we could design an interface that will be implemented using an IService, which can be used by the viewmodel. But that's how we ended up so far. As a note, the reason why we need an interface is because the app will be using different mobile printers from different manufacturers (e.g. Bixolon, Zebra, etc.). There are events or listeners from each binding library SDK that need to be implented in a view (e.g. viewcontroller, activity, page, etc.). So, the question is how do we implement such scenarios with the help of the Crosslight framework? How can we implement these events or listeners wherein we can bind each to a viewmodel like a CommandProperty does?&lt;/p&gt;</description></item></channel></rss>