Skip to main content
image fixed (inlining HTTP images doesn't work anymore); for more info, see https://gist.github.com/Glorfindel83/9d954d34385d2ac2597bbe864466259f
Source Link
formatting; rm thanks
Source Link
svick
  • 24.5k
  • 4
  • 53
  • 89

httpexample of data from database http://i47.tinypic.com/b7yxyp.png

I will be loading maximum of 250 columns,20 20 rows from database.
My Questionquestions:

Thanks in advance.

http://i47.tinypic.com/b7yxyp.png

I will be loading maximum of 250 columns,20 rows from database.
My Question:

Thanks in advance.

example of data from database http://i47.tinypic.com/b7yxyp.png

I will be loading maximum of 250 columns, 20 rows from database.
My questions:

deleted 82 characters in body
Source Link
Olivarsham
  • 121
  • 1
  • 1
  • 5
 <DataTemplate x:Key="MyDataTemplate" DataType="DataRowView">
        <Grid Background="Transparent">
            <Image Tag="{Binding}" Name="Layer0" Margin="0,0,0,0"  Panel.ZIndex="1"  
                   Width="50" Height="50"   ToolTipService.HasDropShadow="True" ToolTipService.ShowDuration="20000" ToolTipService.InitialShowDelay="200" >
                <Image.ToolTip>
                    <StackPanel>
                        <Label FontWeight="Bold" Background="Blue" Foreground="White" Content="{Binding}" />
                        <TextBlock Padding="10" TextWrapping="WrapWithOverflow" Width="200">
                            This coil is located in this location. Yard Name is FG. Zone is Dispatch Area.
                        </TextBlock>
                        <Line Stroke="Black" StrokeThickness="1" X2="200" />
                        <StackPanel Orientation="Horizontal">
                            <Label FontWeight="Bold">Report to admin in case of coil location mismatch</Label>
                        </StackPanel>
                    </StackPanel>
                </Image.ToolTip>
                <Image.Resources>
                    <Style TargetType="{x:Type Image}">
                        <Setter Property="Source" Value="{Binding Converter={StaticResource IntToImageConverter}, ConverterParameter = Layer0}" />
                        <Style.Triggers>
                            <Trigger Property="IsMouseOver" Value="True">
                                <!-- Hover image -->
                                <Setter Property="Cursor" Value="Hand"/>
                                <Setter Property="Source" Value="C:\Users\arun.ks\Documents\Visual Studio 2010\Projects\ForeRunnerForGrid\ForeRunnerForGrid\Images\Coil3\Users\Images\Coil3.png"/>
                                <!--<Setter Property="Source" Value="{Binding  Converter={StaticResource HoverImage}}"/>-->
                            </Trigger>
                        </Style.Triggers>
                    </Style>
                </Image.Resources>
            </Image>
        </Grid>
    </DataTemplate>
 <DataTemplate x:Key="MyDataTemplate" DataType="DataRowView">
        <Grid Background="Transparent">
            <Image Tag="{Binding}" Name="Layer0" Margin="0,0,0,0"  Panel.ZIndex="1"  
                   Width="50" Height="50"   ToolTipService.HasDropShadow="True" ToolTipService.ShowDuration="20000" ToolTipService.InitialShowDelay="200" >
                <Image.ToolTip>
                    <StackPanel>
                        <Label FontWeight="Bold" Background="Blue" Foreground="White" Content="{Binding}" />
                        <TextBlock Padding="10" TextWrapping="WrapWithOverflow" Width="200">
                            This coil is located in this location. Yard Name is FG. Zone is Dispatch Area.
                        </TextBlock>
                        <Line Stroke="Black" StrokeThickness="1" X2="200" />
                        <StackPanel Orientation="Horizontal">
                            <Label FontWeight="Bold">Report to admin in case of coil location mismatch</Label>
                        </StackPanel>
                    </StackPanel>
                </Image.ToolTip>
                <Image.Resources>
                    <Style TargetType="{x:Type Image}">
                        <Setter Property="Source" Value="{Binding Converter={StaticResource IntToImageConverter}, ConverterParameter = Layer0}" />
                        <Style.Triggers>
                            <Trigger Property="IsMouseOver" Value="True">
                                <!-- Hover image -->
                                <Setter Property="Cursor" Value="Hand"/>
                                <Setter Property="Source" Value="C:\Users\arun.ks\Documents\Visual Studio 2010\Projects\ForeRunnerForGrid\ForeRunnerForGrid\Images\Coil3.png"/>
                                <!--<Setter Property="Source" Value="{Binding  Converter={StaticResource HoverImage}}"/>-->
                            </Trigger>
                        </Style.Triggers>
                    </Style>
                </Image.Resources>
            </Image>
        </Grid>
    </DataTemplate>
 <DataTemplate x:Key="MyDataTemplate" DataType="DataRowView">
        <Grid Background="Transparent">
            <Image Tag="{Binding}" Name="Layer0" Margin="0,0,0,0"  Panel.ZIndex="1"  
                   Width="50" Height="50"   ToolTipService.HasDropShadow="True" ToolTipService.ShowDuration="20000" ToolTipService.InitialShowDelay="200" >
                <Image.ToolTip>
                    <StackPanel>
                        <Label FontWeight="Bold" Background="Blue" Foreground="White" Content="{Binding}" />
                        <TextBlock Padding="10" TextWrapping="WrapWithOverflow" Width="200">
                            This coil is located in this location. Yard Name is FG. Zone is Dispatch Area.
                        </TextBlock>
                        <Line Stroke="Black" StrokeThickness="1" X2="200" />
                        <StackPanel Orientation="Horizontal">
                            <Label FontWeight="Bold">Report to admin in case of coil location mismatch</Label>
                        </StackPanel>
                    </StackPanel>
                </Image.ToolTip>
                <Image.Resources>
                    <Style TargetType="{x:Type Image}">
                        <Setter Property="Source" Value="{Binding Converter={StaticResource IntToImageConverter}, ConverterParameter = Layer0}" />
                        <Style.Triggers>
                            <Trigger Property="IsMouseOver" Value="True">
                                <!-- Hover image -->
                                <Setter Property="Cursor" Value="Hand"/>
                                <Setter Property="Source" Value="C:\Users\Images\Coil3.png"/>
                                <!--<Setter Property="Source" Value="{Binding  Converter={StaticResource HoverImage}}"/>-->
                            </Trigger>
                        </Style.Triggers>
                    </Style>
                </Image.Resources>
            </Image>
        </Grid>
    </DataTemplate>
Source Link
Olivarsham
  • 121
  • 1
  • 1
  • 5
Loading