Hi,
how can you enable a right mouse click to select an activity?
thanks for the quick response. I actually found the problem in my code as well. I was creating a new instance of the data manager every time I change the underlying data when all I had to do was use the same data manager and change the appointment and resource sources.
I have attached a screenshot showing how you can verify thread posts as answers (verify.jpg). In order to see this button you would need to be signed in and thread owner.
Hello,
I have been looking into your last reply, however I am not sure how does this interfere with your MVVVM pattern since all this is strictly confined within the view and its functionality itself. If you insist on keeping your view’s code behind clean I can suggest creating your own custom class that would only inherit from a schedule control and add this style to its. I have created a simple class snippet to get you started:
public class MyXamOutlookCalendarView : XamOutlookCalendarView { public MyXamOutlookCalendarView() : base() { Style test = new Style(typeof(AppointmentPresenter)); test.Setters.Add(new EventSetter(AppointmentPresenter.MouseRightButtonDownEvent, new MouseButtonEventHandler(app_MouseRightButtonDown))); this.Resources.Add(typeof(AppointmentPresenter), test); } void app_MouseRightButtonDown(object sender, MouseButtonEventArgs e) { this.SelectedActivities.Add((sender as AppointmentPresenter).Activity); } }
Please let me know, if you require any further clarification on the matter.
I'm using the xamoutlookcalendarview control with the MVVM pattern and I'm unable to change the appointments on the control once I've bound the data the first time. I'm setting the data by: DataManager="{Binding CalDataManager, Mode=TwoWay}". Please help.
thanks
How do you mark something as answered?