This is my 'tabgrouppane'. For example, let's say there are 10 'groups' in the picture. What I want is, When 'Group1' is selected, 'true' and the remaining 'group' that are not selected must be 'false'. I want to implement this by 'binding' it as a 'viewmodel'. What should I do?
Hello Kim,
Thank you for posting to Infragistics Community!
I have been looking into your question and image, however, I am not sure what you are referring to as ‘groups’ in this case. I see that within the XamDockManager there is a DocumentContentHost having a TabGroupPane with two ContentPanes as tabs, is this correct?
At this point, though, I am unable to identify what the two “pane”-like objects within the first pane are. Could you please elaborate further on your requirement and provide more details on what a ‘group’ is and what is meant under selected.
Ideally, I would like to ask you to, please, modify the below attached sample to demonstrate your current setup. You could also add any code that you consider relevant, such as part of your ViewModel properties that you would like to bind to. Currently, the sample contains a XamDockManager hosting a similar TabGroupPane and a sample ViewModel class.
Looking forward to your reply.
Best regards, Bozhidara Pachilova Associate Software Developer
3441.XDMTabGroupPane.zip
sorry. 'group' means 'tab'. If the first 'tab' is selected, 'true', the remaining 'tabs' should be 'false'. If the second 'tab' is selected, 'true' and the remaining 'tab' should return 'false'.
Hi Kim,
Thank you for clarifying.
While I am still not entirely aware of what the objects in your ViewModel that you would like to bind to are, based on the current information I can suggest handling the TabGroupPane’s SelectionChanged event and use da event arguments “AddedItems” and “RemovedItems” collections to modify your view model items’ selection flag.
Attached you will find a small sample demonstrating this approach. If this is not an accurate demonstration of what you are trying to achieve, please, modify it and send it back to me along with further details about your requirements.
5238.XDMTabGroupPane2.zip
I am glad that you find my suggestion helpful. Thank you for using Infragistics components!
Best regards, Bozhidara Pachilova
It works! that's very kind of you!