Late last year, we released the SDK Mobile Application. Since that first version that provided C and COM bindings, we also published a .NET SDK called CMP.NET which is available for download here, and the documentation is online here. CMP.NET makes using the Mobile Application SDK much easier in your WPF and WinForms .NET applications. If you are interested in using CMP.NET to create new applications or mobilize your existing .NET applications, you may find our new series of videos of interest. This series covers a range of topics on how to build applications using WPF mobilized CMP.NET SDK. So far, we have released three videos in this series:
- Introduction to write WPF applications. Before cutting a line of code that you need to think about what your application will do. This is especially important if you want to create a new application by creating applications for mobile form factors introduce a new set of constraints that conventional Windows applications should not worry. Learn more about some of the issues you should think about this video.
- WPF style presentation. Since we started showing our mail client GoldenGate, we were asked how we did a look of Windows application as a native mobile application. An important feature of WPF that allowed us to create a mobile look and feel is its ability to restyle controls. This video will restyling in detail in a single order to show you how you can replace a Windows-style control with one that looks like a native mobile control.
- Styling other commonly used controls. In continuation of the previous video, I show you how to restyle several other controls. I use a recurring example of a XenApp administration console mobilized to show you how I built various elements of this application.
Although the WPF styling features are great when you want perfect looking mobile UI, you can get ahead of the game by copying some styles we have created. The SDK comes with CMP.NET applications of two samples that contain a range of styles that you can copy and reuse in your own applications. The two examples of projects you will find are:
- Demo.WPF : This is a demo application that shows a range of features of the SDK Mobility in action. Use the first screen to select a demo option, as contextual auto-keyboard, sending notifications and display the local client selector control
- XaAdminMobile :. This is the XenApp administration console mobilized as I show in my videos. This console displays all sessions in a XenApp farm and you can select the sessions, then reset. Tap the search field to quickly find the sessions that you are after large farms (Note: The current version crashes if you use session sharing - the next version will fix this).
Just a note that if you want to use one of the styles of these applications - they were originally designed for the iPhone so that they assume a DPI of 163. default this means you must initialize the API with this default DPI, namely
private cmpApi cmpApi; private CmpWpfApi cmpWpfApi; public App () {this.cmpApi CmpApi = new (); this.cmpWpfApi = new CmpWpfApi (this.cmpApi new ReferenceDpi (163, 163) ); }
If you do not explicitly supply a 163 DPI reference, the API assumes that you use the Windows DPI default of 96. So if you use the sample styles with value DPI default 96 setting the DPI scale will intensify the interface too and all the controls will look too big.
I hope you will find helpful videos, and if you have comments on the SDK we would like to hear. Our Mobility SDK Forums are a great place to post questions and you can find me on Twitter @Donovan_RH.
0 Komentar