32 lines
704 B
C#
32 lines
704 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Windows;
|
|
using System.Windows.Controls;
|
|
using Monolith.Models;
|
|
|
|
namespace Monolith
|
|
{
|
|
public class MonolithTemplateSelector : DataTemplateSelector
|
|
{
|
|
public MonolithTemplateSelector()
|
|
{
|
|
|
|
}
|
|
|
|
public DataTemplate HostedProcessViewTemplate
|
|
{
|
|
get;
|
|
set;
|
|
}
|
|
|
|
public override DataTemplate SelectTemplate(object item, DependencyObject container)
|
|
{
|
|
if (item is HostedProcessModel)
|
|
return HostedProcessViewTemplate;
|
|
|
|
return base.SelectTemplate(item, container);
|
|
}
|
|
}
|
|
}
|