This question is locked. New answers and comments are not allowed.
Hi telerik;
I'd like to add an icon in appointment saying this is newly added since last read,
so I used simple DataTemplate of appointment with which has a image and text as subject such as followings.
The icon image shows up fine ,however, can't control visibility of the image binded with my viewmodel.
I read much threads related ,many example says use AppointmentStyleSelector and most of them are
for background color,which I already use,but don't know how to approach to add image icon.
Could you let me have a simple example ? Pls advice.
TIA
Kang
I'd like to add an icon in appointment saying this is newly added since last read,
so I used simple DataTemplate of appointment with which has a image and text as subject such as followings.
<
DataTemplate
x:Key
=
"AppointmentTemplate"
>
<
Grid
>
<
Grid.ColumnDefinitions
>
<
ColumnDefinition
Width
=
"Auto"
/>
<
ColumnDefinition
Width
=
"*"
/>
</
Grid.ColumnDefinitions
>
<
Image
Source
=
"/Images/General/LightBulb.png"
Width
=
"15"
Height
=
"15"
Visibility
=
"{Binding IsNew,Converter={StaticResource appointConverter}}"
/>
<
TextBlock
Grid.Column
=
"1"
Text
=
"{Binding Subject}"
HorizontalAlignment
=
"Center"
VerticalAlignment
=
"Center"
FontSize
=
"10"
Foreground
=
"White"
/>
</
Grid
>
</
DataTemplate
>
The icon image shows up fine ,however, can't control visibility of the image binded with my viewmodel.
I read much threads related ,many example says use AppointmentStyleSelector and most of them are
for background color,which I already use,but don't know how to approach to add image icon.
Could you let me have a simple example ? Pls advice.
TIA
Kang