First sorry for the bad english.I try the built-in command of the XamOutlookCalendarView to switch the view to use but nothing happened.
The XamOutlookCalendarView is in the same parent grid
<Button Grid.Row="1" Name="btnWeekView" Content="week"> <ig:Commanding.Command > <igPrim:XamOutlookCalendarViewCommandSource CommandType="SwitchToFullWeekView" TargetName="OutlookView1" EventName="Click" /> </ig:Commanding.Command></Button>
What am I doing wrong?
Hello Marcus,
I have been looking into this and since the XamOutlookCalendarViewCommandSource is not a FrameworkElement I wasn’t able to find another approach to that would use binding. This is why I have logged this with development under ID: 111820 and I have also created a support ticket on your behalf: CAS-91235-9N9FT5 and have linked the development issue to it, so that you can get automatically updated, when a Service Release containing the fix is available for download. You can get the new version from our website’s “My IG”, “My Keys & Downloads” tags: https://ko.infragistics.com/Membership/Default.aspx?panel=Downloads#Downloads
You can also monitor the support ticket’s progress through the “My Support Activity” tag: https://ko.infragistics.com/Membership/MySupport.aspx
Thanks for the help.Assign to the target in the code behind it works.However, I use the MVVM pattern and I want as far as it is possible to use pure XMAL. Is it possible? The target property can not be assign in XMAL since no DP.
I have looked into your issue and I don’t see anything wrong in your snippet. I am going to log this with development and in the meantime you can set the CommandSource’s x:Name property and in code behind you can set its Target property to the instance you want. That way everything seems to work as expected.
I am going to update you with the internal work item id, so you can track its resolution.