[Silverlight] FAQs

Source: Internet
Author: User

[Silverlight] FAQ 1. Does the Silverlight project support the ADO object? Not supported, Silverlight does not support common ADO objects, such as Datatable,dataset,database connection. You can use the System.Data namespace, but it only contains all the related services, not the ADO objects. Can a 2.Silverlight project reference a regular class library? No, you can only reference a class library of Silverlight types. Available in 3.Silverlight

1. Does the Silverlight project support the ADO object?

Not supported, Silverlight does not support common ADO objects, such as Datatable,dataset,database connection. You can use the System.Data namespace, but it only contains all the related services, not the ADO objects.

Can a 2.Silverlight project reference a regular class library?

No, you can only reference a class library of Silverlight types.

What layout controls are in 3.Silverlight and when should they be used?

Cavas:

Supports simple layouts that do not have to be resized, and controls can overlap each other when the Cavas size changes.

StackPanel:

Arranges a set of controls horizontally or vertically, and the controls do not overlap each other.

Grid:

The most flexible, similar to the way table.

4. When a new Silverlight project is added, those XAML files are automatically created, saying what they are used for?

App.xaml:

Used to declare a project's shared resources, such as Brush,style, and to handle the application's basic events, similar to the Golabal.asax in ASP. By default it contains the following events:

Application_Startup

Application_exit

Application_unhandledexception

Reporterrortodom

MainPage.xaml or Page.xaml:

The start page of the Silverlight project, similar to the Default.aspx page in ASP.

What is the parent type of a 5.Silverlight page?

UserControl is the base type for all Silverlight projects.

What is the difference between 6.WPF and Silverlight?

Both WPF and Silverlight are tools for building rich user interfaces (animation, drawing, layout). They all use XAML to lay out, and since Silverlight2, they have supported oops. The main difference is:

Wpf:

1. Mainly used in desktop systems, but its components can be used by the ASP.

2. Can run directly (EXE) separately;

3. dependent on Windows;

4. Can be used by desktop and browser;

5. Can interact directly with the database (non-WPF browser application);

6. No browser plugin required;

7. Use root tags, such as Window,page,usercontrol.

Silverlight:

for website development;

Integrate its output into the webpage by using a component;

You can start from the desktop by enabling the Out of browser feature (starting from SILVERLIGHT3);

Do not rely on windows, there is a Linux implementation (moonlight);

Cannot access database directly, need to use WCF or webservice;

Need to install browser plugin;

The root is marked as usercontrol,page.

7. Talk about the Silverlight runtime?

The Silverlight runtime is used to download the. xap file from the server side and to display the removal of the Silverlight content to the Web page. It is a browser plugin that only installs the plugin to allow the browser to display Silverlight content properly.

8. What is isolated storage (Isolated Storage)?

Silverlight uses isolated storage to store data in a virtual file system in a hidden folder on the machine, and to divide the data into two parts:

The first part: Contains management information, such as disk quotas;

Part II: Contains the actual data.

Each Silverlight application is assigned a separate partition with a default limit of 1MB.

9. Can I create a Silverlight app from the. NET Framework?

The SILVERLIGHT4 contains a streamlined. NET Framework, so it can run on its own.

[Silverlight] FAQs

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.