Welcome to MSDN Blogs Sign in | Join | Help

Browse by Tags

All Tags » WPF   (RSS)

Ajouter des icônes vectorielles à vos application … grâce aux polices de caractère

Trouver des icônes est souvent une tâche pénible pour les développeurs. Ce post décrit une technique simple pour utiliser des polices « symboliques » dans vos applications WPF et Silverlight permettant ainsi : D’avoir des icônes vectoriels donc retaillables
Posted by lvovan | 0 Comments
Attachment(s): FontsAsVectorIcons.zip

Get whole sets of vector icons using … Fonts!

Finding icons is a tedious task for most developers. In this post I will demonstrate how to use “symbolic” fonts in your WPF or Silverlight applications, which provide the following benefits: Vector icons that are smoothly scalable Potentially better
Posted by lvovan | 0 Comments
Attachment(s): FontsAsVectorIcons.zip

The FormatConverter, and XamlParseExceptions in Microsoft Expression Blend

A converter we very often use and reimplement is the so-called FormatConverter, which takes a string as a value and uses with the converter’s parameter in a call to String.Format . This eases sometimes shortens the XAML by quite a bit when concatenating

Le FormatConverter, et les XamlParseException dans Microsoft Expression Blend

Un converter que l’on voit et réimplémente très souvent est le FormatConverter, qui consiste à prendre en entrée une chaîne et l’utiliser comme paramètre pour la méthode String.Format . Cela permet par exemple d’éviter une redondance de runs lorsque l’on

Différences de namescopes et DataContext entre WPF et Silverlight

Lors de l’implémentation d’un UserControl, vous aurez très souvent à databinder un objet déclaré en XAML à une ou plusieurs propriétés du UserControl lui-même. La façon la plus élégante de procéder consiste à utiliser un binding ElementName . < UserControl
Posted by lvovan | 0 Comments
Attachment(s): NameScopeExample.zip

WPF and Silverlight namescopes and DataContext differences

When authoring a UserControl, you will more often than not end up data binding properties of objects in your XAML file to properties of your UserControl itself. The most elegant way to do this would be without any code-behind at all, using ElementName
Posted by lvovan | 0 Comments
Attachment(s): NameScopeExample.zip

Exemple de partage de ressource entre Silverlight et WPF

Ci-joint un petit projet démontrant la réutilisation de ressource entre Silverlight et WPF. Les explications détaillées viendront plus tard :)
Posted by lvovan | 0 Comments
Filed under: , , ,

Attachment(s): MixedApp.zip

Sorts and filters on ObservableCollection

Using the ObservableCollection<T> collection is a very common practice among UI developers. Added to the fact that they allow easy UI updates, they also allow sorting and filtering operations via CollectionViews. This post describes a pattern linking
Posted by lvovan | 0 Comments
Filed under: , ,

Attachment(s): CollectionViewDemo_EN.zip

Tris et filtres sur des ObservableCollection&lt;T&gt;

Utiliser des ObservableCollection<T> est une pratique fondamentale lors du développement d’UI. Outre le fait qu’elles permettent des mises à jour dynamique de l’UI, elles peuvent également être triées et filtrées par le biais des CollectionViews.
Posted by lvovan | 0 Comments
Attachment(s): CollectionViewDemo.zip

WPF: Some terms defined for Rudy

I received a mail from Rudy, who asked me for some clarifications on several WPF definitions: « The terms for which I would like to have some details, relations and usage are DataTemplate, ContentControl, ControlTemplate and Content » A DataTemplate is
Posted by lvovan | 1 Comments
Filed under: , ,

WPF : Quelques d&#233;finitions de termes pour Rudy

Un mail de Rudy, qui souhaitait quelques réponses concernant différentes définitions WPF : « Les termes pour lesquels j'aimerais avoir quelques précisions à propos de leurs définitions, relations et utilisations sont les suivants : DataTemplate, ContentControl,
Posted by lvovan | 1 Comments
Filed under: , ,

Mise &#224; jour de l’UI pendant un chargement asynchrone (WPF)

Dans un programme, les données à afficher n’étant pas toujours disponibles instantanément il est impératif de prévenir l’utilisateur lorsqu’un processus long est succeptible d’affecter les interactions. On peut prendre comme règle informelle que l’utilisateur
Posted by lvovan | 0 Comments
Attachment(s): AsynchronousDataLoading.zip

GUI feedback when loading data asynchronously (WPF)

Data is not always readily available for applications to display, and it is essential to notify the user when any long running process is going to hinder the smoothness of a user's workflow: it is indeed the least of things as loading time is a purely
Posted by lvovan | 0 Comments
Filed under: , ,

Attachment(s): AsynchronousDataLoading.zip

Pourquoi : InvalidOperationException : Impossible de trouver le nom dans la port&#233;e de nom de 'System.Windows.Controls.ControlTemplate'.

( correction : quel thread créé effectivement l'élément, 2ème workaround ) Cette exception est déroutante à plusieurs titres: le code en cause semble parfois marcher, le ou les storyboard(s) référençant le nom sont valides, le nom de l'élément existe
Posted by lvovan | 2 Comments
Filed under: , ,

Attachment(s): EarlyResourceAccessIssue.zip

Why: InvalidOperationException name cannot be found in the name scope of 'System.Windows.Controls.ControlTemplate'

( edit : correction following Nick's comment, about which thread actually creates the elements) This exception is confusing for multiple reasons: the code causing it does works on some occasions, the storyboard(s) referencing the infringing name are valid,
Posted by lvovan | 3 Comments
Filed under: , ,

Attachment(s): EarlyResourceAccessIssue.zip
More Posts Next page »
 
Page view tracker