Posts

Showing posts from August, 2010

WPF blinking cell

<Windowx:Class="WpfTable.Window6"xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"xmlns:dg="http://schemas.microsoft.com/wpf/2008/toolkit"Title="Window6"Height="158"Width="271"><Window.Resources><DataTemplatex:Key="BlinkCellTemplate"><TextBlockTextAlignment="Center"x:Name="tbMessage"Background="White"Padding="5,0,0,0"><TextBlock.Text><BindingPath="Price"NotifyOnTargetUpdated="True"><Binding.StringFormat>{0:#.0000}</Binding.StringFormat></Binding></TextBlock.Text><TextBlock.Triggers><EventTriggerRoutedEvent="Binding.TargetUpdated"><BeginStoryboard><Storyboard><ColorAnimationStoryboard.TargetProperty="(TextBlock.Background).(SolidColorBrush.Color)"From="White"To=&qu…

How to run WPF (XBAP) application in Google Chrome

Install Firefox Mozilla (yes we're talking about Chrome here.. )Add C:\Program Files\Mozilla Firefox to environment variable PATH

WPF Binding Example and CustomConverter

<Windowx:Class="WpfTable.Window3"xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"xmlns:local="clr-namespace:WpfTable"DataContext="{Binding RelativeSource={RelativeSource Self}}"Title="Window3"Height="226"Width="483"><Window.Resources><local:ColorConverter1x:Key="colorConverter"/></Window.Resources><GridDataContext="{Binding Path=WindowViewModel}"><StackPanel><GridName="grid1"DataContext="{Binding Path=Player}"><Grid.RowDefinitions><RowDefinitionHeight="Auto"/><RowDefinitionHeight="Auto"/><RowDefinitionHeight="Auto"/></Grid.RowDefinitions><Grid.ColumnDefinitions><ColumnDefinitionWidth="150"/><ColumnDefinitionWidth="150"/><ColumnDefinitionWidth="150"…

Google Web Toolkit (GWT) MVP Example

WPF DataTable with custom column header

<Windowx:Class="WpfTable.Window2"xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"DataContext="{Binding RelativeSource={RelativeSource Self}}"Title="WPF Tables"Height="309"Width="524"><Window.Resources><DataTemplatex:Key="OverwriteHeaderTemplate"><StackPanel><TextBlockGrid.Column="0"Grid.Row="0"HorizontalAlignment="Center"Text="{Binding Path=ColumnName}"/><TextBoxx:Name="overwriteText"Grid.Column="0"Grid.Row="1"Text="{Binding Path=OverwriteText}"MinWidth="30"Width="{Binding RelativeSource={RelativeSource Mode=FindAncestor,AncestorType=GridViewColumnHeader},Path=ActualWidth}"IsEnabled="False"/></StackPanel></DataTemplate></Window.Resources><Grid><StackPanel><Grid…