Silverlight for Windows Mobile unofficial Preview

Source: Internet
Author: User
Background

Windows Embedded ce 6.0 R3 already includes the Silverlight for Embedded function. developers can use WPF to develop wince applications.Program. For Silverlight for embedded, I wrote an introductory articleArticleFor more information, see user interface technologies for Windows Embedded ce.

 

What is Silverlight for Windows Mobile?

Specifically, Silverlight is the plug-in Technology of the browser, not the application development technology. Desktop technology is called WPF, but Microsoft calls the development technology for Windows Embedded CE applications Silverlight for embedded. I do not know what the Windows Mobile platform is, or even when it is released. I call it Silverlight for Windows Mobile. It is an unofficial name and only used for learning and communication. In fact, this name may be inappropriate, because IE for mobile will be added to the support for Silverlight in the near future, so Silverlight for Windows Mobile may be specially developed for Windows Mobile browser rich applications, but anyway, the name is just that. I am the master of my blog. Because Windows Embedded ce 6.0 R3's Silverlight for Embedded only supports native C ++ development, many people speculate that even if Windows Mobile 7 comes out, (note: windows Mobile 7 is based on Windows Embedded ce 6 ),. NET Compact framework development still cannot use Silverlight. In fact, this is not the case. According to introduction to zookeeper Tx, the Bing for Windows Phone recently released by Microsoft is based on the. NET Compact framework and uses the XAML technology to express the interface program.

 

Implement Preview

The following is an unofficial preview of Bing for Windows Phone. Bing for Windows Phone binds the analysis and presentation of xamlto bingclient.exe. I think the future. NET Compact framework will include these features. Now Microsoft is only trying to use them. Check the installation directory first.

The installation directory contains the XAML folder, including all interface layout and event processing definitions.

Realhome. XAML is used to express the Home Page. The home page is as follows:

The corresponding XAML file realhome. XAML is as follows:

The following uses a menu as an example to describe its implementation. below is the definition of the menu section XAML.

 <  Menuitem  ID  = "9800100"  Name  = "Menuitemspeak"  Header  = "Speak"  Click  = "Speech (searchtabcontrol. XAML, Home)"/>
< Menuitem ID = "9800200" Name = "Menuitemmain" Header = "Menu">
< Menuitem ID = "9800201" Name = "Menuitemmaps" Header = "Maps and traffic" Click = "Hideautosuggest (autosuggesttextbox); launchmap (maphomeppc. XAML, maphomesp. XAML, themap, nopoi)"/>
< Menuitem ID = "9800202" Name = "Menuitembusinessdirectory" Header = "Business directory" Click = "Setpropertystate (currentdomain, local); switchpage (domainlanding. XAML)"/>
< Menuitem ID = "9800203" Name = "Menuitemtopnews" Header = "Top news" Click = "Setpropertystate (currentdomain, News); switchpage (domainlanding. XAML)"/>
< Menuitem ID = "9800204" Name = "Menuitemdirections ctions" Header = "Get directions ctions" Click = "Switchpage (maplocationentry. XAML)"/>
< Menuitem ID = "9800205" Name = "Menuitemfavorites" Header = "Recent and favorites" Click = "Switchpage (recentsfavorites. XAML); switchlisttab (response, favoritestabheader, background, # a7b4bd, white, foreground, white, # a7b4bd); setfocus (favoritestabheader)
< Menuitem ID = "9800206" Name = "Menuitemseparator1" Header = "-"/>
< Menuitem ID = "9800207" Name = "Menuitemclientupdate" Header = "Update available" Click = "Updateclient" Enabled = "{ Binding Propertystate . Allowclientupdate } "/>
< Menuitem ID = "9800208" Name = "Menuitemsettings" Header = "Settings" Click = "Switchpage (settings. XAML)"/>
< Menuitem ID = "9800209" Name = "Menuitemhelp" Header = "Help">
< Menuitem ID = "9800219" Name = "Menuitemhints" Header = "Tips and tricks" Click = "Switchpage (hintstips. XAML)"/>
< Menuitem ID = "9800229" Name = "Menuitemfaq" Header = "FAQ" Click = "Gotourl (http://appserver.m.bing.net/webdocs/en-us/brew/help.htm)"/>
< Menuitem ID = "9800239" Name = "Menuitemabout" Header = "About" Click = "Switchpage (about. XAML)"/>
< Menuitem ID = "9800249" Name = "Menuitemfeedback" Header = "Feedback" Click = "Gotourl (https://feedback.discoverbing.com/default.aspx? Productkey = bingmobile | p1 = winmo, mkt, market, P2, modelnumber, P3, binaryversion, P4, osversion, P5, partner) "/>
</ Menuitem >
< Menuitem Name = "Menuitemclose" ID = "2613" Header = "Exit" Click = "Close"/>
</ Menuitem >

The corresponding menu is displayed as follows:

Menuitemex inherits system. Windows. Forms. menuitem of winform. Located in Microsoft. Search. Mobile. UI. Controls, Microsoft. Search. Mobile. UI. Controls encapsulates all controls for parsing and rendering XAML.

The various controls are presented to winform through a form Class View. In this way, the XAML can be presented through the traditional winform.

 
Public classView:Form

The ViewManager class controls how to present, present, and convert the presented content.

 
Public sealed classViewManager:Iviewmanager

Public interfaceIviewmanager
{
VoidDispose ();
BoolGoback ();
BoolGoforward ();
BoolLoadview (StringViewname,BoolJustparsexaml );
}

If you are interested in downloading a bing for Windows Phone, take a look. In any case, I am glad to know that Microsoft is developing Silverlight for Windows Mobile. In the near future, we will be able to develop Windows Mobile applications in the XAML mode. This article is only used for study and cannot be used for any other purposes.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.