Access to scheduleView in appointment editor view model

2 posts, 0 answers
  1. Matthias
    Matthias avatar
    7 posts
    Member since:
    Dec 2011

    Posted 20 Jan 2012 Link to this post

    Hi,

    i have implemented a custom appointment editor dialog using the dialog host factory. Now i need access to the scheduleview instance from within the viewmodel of my appointment editor dialog. Especially i need to know from which viewdefinition (month, day, week...) the dialog was started so i can set the start and end dates appropriately.
    I saw that the original appointmentdialogviewmodel (from which i have an instance in my custom editor viewmodel) has a property called DialogHost and this property has another property "ScheduleView" which is in fact the instance i need access to. However the "DialogHost" property on the appointmentDialogViewModel is protected so i can't access it within my viewmodel.
    How can i get access to the scheduleview instance from within my custom view model?

    best regards

    matthias
  2. Yana
    Admin
    Yana avatar
    4554 posts

    Posted 26 Jan 2012 Link to this post

    Hello Matthias,

    Could you please provide us some sample code, so we to be able to understand your exact scenario? Thanks in advance

    Kind regards,
    Yana
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

  3. UI for WPF is Visual Studio 2017 Ready
Back to Top