WPF

TwitterFacebook
Get flash to fully experience Pearltrees
http://www.codeproject.com/Articles/18303/A-Guided-Tour-of-WPF-Part-4-Data-templates-and-tri Table of Contents Part 1 (XAML): Learn about XAML and how it is used in WPF applications. Part 2 (Layout): Learn about layout panels and how they are used to construct user interfaces.

A Guided Tour of WPF – Part 4 (Data templates and triggers)

http://blog.thekieners.com/2010/08/27/listening-to-dependencyproperty-changes-in-silverlight/ The dependency property system is a pretty nice concept. Receiving notifications for dependency property changes on an existing object is a very common scenario in order to update my view model or the UI. This is quite easy in WPF:

Listening to DependencyProperty changes in Silverlight | Kiener's Blog

Localization using a MarkupExtension

The Idea A simple and effective way to localize application resources is to write a custom MarkupExtension that provides a localized value. The extension takes a parameter in the constructor that is the unique resource key. When the DepdendencyProperty asks for the value, the markup extension looks up the value from a generic resource provider. http://www.wpftutorial.net/LocalizeMarkupExtension.html

Localizing WPF Applications using Locbaml

http://www.codeproject.com/Articles/17334/Localizing-WPF-Applications-using-Locbaml Download source - 1027 Kb Table of Contents Introduction Background What You Will Need To Follow This Tutorial (Software Prerequisites) Approach #1: Targeted Localization Without Using LocBaml.exe Creating The WPF Application Adding a Button to the Window Adding the string resources Replacing the button text Getting a public resources class Performing the localization Setting the initial startup language Responding to the button click Approach #2: Localization with XAML ResourceDictionary and LocBaml Adding a UICulture tag pair to the project configuration Setting the NeutralResourcesLanguage Attribute in the project Adding the ResourceDictionary to the project Merging the ResourceDictionary into the application Adding UId's to your XAML Extracting the Resources to a .CSV file using LocBaml.exe Generating the localized assembly and installing it Setting the current thread's UI Culture Replacing the button text with a DynamicResource Where are we now?
Download code ver 1.3 from here . Many of my customers asked me: How WPF supports localization and globalization? Is there any built-in mechanism for choosing a language on-the-fly, at runtime and without closing any window? http://blogs.microsoft.co.il/blogs/tomershamam/archive/2007/10/30/wpf-localization-on-the-fly-language-selection.aspx

WPF Localization - On-the-fly Language Selection - Essential XAML

Dispose of a WPF UserControl (ish)

http://geekswithblogs.net/cskardon/archive/2008/06/23/dispose-of-a-wpf-usercontrol-ish.aspx Dispose of a WPF UserControl (ish) I've been playing with WPF a little bit, and quite frankly got a bit stuck, (Meh! Who'd have thought). The problem is as follows: I create a UserControl - we'll call it 'MyUserControl' (wouldn't want to break traditions now would we).
Home » Programming Today I read a blog on http://weblogs.asp.net/bleroy/archive/2009/12/10/resizing-images-from-the-server-using-wpf-wic-instead-of-gdi.aspx which introduces a new way to resize image with WPF. This new method does not use GDI+ ( Microsoft Windows GDI+ is the portion of the Windows XP operating system or Windows Server 2003 operating system that provides two-dimensional vector graphics, imaging, and typography. ) but it uses WPF library for resizing images very fast. You can read more details about this method in that blog.

s blog » C#, WPF – Fast image resize

http://hintdesk.com/c-wpf-fast-image-resize/
http://weblogs.asp.net/bleroy/archive/2009/12/10/resizing-images-from-the-server-using-wpf-wic-instead-of-gdi.aspx I and many others have written about resizing images using GDI+ , or rather its .NET façade, System.Drawing . It works. But there is just this one sentence at the bottom of the documentation : Caution: Classes within the System.Drawing namespace are not supported for use within a Windows or ASP.NET service.

Resizing images from the server using WPF/WIC instead of GDI+ - Tales from the Evil Empire

http://www.codeproject.com/Articles/103259/Highlight-Searched-Text-in-WPF-ListView

Downloads: Highlight Searched Text in WPF ListView

Introduction I wrote this as an inspiration for how to search in Microsoft Outlook. Imagine that you have a ListView in a WPF application and you are looking for a text in the individual items. It would be useful to highlight the text. The code used in this demo can be adjusted wherever it's appropriate and the highlighted text is displayed by using the TextBox control.
Monday, May 12, 2008 8:12 PM Tamir Khason Today we’ll speak about how to search and select text on WPF page. This is not about how to search data sources, or how to search for data. This is visual search. Like this one Let’s see how XAML looks like http://blogs.microsoft.co.il/blogs/tamir/archive/2008/05/12/search-and-highlight-any-text-on-wpf-rendered-page.aspx

Search and highlight any text on WPF rendered page - Just code - Tamir Khason

I have posted a couple of times on creating a Piano Roll control in WPF. ( Part 1 and Part 2 ). Today I want to take a slight digression and ask whether this could be accomplished more elegantly using a data binding approach. I went to an excellent presentation by Josh Twist on WPF and data binding yesterday in which he claimed that if you are not using data binding in WPF, you a probably missing something. So I decided to experiment.

Creating a Piano Roll in WPF Part 3 - Data Binding

Download source files - here My old known Bala send to me this link . Kent Boogaart has written an article that describes approach searching and highlighting text in FlowDocumentPageViewer - Search and Highlight Text in an Arbitrary Visual Tree . Unfortunate, two serious issues present there.

Zoom and page changed events for FlowDocumentPageViewer

In the category of the pot talking to the pan, I present you ScrollViewer . It's the main control to implement scrolling in your templates, but it's also the one not respecting a very fundamental rule of scrolling: if you're done scrolling, let your parent scroll! Not only does ScrollViewer handles the mouse scrolling even when no more scrolling is needed, but it also does so when there's nothing to scroll, or worse when it is told not to scroll! Let's take an example XAML file. < Window x : Class ="CaffeineIT.Blog.ScrollViewerExample.Window1" xmlns ="http://schemas.microsoft.com/winfx/2006/xaml/presentation"

WPF Tips'n'Tricks #6: Preventing ScrollViewer from handling the mouse wheel

Routed Event Viewer « Karl On WPF – .Net

Understanding the order in which routed event handlers are invoked is an important WPF programming concept. I wrote the below demonstration program as a visual aid for my WPF presentations and wanted to share it. It allows the user to select which routed event handlers to handle, which event handler will mark the routed event as handled and simulates code running in the handler.
One of the primary tenets of Halfwit is that it should be completely drivable from the keyboard. That means that while I code it I have to pay very close attention to where the keyboard focus is, and what's currently "selected". To that end, it's important that when you switch away from a timeline and then switch back, the same tweet that you previously had selected is still selected, and it still has keyboard focus so you can navigate around it with the up and down arrow keys.

Focus a Virtualized ListBoxItem - Matt Hamilton