Files
BeWoPlaner/BeWo/View/Search/SupportConceptTreeSearchView.xaml.cs

41 lines
1.1 KiB
C#
Raw Normal View History

2016-06-27 01:45:38 +02:00
using System.Collections.Generic;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Media;
2018-01-16 17:11:02 +01:00
2016-06-27 01:45:38 +02:00
using BS.Shared.DataContracts;
namespace BeWo.View.Search
{
2018-01-16 17:11:02 +01:00
public partial class SupportConceptTreeSearchView
2016-06-27 01:45:38 +02:00
{
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
{
2018-01-16 17:11:02 +01:00
get => _List;
2016-06-27 01:45:38 +02:00
2018-01-16 17:11:02 +01:00
set
2016-06-27 01:45:38 +02:00
{
_List = value;
2018-01-16 17:11:02 +01:00
listbox_result.DataContext = _List;
2016-06-27 01:45:38 +02:00
}
}
public Brush ResultListBackground
{
2018-01-16 17:11:02 +01:00
get => (Brush) GetValue(ResultListBackgroundProperty);
2016-06-27 01:45:38 +02:00
2018-01-16 17:11:02 +01:00
set => SetValue(ResultListBackgroundProperty, value);
2016-06-27 01:45:38 +02:00
}
2018-01-16 17:11:02 +01:00
public TreeView ResultTree => listbox_result;
2016-06-27 01:45:38 +02:00
}
}