This project is read-only.

How to use ImageButton?

Jul 24, 2010 at 11:20 AM

Hi everyone,
Did you guy succeed to use the ImageButton? I tried here (A very simple test pjoject from FuidKit download package) but do not succeed.

My form was simply as:

<Window x:Class="TestFluidKit.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="MainWindow" Height="350" Width="525" xmlns:my="clr-namespace:FluidKit.Controls;assembly=FluidKit">
    <Grid>
        <my:ImageButton Content="Button" Height="23" 
                        HorizontalAlignment="Left" Name="imageButton1" VerticalAlignment="Top" Width="75"
                        NormalImage="Images/refresh.png"
                        HoverImage="Images/refresh-hover.png"
                        PressedImage="Images/refresh-pressed.png"
                        DisabledImage="Images/refresh-disable.png"
                        />
        <Image HorizontalAlignment="Left" Margin="133,0,0,0" Name="image1" Stretch="Fill" 
               VerticalAlignment="Top" Source="Images/refresh.png" Height="35" Width="35" />
    </Grid>
</Window>

Please help!
Nam.