Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
515
Hide/disable XamScheduleView's scrollbar
posted

Hello,

Is there someway to hide the scrollbar of the XamScheduleView?  I have a stackpanel with multiple XamScheduleView's, each scheduleview representing one day, stacked on top of each other vertically.  I'd like to have it so that the individual scheduleview's don't have a scrollbar and instead use the scrollbar of the stackpanel to navigate horizontally - this way as I scroll I can view the same time period for all the day's at the same time. 

During debugging I've found the TimeslotScrollBarVisibility property, and when set to Hidden it does what I'm looking for, but I can't figure out a way to access this property in code/XAML.  

Alternatively, having someway to synchronize the scrollbars together would accomplish the same goal.  Is there anyway to synchronize the scrollbars of XamScheduleViews?  (Although with this solution I'd still like to hide the individual scrollbars and only have a single scrollbar that controls the scrolling for all the scheduleviews.)

Thank you!

Parents Reply
  • 515
    posted in reply to Andrew Smith [Infragistics]

    Considering how long it would take for me to make a working sample of this program, I'd like to leave that as a final resort.  Instead I've added some screen captures to help explain what I'm talking about.

    This first screen capture shows the setup with the TimeslotInterval set to 30 minutes.  Basically I have a vertical stack panel containing a dynamic number of ScheduleView control's, each control representing a single day running from 5:00 - 5:00 (the next day).  The date range is selected at the top left (max 7 days), and the TimeslotInterval is selected from the dropdown at the top right.  The interval was set to 30 minutes when the ScheduleView controls were loaded, so the width of the ScheduleView controls is the exact width needed to display the control with the ScheduleViewTimeslotHeader width set to the value specified in the ScheduleView's style.

     

    The second screen capture shows what happens when the TimeslotInterval is changed to 60 minutes - the ScheduleViewTimeslotHeader width automatically doubles and the total width of the ScheduleView controls stays exactly the same.  Even though the timeslot interval is twice as big as in the previous screen capture, from the user's point of view the appearance of the control is basically the same between the two, just with less lines in the latter screen...

    What I would like to happen would be that the ScheduleViewTimeslotHeader width stays the same as in the first screen capture and instead the total width of the ScheduleView controls reduces by half (like in the last screen capture). 

    The timeslots will be that width unless there is more room than is needed to show all the timeslots - i.e. if the available space for the timeslotpanel is > # timeslots * preferred width.

    So when this happens is there a way to make it so the available space for the timeslotpanel is set to (# timeslots * preferred width) so that it doesn't stretch everything?

     

    The third screen capture shows what happens when the TimeslotInterval is changed to 15 minutes - the ScheduleViewTimeslotHeader width stays the same, the total width of the ScheduleView controls also stays exactly the same, and a scrollbar appears to allow scrolling to the right to view the rest of the day's schedule.

    What I'd like to happen here would be, instead of the total width of the ScheduleView control staying the same and a scrollbar appearing, I'd like to have the total width of the ScheduleView control double and then I could scroll all the days at once using the scrollbar of the stackpanel in which the ScheduleView controls are all inside of.

     

    I'm not sure what you mean by having the width of the control recalculate.

    I mean I'd like the width demonstrated in the screen capture above to change so that it's always 100% the width of the ScheduleView, without needed to scroll the ScheduleView, and without the width of the ScheduleViewTimeslotHeader changing to make it expand to a certain width.  As you can see in all the screen captures the width of the ScheduleView controls is exactly the same no matter what the interval (and also no matter the size of the window).  This width seems to be calculated once when the ScheduleView control is loaded, and then it never changes after that.  If I load the control again with a different interval set, then the total width of the ScheduleView control changes (shown in the screen capture below where the ScheduleView controls were loaded with the TimeslotInterval set to 60 minutes).  I'd like to have this width change when the TimeslotInterval is changed.

Children