private void Entry_TextChanged(object sender, TextChangedEventArgs e)
{
tabItemsCount = e.NewTextValue;
this.AddTabs();
}
// Add items dynamically.
private void AddTabs()
{
if (tabItemsCount != null && tabItemsCount == "")
{
tabView.Items.Clear();
}
else
{
tabView.Items.Clear();
GenerateBookInfo();
for (int i = 0; i < Convert.ToInt64(tabItemsCount); i++)
{
SfTabItem tabItem = new SfTabItem();
tabItem.Title = string.Format("Page {0}", i + 1);
var item = new ItemsPage();
item.model.BookInfo = Items[i];
tabItem.Content = item;
tabView.Items.Add(tabItem);
}
}
} |
Is there a way to do this via XAML rather than code behind, similar to a BindableLayout?
Hi Dean,
We have analyzed your requirement. Currently, we don't have support for your
requirement. We would like to inform you that we have considered this as a feature request “BindableLayout support for SfTabView” and you can track
the status of this feature implemented through the below link.
Feedback link: https://www.syncfusion.com/feedback/33304
Please cast your vote to make it count. We will prioritize the features every release
based on the demands, and we do not have an immediate plan to implement this
feature since we committed to already planned work. So, this feature will be
available in any of our upcoming releases.
If you have any more specifications/suggestions for the feature request, you can
add them as a comment in the portal.
Regards,
Suganya Sethuraman.