Click here to Skip to main content
15,892,746 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
how can we, dynamically create a tab control in wpf devexpress control , while selectiong the checkbox from the list.
ie, how many i selected in checkbox that much tabcontrol should be create with checked item name.

What I have tried:

How can i create dynamically , tab control in wpf devexpress
Posted
Updated 25-Apr-16 20:23pm
Comments
CHill60 25-Apr-16 8:23am    
What have you tried up to now?
SwethaVijayan 25-Apr-16 9:19am    
i didnt try any thing

As you haven't tried anything yet you are in the wrong forum. A full tutorial does not constitute a "quick answer"

Work your way through the examples provided by this search[^]

If you get stuck then come back with your code and we will try to help
 
Share this answer
 
C#
List<long> transfertype = unBoundSelectionHelperTransferType.GetSelectedKeys();

               if (tabControlCurrencyRangeSlabs != null)
               {
                   tabControlCurrencyRangeSlabs.Items.Clear();
                   DXTabItem dxTabItem;
                   List<long> distinctTransferTypes = transfertype;
                   for (int i = 0; i < distinctTransferTypes.Count; i++)
                   {
                       dxTabItem = new DXTabItem() { Header = TransferTypes.Where(x => x.LookUpDetailsID == distinctTransferTypes[i]).FirstOrDefault().DetailName, Tag = distinctTransferTypes[i] };
                       tabControlCurrencyRangeSlabs.Items.Add(dxTabItem);
                       if (!unBoundDictSelectionHelperSenderMandatory.ContainsKey(distinctTransferTypes[i]))
                           unBoundDictSelectionHelperSenderMandatory.Add(distinctTransferTypes[i], new UnBoundSelectionHelper<long>());

                   }
                   foreach (var tabItem in tabControlCurrencyRangeSlabs.Items)
                       ((DXTabItem)tabItem).Content = null;

                   grdCurrencyRange.SetParent(tabControlCurrencyRangeSlabs);
                   if (tabControlCurrencyRangeSlabs.SelectedTabItem != null) tabControlCurrencyRangeSlabs.SelectedTabItem.Content = grdCurrencyRange;
               }
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900