Peoject Siena-Create a WIN8 application instance

Source: Internet
Author: User

Open the Project Siena program, create a new app app, name the main form (scene) Screenmain, save the project as myaddress.

Create Screenaddress, screenaddress, and screenreport three scenes for browsing RSS, adding new contacts and sorting stats for friends, and Screenmain is a scenario for viewing all your friends ' information.

Add 3 Shape Controls (Circle) to the Screenmain scene, configure the navigation navigation on the Onselect property, and jump to the other 3 scenes.

Navigate (Screenreport, screentransition!  Fade) Navigate (Screenrss, screentransition!) Fade) Navigate (screenaddress, screentransition!) Fade)

In the screenaddress, Screenreport, and screenrss scenes, the Add shape (back Arrow) is used to navigate the Onselect property (Navigation) to the home view Screenmain.

Navigate (Screenmain, screentransition! Fade)

For Screenrss, first, get the RSS address: Http://feed.cnblogs.com/blog/u/144942/rss

In the Siena project, use ALT+D to enter data management, add RSS data, import addresses to

In Screenrss, add the gallery (vertical text template), point the Control Items property to Rss_1, and then, in the Gallery template, customize the label label, binding title, and content properties.

Creating gallery controls and placing layouts

Configure the gallery data source Items property, and configure the binding properties of the controls in the template, notice that the body area display is changed to Htmllabel, and you can format the explicit article content.

Before creating screenaddress, create an Excel file to save the contact category:

Next, apply a table format to the selection using the menu format

Finally, the table is named AddressType

For a screenaddress scenario, add a new contact and add the scene layout as follows:

First, bind the data source for DropDownList (friend type), add Excel data, and point to the type of friend you just created.

Next, add hinttext to input box: Hint message

Binds the media property of Audio (preview) to the audio property of the microphone (microphoneitem! Audio)

Binds the contrast property of the camera (webcam) to the Value property of the slider (slider bar) (slidercontrast! Value)

Binds the Image property of image (picture preview) to the photo property of the camera (cameraitem! Photo)

The Add button is used to save the content to the collection, and the function is configured on the Disabled property (the user name and contact information must be filled in):

IsBlank (textname! Text) | | IsBlank (textphonenumber! Text)

On the button Onselect property, configure the function to add a contact to the collection:

If (CountIf (items,textname! Text in Name) =0,collect (items,{name:textname! text,phonenumber:textphonenumber! text,type:dropdownaddresstype! selected! Contact Human, audio:microphoneitem! audio,video:cameraitem! photo,pic:penitem! Image}))

In the lower-right corner of the pen (brush) control, add the button clear and configure the pen (brush's) clear property to clear the brush contents:

buttonclear! Pressed

The final page layout is as follows

About the Screenmain scenario, which is used primarily to query and display all contacts, and to implement the ability to delete contacts, the layout is as follows

Bind Gallery Controls Items property, filter by text box

inch Name)

To bind the selected item's Pic property on the image control:

galleryitem! selected! Pic

Then delete the Onselect property on the button to write the function, delete the current element

Remove (Items,thisitem)

Add import data and export data controls to the page

In the export control, configure the exported properties items,

In the import control, configure the Onselect property, and after the import succeeds, reset the Items collection

Clear (Items); Collect (items,importdata! Data)

In the report scenario, add the pie chart (pie chart), and bind the custom collection ReportItems:

Clear (ReportItems); Collect (reportitems,{x:"Family", Y:countif (Items,typeinch "Family")},{x:"Friends", Y:countif (Items,typeinch "Friends")},{x:"colleagues", Y:countif (Items,typeinch "colleagues")},{x:"other", Y:countif (Items,typeinch "other")})

Bind the Piechart data source to the ReportItems

Add a label label, the Text property is bound to the checked item x label, first check the category

piechartreport! selected! X

Adds a ListBox control that binds the data source to the

inch labeladdresstype! Text)

The effect is as follows

To add a label label, the Text property is bound to the PhoneNumber of the selected item in the listbox

listboxusers! selecteditems! PhoneNumber

The final effect is as follows

Peoject Siena-Create a WIN8 application instance

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.