随笔分类 - silverlight
摘要:1 private TestTabControl TabControlParent 2 { 3 get 4 { 5 TestTabControl parent = base.Parent as TestTabControl; 6 if (parent != null) 7 { 8 return parent; 9 }10 for ...
阅读全文
摘要:protected virtual void OnSelectionChanged(SelectionChangedEventArgs args) { } 1 public TestTabControl() 2 { 3 KeyEventHandler handler = null; 4 SelectionChangedEventHandler handler2 = null; 5 this._updateIndex = true; 6 this.Sel...
阅读全文
摘要:在 WPF 中,TabControl 可以直接将 ItemsSource 绑定数据源,见将 TabControl 绑定到数据的示例http://msdn.microsoft.com/zh-cn/library/aa972130(VS.90).aspxCode highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->匪疑所思的是,TabControl.ItemTeplate 居然是用于 Header, ContentTemplate 才是用于 TabItem。但
阅读全文