I have been familiar with data binding for ASP. NET or Silverlight, WP7 is based on Silverlight, And the Silverlight for Windows Phone page also uses XAML, so the page rendering principle is the same.
Data Binding is divided into source and target. Source is generally divided into two types: data sources of other controls or data objects.
Let's talk about using controls as the data source. The simplest form
Introduced
Unique local database for Windows Phone 7.5 (SDK 7.1)
Overview
Demonstrates how to use the local database
Example
1. Overview
Summary.xaml
2, the use of "local database" Demo
Model Layer-ModelBase.cs
Using System;
Using System.Net;
Using System.Windows;
Using System.Windows.Controls;
Using System.Windows.Documents;
Using System.Windows.Ink;
Using System.Windows.Input;
Using Sy
Create a custom control:The control class must be derived from the control (or contentcontrol). At least, to inherit basic control functions, the control class should be derived from the Silverlight system. Windows. Controls. control class. However, it can also
Contentcontrol, itemscontrol, and other control derived classes. Many built-in controls can be derived directly or indirectly from the contentcontrol with the content attribute added, and thi
ratioFloat aspectratio = (float) graphicsdevice. viewport. width/graphicsdevice. viewport. height;// Create a projection matrixMatrix projection = matrix. createperspectivefieldofview (mathhelper. toradians (45), aspectratio, 0.1f, 1000.0f );}
Note that the matrix is initialized by calling the static method of the matrix structure. As we will see later, we have multiple methods to create all types of matrices.
Next, create a view matrix. It can be compared to a scene camera, used to control
We found from the Internet that the current Windows Phone 7 system provides 10 color themes by default, which is the default topic color RGB, hexadecimal color value query.
Accent color
RGB
HEX
Example
Blue
27,161,226
# Ff1ba1e2
Brown
160,80, 0
# Ffa05000
Green
51,153, 51
Recently, I was working on an azure project where server-side data is stored on Microsoft's cloud. Clients include PCs and smartphones, some of which are Windows Phone 7 clients.
Most applications in the project use the Panorama and ghost controls. The following are their main features:
◆ Simple XAML and programming interfaces◆ Fully supports data binding, conten
Windows Phone 7 is currently booming, but a large number of applications are in English, which is a pity for Chinese people.
It's awkward to look at the chicken sausage text. At present, the development prospects in China are still unclear, and there are not many Chinese applications, and many foreign applications are classic,
Therefore, many people began to use
In Windows Phone application development, events can be seen everywhere. The system has encapsulated various event mechanisms, such as button-clicking events. In actual development, we need to customize some events for the relevant classes to meet the business requirements, especially when using the observation mode, using events in WP7 is a matter of course.
The steps for custom events are as follows:
Recently, I launched an application Major League of advertising, specifically testing the existing Windows Phone advertising platform, which has been put on shelves in the store.
Currently, I know six platforms.
Microsoft advertising
Smartmad)
AdMob
Millenrix Media
Adduplex
Smaato
1. Microsoft's ads currently only support the United States. It is being studied based on the specific judgment on how to
The simulator we downloaded from the official website of Microsoft is only Internet Explorer. Is it true? I recently saw a foreign hacker on the Internet and unlocked the simulator, in this way, all functions in the simulator are displayed. I also tried it. It is very helpful! But it seems a little slow. Maybe it's my computer, right ?! The following is the unlock method, which is very simple:
1. download and install the simulator from the official website.
2. Find the binfile of the unlock ro
I originally wanted to update an article at noon. As a result, it was more than half past three P.M.. I had been plagued by a small problem for a long time. I finally solved it through hard work (well, it should be solved, and it will take more time to test ).
For specific problems, I need to obtain the GPS location information of the mobile phone on the homepage of my application, convert it to a geographical location through the Network API, and the
When using bingmap, You need to verify the accesskey. Therefore, we should first register on the bingmap official website. Registration is free of charge. Without a verification key, you cannot obtain the bingmap service from the web.
Register the bingmap website for the key:
Https://www.bingmapsportal.com
If you do not have a Windows Live ID, you must first register a live ID account (Click Create). If you already have a live ID account, log on dire
A similar control is required for the project, so a simple one is written and shared. The effect is as follows:
Both the upper and lower controls are the control. After you touch the control left or right, the current control will flip and jump to the next control.
The control source set is set through the childcontrols attribute, and the type is the uielement array. After childcontrols is set, the first control is displayed. At the same time, you can set the index value of the currently d
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.