How can we bind the Images in Image Column and show enlarge image on Mouse Hover.

Apr 22, 2014 at 7:43 AM
Hi,

How can we add the Image Column in Extended Grid and bind the Images in Image Column and show enlarge image on Mouse Hover.

Regards
Lucky Ahuja
Coordinator
Apr 23, 2014 at 2:23 PM

This is special requirement .
You can figure this out with normal wpfdatagrid and apply same concept here.

Apr 24, 2014 at 7:53 PM
yup I had figured out actually you replied late I made one Class an inherit from DatagirdTemplateColumn


<ExtendedColumn:ExtendedDataGridCustomColumn>
                    <ExtendedColumn:ExtendedDataGridCustomColumn.CellTemplate>
                        <DataTemplate>
                            <Button>
                                <Button.Template>
                                    <ControlTemplate>
                                        <Grid>
                                            <Image Source="{Binding Path=Portrait}" Width="40" Height="40" Name="grdPicture"></Image>
                                            <ContentPresenter Content="{TemplateBinding Property=ContentControl.Content}" />
                                        </Grid>
                                        <ControlTemplate.Triggers>
                                            <Trigger Property="Control.IsMouseOver" Value="True">
                                                <Setter Property="ToolTip" TargetName="grdPicture">
                                                    <Setter.Value>
                                                        <Image Source="{Binding Path=Portrait}" Width="70" Height="70" ></Image>
                                                    </Setter.Value>
                                                </Setter>
                                            </Trigger>

                                        </ControlTemplate.Triggers>

                                    </ControlTemplate>
                                </Button.Template>
                            </Button>
                        </DataTemplate>
                    </ExtendedColumn:ExtendedDataGridCustomColumn.CellTemplate>
                </ExtendedColumn:ExtendedDataGridCustomColumn>
Coordinator
Apr 26, 2014 at 8:15 PM
Good