本文整理汇总了C#中System.Windows.Controls.TabItem.InvalidateArrange方法的典型用法代码示例。如果您正苦于以下问题:C# TabItem.InvalidateArrange方法的具体用法?C# TabItem.InvalidateArrange怎么用?C# TabItem.InvalidateArrange使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类System.Windows.Controls.TabItem
的用法示例。
在下文中一共展示了TabItem.InvalidateArrange方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: CompaniesButtonClick
private void CompaniesButtonClick(object sender, RoutedEventArgs e)
{
var header = new TabHeader();
header.HeaderText = "Companies";
header.Closing += OnTabCloseRequest;
var tab = new TabItem()
{
Header = header,
};
var companies = Database.DatabaseAccess.GetEntitiesOfType<Company>().ToList();
var companiesTab = new CompaniesTab() { Companies = companies };
tab.Content = companiesTab;
tab.InvalidateArrange();
tabViewer.Items.Add(tab);
tabViewer.SelectedItem = tab;
UpdateLayout();
}
示例2: CalendarButtonClick
private void CalendarButtonClick(object sender, RoutedEventArgs e)
{
var header = new TabHeader();
header.HeaderText = "Calendar";
header.Closing += OnTabCloseRequest;
var tab = new TabItem()
{
Header = header,
};
var calendarTab = new CalendarTab();
tab.Content = calendarTab;
tab.InvalidateArrange();
tabViewer.Items.Add(tab);
tabViewer.SelectedItem = tab;
UpdateLayout();
}
示例3: ProjectsButtonClick
private void ProjectsButtonClick(object sender, RoutedEventArgs e)
{
var header = new TabHeader();
header.HeaderText = "Projects";
header.Closing += OnTabCloseRequest;
var tab = new TabItem()
{
Header = header,
};
var projectsTab = new ProjectsTab();
tab.Content = projectsTab;
projectsTab.ProjectsToDisplay = DatabaseAccess.GetEntitiesOfType<Project>() as List<Project>;
tab.InvalidateArrange();
tabViewer.Items.Add(tab);
tabViewer.SelectedItem = tab;
UpdateLayout();
}
示例4: PeopleButtonClick
private void PeopleButtonClick(object sender, RoutedEventArgs e)
{
var header = new TabHeader();
header.HeaderText = "People";
header.Closing += OnTabCloseRequest;
var tab = new TabItem()
{
Header = header,
};
var peopleTab = new PeopleTab();
peopleTab.People = DatabaseAccess.GetEntitiesOfType<Person>() as IList<Person>;
tab.Content = peopleTab;
tab.InvalidateArrange();
tabViewer.Items.Add(tab);
tabViewer.SelectedItem = tab;
UpdateLayout();
}