- Welcome, Guest. Please Login or Register
  We have released initial version of MindFusion.Scheduling library for HTML5 & JavaScript.  
Page Index Toggle Pages: 1 Send Topic Print  
Modify Hidden Item Cue Icon
Read 276 times

Albert   Offline
YaBB Newbies
Posts: 1
I Love MindFusion!

Modify Hidden Item Cue Icon
Mar 12th, 2018 at 8:51pm
Hi there,

we are looking for a great calendar to integreate in our  application and are very impressed with your scheduler.
There is just one thing I would love to change and can't quite figure out how to do it. The "More Hidden Items Cue Icon" is just a little bit small and i can't seem to figure out how to change its size or replace the icon with a custom one, even though I searched for it in the documentation, samples and this forum.
So is there a way to modify it somehow? Or change the icon?

IP Logged    

Slavcho   Offline
God Member
Posts: 1587
Gender: male

Re: Modify Hidden Item Cue Icon
Reply #1 - Mar 13th, 2018 at 11:12am

Thank you for your interest in our product! Unfortunately these images are very well hidden, and you can only reach them using reflection -

PropertyInfo imagesInfo = typeof(Calendar).GetProperty("Images",
    BindingFlags.Instance | BindingFlags.Public | BindingFlags.NonPublic);

var resourceCache = imagesInfo.GetValue(_calendar, null);
FieldInfo repositoryInfo = resourceCache.GetType().GetFields(
    BindingFlags.Instance | BindingFlags.Public | BindingFlags.NonPublic)[0];
var repository = (Hashtable)repositoryInfo.GetValue(resourceCache);

repository["MoreDown"] = customMoreDown;
repository["MoreUp"] = customMoreUp;
repository["MoreLeft"] = customMoreLeft;
repository["MoreRight"] = customMoreRight;

We'll have in mind adding public API to access them for next release.

IP Logged    
Page Index Toggle Pages: 1 Send Topic Print