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 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.
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.