MultiPoint Buttons/Visual Studio 2005 Problem!

Jan 15 2008 12:00 PM
Hi,

Is anybody know how work Microsoft MultiPoint buttons with Visual Studio 2005?

My "One Click Button" example, see below, don't doing nothing.:  

<Window x:Class="MultiPointApplication2.MultiPointWindow"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:multipointns="clr-namespace:Microsoft.MultiPoint.MultiPointControls;assembly=Microsoft.MultiPoint.MultiPointControls"
    Title="MultiPointApplication" Height="300" Width="300"
    >
  <Grid>
      <Button Name="btn1" Height="50" Width="200" Background="Red" Foreground="White"
          FontFamily="Times New Roman" FontSize="14" Content="Red Button" Click="ButtonClickMethod"/>
  </Grid>
      <x:Code>       
        <![CDATA[                    
        void ButtonClickMethod(object sender, RoutedEventArgs e)
        {     
             btn1.Background = Brushes.Green;
              MessageBox.Show("Red Button clicked");
            }
        ]]>
      </x:Code>
 </Window>

Please help me.

Nikolai