I'm having a problem adding an image to the UltraDayView. I am using the following code:
Dim image As Bitmap = SystemIcons.Warning.ToBitmap() Dim imageSized As New Bitmap(image, New Size(100, 100)) apptX.Appearance.Image = imageSized apptX.Appearance.ImageHAlign = HAlign.Right apptX.Appearance.ImageVAlign = VAlign.Bottom
The same UltraCalendarInfo is also being applied to a week view and month view. In those two views, the icons appear correctly. I have some sample code from another forum post where the icon appears correctly in all views, so there must be something specific in my project preventing the day view from working. Unfortunately due to the complexity of the application I can't provide a sample project.
I was wondering if there are any known reasons why an image may not appear that I can look for?
Hi,Thank you for posting in our forums.I have tested the provided code and it works fine when the UltraDayView has no additional settings. So indeed some setting in your application must be preventing the image from showing in the DayView. Unfortunately without any additional details it would be difficult to say exactly what is doing this. What settings have you applied to the DayView? What ViewStyle are you using? Does the DayView have a DrawFilter or CreationFilter?I am looking forward to hearing from you.
Thank you for taking the time to reply. It turns out the DayView was using a CreationFilter and the other two views were not. I was able to fix my issue by changing the CreationFilter to add the image. Thanks again!