Files
BeWoPlaner/BeWo/View/Search/SupportConceptTreeSearchView.xaml.cs
2018-01-16 17:11:02 +01:00

41 lines
1.1 KiB
C#

using System.Collections.Generic;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Media;
using BS.Shared.DataContracts;
namespace BeWo.View.Search
{
public partial class SupportConceptTreeSearchView
{
public static readonly DependencyProperty ResultListBackgroundProperty = DependencyProperty.Register("ResultListBackground", typeof (Brush), typeof (SupportConceptTreeSearchView), new UIPropertyMetadata(Brushes.White, (s, e) => ((SupportConceptTreeSearchView) s).listbox_result.Background = e.NewValue as Brush));
private List<SupportConceptTreeNodeDC> _List;
public SupportConceptTreeSearchView()
{
InitializeComponent();
}
public List<SupportConceptTreeNodeDC> List
{
get => _List;
set
{
_List = value;
listbox_result.DataContext = _List;
}
}
public Brush ResultListBackground
{
get => (Brush) GetValue(ResultListBackgroundProperty);
set => SetValue(ResultListBackgroundProperty, value);
}
public TreeView ResultTree => listbox_result;
}
}