Skip to content

Latest commit

 

History

History
109 lines (69 loc) · 11.5 KB

common-faq.md

File metadata and controls

109 lines (69 loc) · 11.5 KB
title page_title description slug tags published position
Getting Started
Getting Started
Getting Started
common-faq
general, common, faq, getting, started
true
3

Getting Started

Before proceed reading the Telerik UI for {% if site.site_name == 'WPF' %}WPF{% endif %}{% if site.site_name == 'Silverlight' %}Silverlight{% endif %} documentation we recommend that you check the fundamental concepts of {% if site.site_name == 'WPF' %}Windows Presentation Foundation (WPF){% endif %}{% if site.site_name == 'Silverlight' %}Silverlight{% endif %}. This article contains basic information about the {% if site.site_name == 'WPF' %}WPF{% endif %}{% if site.site_name == 'Silverlight' %}Silverlight{% endif %} framework and tells you where to find relevant information about its features.

Overview

{% if site.site_name == 'WPF' %} Windows Presentation Foundation provides a unified programming model for building Windows smart client user experiences that incorporate UI, media, and documents.

important For more information, see the WPF Overview MSDN article. {% endif %}

{% if site.site_name == 'Silverlight' %} Microsoft Silverlight is a cross-browser, cross-platform implementation of the .NET Framework for building and delivering rich interactive applications (RIA) for the Web. It also helps you create applications that run outside browser on your desktop.

important For more information, see the Silverlight Overview MSDN article. {% endif %}

The following sections describe the most basic features of the {% if site.site_name == 'WPF' %}WPF{% endif %}{% if site.site_name == 'Silverlight' %}Silverlight{% endif %} framework.

XAML (Extensible Application Markup Language)

Extensible Application Markup Language (XAML) is an XML-based markup language that is used to construct the visual appearance of an application. XAML to {% if site.site_name == 'WPF' %}WPF{% endif %}{% if site.site_name == 'Silverlight' %}Silverlight{% endif %} what HTML is to web. You can find details on XAML concepts and how to use the language in your applications in the {% if site.site_name == 'WPF' %}XAML Overview{% endif %}{% if site.site_name == 'Silverlight' %}XAML Overview{% endif %} MSDN article. {% if site.site_name == 'WPF' %}See also the WPF Architecture MSDN article.{% endif %}

Assemblies and Namespaces in .NET

  • Assemblies: An assembly is a collection of types and resources that are built to work together as a logical unit of functionality. All types in the .NET Framework must exist in assemblies; the common language runtime (CLR) does not support types outside assemblies. For more information, see the Assemblies in the Common Language Runtime MSDN article.

  • Namespaces: The namespace keyword is used to declare a scope. Namespaces are a second organizational method that complements assemblies. Namespaces are a way of grouping type names reducing the chance of name collisions. A namespace can contain other namespaces and types. The full name of a type includes the combination of namespaces that contain that type. For more information, see the Namespaces (C# Programming Guide) MSDN article.

Events

{% if site.site_name == 'WPF' %}WPF introduces routed events that can invoke handlers that exist on various listeners in the element tree of an application. For more information, see the Events MSDN article.{% endif %}

{% if site.site_name == 'Silverlight' %}The base class library in Silverlight is a subset of the larger .NET Framework class library. It includes the base data types, such as strings and integers. It also includes such diverse types as type conversion classes, exception classes, collection and container classes, events and event handlers, and threading and synchronization classes. For more information, see the Events Overview MSDN article.{% endif %}

Attached Properties

An attached property is used as a type of global property that can be set on any object. For more information, see the {% if site.site_name == 'WPF' %}Attached Properties Overview{% endif %}{% if site.site_name == 'Silverlight' %}Attached Properties Overview{% endif %} MSDN article.

Collections and Data Structures

Detailed information on this topic can be found in the {% if site.site_name == 'WPF' %}Collections and Data Structures{% endif %}{% if site.site_name == 'Silverlight' %}Collections and Data Structures{% endif %} MSDN article.

Data Binding

Data binding is the process that establishes a connection between the application UI and the business logic. It provides a simple and consistent way for applications to present and interact with data. Elements can be bound to data from a variety of data sources in the form of common language runtime objects and XML. For more information, see the {% if site.site_name == 'WPF' %}Data Binding{% endif %}{% if site.site_name == 'Silverlight' %}Data Binding{% endif %} MSDN article.

Binding Collections

A binding source object can be treated as a data collection of objects that are often grouped together (such as the result of a query to a database). You can enumerate over any collection that implements the IEnumerable interface. However, to set up dynamic bindings so that insertions or deletions in the collection update the UI automatically, the collection must implement the INotifyCollectionChanged interface. This interface exposes an event, that should be raised whenever the underlying collection changes. {% if site.site_name == 'WPF' %}WPF provides a built-in implementation of a data collection that implements the INotifyCollectionChanged interface — the ObservableCollection<T> class.{% endif %}{% if site.site_name == 'Silverlight' %}Silverlight provides a built-in implementation of a data collection that implements the INotifyCollectionChanged interface — the ObservableCollection<T>) class.{% endif %}

Data Conversion

With the help of IValueConverter, you can apply custom logic to a binding. The converter allows you to convert the value of the bound property to another value or to even another type. {% if site.site_name == 'WPF' %}For more information, see the IValueConverter Interface MSDN article.{% endif %}{% if site.site_name == 'Silverlight' %}For more information and an example, see the IValueConverter Interface MSDN article.{% endif %}

Commanding

The {% if site.site_name == 'WPF' %}WPF{% endif %}{% if site.site_name == 'Silverlight' %}Silverlight{% endif %} framework supports a commanding input mechanism whose purpose is to separate the logic that executes the command from the object that invokes the command. The most common use of commands is the avoid using events and code-behind. Instead, the command and its logic are defined in the view model and then bound to the visual element in the UI. For more information, see the {% if site.site_name == 'WPF' %}Commanding Overview{% endif %}{% if site.site_name == 'Silverlight' %}ICommandInterface{% endif %} MSDN article{% if site.site_name == 'Silverlight' %} and the [Command Support]({%slug common-command-support%}) article{% endif %}.

Styles and Templates

{% if site.site_name == 'WPF' %}WPF styling and templating refer to a suite of features that allows an application to create visually compelling applications in a standardized way. For more information, see the Styles and Templates MSDN article.{% endif %} {% if site.site_name == 'Silverlight' %} Silverlight styling and templating refer to a suite of features that allows an application to create visually compelling applications in a standardized way. With Silverlight you can use styles and templates in order to customize control behavior and appearance. For more information, see the Styles and Templates MSDN article.{% endif %}

Data Templates

{% if site.site_name == 'WPF' %}WPF has built-in support for customizing data presentation. Its data templating model provides great flexibility. For more information, see the Data Templating Overview MSDN article.{% endif %} {% if site.site_name == 'Silverlight' %}Silverlight has built-in support for customizing data presentation. Its data templating model provides great flexibility. For more information, see the Styles and Templates MSDN article.{% endif %}

Style Selectors

The style selector provides a way to apply different styles based on custom logic. For more information, see the StyleSelector Class MSDN article.

Data Template Selectors

The data template selector enables you to choose different DataTemplate based on the data object and the data-bound element. For more information, see the DataTemplateSelector Class MSDN article.

See Also

  • [Introduction]({%slug introduction%})
  • [Installing Telerik UI on your Computer]({%slug installation-installing-which-file-do-i-need%})
  • [Developer Focused Examples]({%slug common-sdk-examples%})