24 lines
608 B
C#
24 lines
608 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Windows;
|
|
using System.Windows.Controls;
|
|
|
|
using ConfigurePlus.Models;
|
|
|
|
namespace ConfigurePlus
|
|
{
|
|
class ConfigureMoreSelector : DataTemplateSelector
|
|
{
|
|
public DataTemplate MainViewTemplate { get; set; }
|
|
|
|
public override System.Windows.DataTemplate SelectTemplate(object item, System.Windows.DependencyObject container)
|
|
{
|
|
if (item is MainViewModel)
|
|
return MainViewTemplate;
|
|
|
|
return base.SelectTemplate(item, container);
|
|
}
|
|
}
|
|
}
|