Browse by Tags

Tagged Content List
  • Wiki Page: Validating Data in WPF 4.5 Using the INotifyErrorDataError Interface

    Table of Contents Introduction Multiple errors per property Asynchronous validation Visual feedback Custom error objects Cross-property errors Introduction This post is about how you can validate data in a WPF application using the System.ComponentModel.INotifyDataErrorInfo interface that was...
  • Wiki Page: XAML

    Table of Contents Community Resources MSDN Web Pages Technical Articles XAML is a declarative markup language. As applied to the .NET Framework programming model, XAML simplifies creating a UI for a .NET Framework application. You can create visible UI elements in the declarative XAML markup...
  • Wiki Page: WPF

    WPF is an acronym for Windows Presentation Foundation . WPF was previously known as "Avalon"
  • Wiki Page: Multiple Columns in WPF ListBox

    In this article we will discuss ways to have multiple columns in WPF ListBox control and layout the ListBox such that each row has 3 items. All WPF controls deriving from ItemsControl provide an ' ItemsPanel' property that allows us to replace the internal layout panel that arranges the items...
  • Wiki Page: Business Rules: Decision Services for Business Applications

    Experience in the use of BRS shows that little regard was paid to the encapsulation of business logic in the architecture of applications in use today, irrespective of whether these are host systems or server based systems. Business rules are for the most part closely interwoven with the technical...
  • Wiki Page: WPF: Best ComboBox Tutorial Ever

    Table of Contents Introduction Building the Sample Description 1. List<string> SelectedItem 2. List<Class> SelectedItem 3. List<Class> SelectedValue 4. ComboBox ItemTemplate 5. XAML Array - Static XAML Data 6. XML Data - XmldataProvider 7. Static Class Property 8. Composite Collection...
  • Wiki Page: Starting your PixelSense Application Efficiently

    When you start to build application for the SUR40 and Microsoft PixelSense, all used to work really perfectly well on the simulator and your development PC. When you start to install and run your application directly on the device in Surface mode, you start to face a challenging but important issue...
  • Wiki Page: WPF/MVVM: Binding the IsChecked Property of a CheckBox to Several Other CheckBoxes

    Table of Contents Introduction Grouping in XAML Data Templating Defining a GroupStyle The binding Selecting all CheckBoxes Introduction This article provides an example on how you can use a three-state Checkbox control to set the IsChecked property of several other related CheckBoxes in a data...
  • Wiki Page: Books for Developers

    This topic is a recommended reading. This article indicates a suggested or recommended reading that will provide you with accurate and important informations for a better understanding of the covered topic. Table of Contents Introduction .NET General ADO.NET ASP.NET Best Practices...
  • Wiki Page: How to Concatenate Strings into a Single Wrapping TextBlock (with Wrapping on Each Word)

    This "How To" shows several concepts around grouping and wrapping text. It also shows just how flexible the TextBlock now is, since the introduction of Runs. Each Run can have different styles, cursors, even events like MouseLeftButtonDown For this scenario, a WPF Forum poster...
  • Wiki Page: Set Brush for ScrollViewer Thumb

    In WPF/Silverlight ScrollViewer and ScrollBar control doesn't have any property to change color of Thumb dynamically from XAML by setting property. We have to edit the Style of ScrollBar and set the Brush for it according to our requirement. Based on requirement of one of the user on MSDN Forum...
  • Wiki Page: Editable Button in WPF

    Today I am going to share a code snippet to create an Editable Button in WPF, where we can update the text of a Button at runtime. In this control the user would right-click a button and then click 'Edit' to make to control Editable, and later right-click it to save/cancel the change. First...
  • Wiki Page: WPF Data, Item and Control Templates - Minimum Code, Maximum Awesomeness

    Table of Contents Introduction The Sample Project A Brief Explanation Introduction This article is going to highlight some of the awesomeness of WPF (and Silverlight) through XAML, INotifyPropertyChanged, Item Templates, Data Templates and Control Templates. The Sample Project ...
  • Wiki Page: La classe Multibinding in Wpf e C# (it-IT)

    In questo semplice esempio vedremo come utilizzare la Classe Multibinding . La classe MultiBinding consente di associare una proprietà di destinazione dell'associazione a un elenco di proprietà di origine e di applicare quindi una logica per produrre un valore con gli input specificati. In questo...
  • Wiki Page: La classe Multibinding in Wpf e VB NET (it-IT)

    In questo semplice esempio vedremo come utilizzare la Classe Multibinding . La classe MultiBinding consente di associare una proprietà di destinazione dell'associazione a un elenco di proprietà di origine e di applicare quindi una logica per produrre un valore con gli input specificati. In questo...
  • Wiki Page: Windows Presentation Foundation

    Note: This page is currently a stub article. Add information as you can. Table of Contents Introduction Styles & Control Templates Triggers WPF Design Patterns Code Behind Model View ViewModel (MVVM) Community Resources MSDN Library Web Pages Technical Articles Books Videos Introduction...
  • Wiki Page: Formatting a string binding in XAML using a value converter

    Introduction WPF provides thorough support for formatting strings when binding using StringFormat or ContentStringFormat . However there are still scenarios where you will need to do some extra coding to get the results you want. For example an application may have an alphanumeric order reference...
  • Wiki Page: WPF: How To Manage Available/Selected Lists using MVVM Or Code Behind

    Table of Contents Introduction Download Description MVVM Code Behind Introduction This example shows how to handle two lists for selecting items. One showing selected items, the other showing remaining options available (minus the selected options). As you select items from the ComboBox...
  • Wiki Page: WPF: TreeView SelectedItem TwoWay MVVM (plus expand to selected and close all others)

    Table of Contents Introduction Building the Sample Description Introduction This sample shows how to two-way-bind to the SelectedItem property of a WPF or Silverlight TreeView . It also shows how to expand nodes down to the selected item, and collapse all other nodes (to keep it tidy)....
  • Wiki Page: Event handling in an MVVM WPF application

    In a WPF application that uses the MVVM (Model-View-ViewModel) design pattern, the view model is the component that is responsible for handling the application's presentation logic and state. This means that the view's code-behind file should contain no code to handle events that are raised...
  • Wiki Page: Cascading ComboBoxes in WPF using MVVM

    When a user is selecting an item from a cascading ComboBox, another ComboBox gets automatically populated with items based on the selection in the first one. This article is about how you can implement this behaviour in a WPF application using the MVVM (Model-View-ViewModel) pattern. Assume that...
  • Wiki Page: Silverlight Platform

    Overview Microsoft Silverlight is a Software Platform for building and running Rich Client Side Application , So Silverlight can be embedded inside HTML like the Flash Macromedia or can render outside the browser like WPF. Silverlight is cross browser , cross platform , it is a small implantation...
  • Wiki Page: The Equivalent to AutoGenerateColumns for a ListView/GridView

    In WPF there is no built-in way to make a ListView display generic content. The DataGrid has this ability but is probably too much for just a display. To this end I have created an AttachedProperty that will allow the user to use a ListView with that ability. To use this AttachedProperty simply...
  • Wiki Page: MVVM and ScatterView

    ScatterView provides a simple way to create applications that enhance the Microsoft PixelSense experience. It is a common way to visualize content that can be manipulated freely by user. Figure 1 ScatterView with some different ScatterViewItems All those who have tried to bind...
  • Wiki Page: MultiColumn ComboBox in WPF DataGrid

    Recently someone wanted to have MultiColumn ComboBox in WPF DataGrid. Although there are many articles for creating Simple MultiColumn Combobox but not many article for having it inside Datagrid. So I decided to write a small snippet which can work for Datagrid. DataGrid has DataGridTemplateColumn...
Page 1 of 3 (55 items) 123
Can't find it? Write it!