markus / KCOM / Assets / HeaderTemplateSelector.cs @ b7645ccc
이력 | 보기 | 이력해설 | 다운로드 (719 Bytes)
1 |
using System; |
---|---|
2 |
using System.Collections.Generic; |
3 |
using System.Linq; |
4 |
using System.Text; |
5 |
using System.Threading.Tasks; |
6 |
using System.Windows; |
7 |
using System.Windows.Controls; |
8 |
|
9 |
namespace KCOM.Assets |
10 |
{ |
11 |
public class HeaderTemplateSelector : DataTemplateSelector |
12 |
{ |
13 |
//public override DataTemplate SelectTemplate(object item, DependencyObject container) |
14 |
//{ |
15 |
// //item is null |
16 |
// //if (item is Window1.Test) |
17 |
// //{ |
18 |
// // return App.Current.MainWindow.FindResource("_DataTemplate") as DataTemplate; |
19 |
// //} |
20 |
// //else |
21 |
// //{ |
22 |
// // return base.SelectTemplate(item, container); |
23 |
// //} |
24 |
//} |
25 |
} |
26 |
} |