Hi,
i have to change the image of a GridViewCell dynamically.
This is my Image:
How must the Converter look like? The Value of DayImage is a string "10,10,2014"
Thanks a lot
Best Regards
Rene
i have to change the image of a GridViewCell dynamically.
<local:ImageDayConverter x:Key="DayConverter" /> <Style x:Key="CellStyle" TargetType="{x:Type telerik:GridViewCell}"> <Setter Property="Background" Value="red" /> <Setter Property="BorderThickness" Value="0" /> <Setter Property="BorderBrush" Value="{x:Null}" /> <Setter Property="Template"> <Setter.Value> <ControlTemplate> <Border BorderBrush="#f2f2f2" BorderThickness="0,0,0,2" Padding="0,5,0,5"> <StackPanel Orientation="Horizontal"> <Image Height="30" Source="{Binding DayImage, Converter={StaticResource DayConverter}}"/> <StackPanel Orientation="Vertical" Margin="10,0,0,0" VerticalAlignment="Top"> <TextBlock Text="{Binding Titel}" /> <StackPanel Orientation="Horizontal"> <TextBlock Text="{Binding Start}" Foreground="#9fa2ae"/> <TextBlock Text=" - " /> <TextBlock Text="{Binding Startzeit}" Foreground="#9fa2ae" /> </StackPanel> </StackPanel> </StackPanel> </Border> </ControlTemplate> </Setter.Value> </Setter> </Style>This is my Image:
<Image Height="30" Source="{Binding DayImage, Converter={StaticResource DayConverter}}"/>How must the Converter look like? The Value of DayImage is a string "10,10,2014"
Thanks a lot
Best Regards
Rene