hi
I'm using XamDayView to show daily activities of our company employers.
I'm already using activities's background property to show the owner user.
Activities state can be 'under process', 'rejected', 'copmleted' etc. and to show this activity's feature graphically i would like to place a very small icon in right(not necessarily) angle of xamdayview activity ? Is it possible? or any other to way to do this differentiation?
In addition, i'm showing in dayview some activities executed at customers home, and i need another solution to this :
For example it will take 30 min to go to a certain customer home, I left office at 9:00 and came back 11:00, I actually worked from 9:30 to 10:30. On xamDayView my activity is showing from 9:00 to 10:00 but i need to differentitate between travel time and work time. I cannot create 2 or more activities, just one activity and differentiate this feature graphically ?
Hello,
I am just checking if you require any further assistance on the matter.
Sincerely,RadkoPrincipal Product Developer - XAMLInfragisticshttps://es.infragistics.com/support
Hi jadugar,
Thank you for you question. I believe you can achieve the functionality you want by creating your own custom activities and place the additional information about the icon in it. You an see similar functionality show by Diyan Dimitrov in this post:
https://es.infragistics.com/community/forums/f/ultimate-ui-for-wpf/48204/appointment-barcolor-equivalent/256710#256710
You can download the ScheduleSample.zip file with a sample application in WPF, however in SL it is the same. Also note how a "BarColor" property of type Brush has been added, you have to create similar property (of type ImageSource for example) and later bind the image source to this property in the template like this:
<Image Source="{Binding DataItem.ActivityImage}" />
For differentiating your traveling time comparing to the worktime you can add some TextBlocks in the activity template and use different background color for them. You can pass the background color as argument just like the activity image source.
Also here is another thread disccusing how to chnage the background color of xamSchedule activities:
https://es.infragistics.com/community/forums/f/retired-products-and-controls/48904/appointment-background-color
Sincerely,RadkoPrincipal Product Developer (XAML)Infragisticshttps://es.infragistics.com/support