Welcome to MSDN Blogs Sign in | Join | Help

June 2009 - Posts

Data Bind Using Only Code Behind

We are all familiar with the use of WPF Binding in XAML. For example, the following lines bind the caption of a Button (variableCaptionButton) to the text of a TextBox (sourceText). <TextBox x:Name="sourceText" Grid.Row="0" />
Posted by PermanentTan | 0 Comments

Array as a WPF ConverterParameter

A WPF value converter accepts a value and an optional parameter. The parameter can be specified in the XAML binding as a string like the following:   <TextBlock Background=”{Binding Path=myElement, Converter={StatisResource MyConverter}, ConverterParameter=myParameterText}”
Posted by PermanentTan | 0 Comments

Setting Initial Focus in XAML

Last time we looked at a tricky problem of setting the initial focus to a specific item in a populated WPF ListView. Most of the time, however, we just want to set the initial focus to a control (like a TextBox or a Button) in our UI. There are a couple
Posted by PermanentTan | 0 Comments
 
Page view tracker