using ivf_tl_Entity.Entity.Mark;
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
namespace ivf_tl_Manage.UserControls
{
///
/// MarkTreeItemsControlUserControl.xaml 的交互逻辑
///
public partial class MarkTreeItemsControlUserControl : UserControl
{
public event Func MarkOperEvent;
public MarkTreeItemsControlUserControl()
{
InitializeComponent();
}
public ObservableCollection DetailItemSouce
{
get { return (ObservableCollection)GetValue(DetailItemSouceProperty); }
set { SetValue(DetailItemSouceProperty, value); }
}
// Using a DependencyProperty as the backing store for DetailItemSouce. This enables animation, styling, binding, etc...
public static readonly DependencyProperty DetailItemSouceProperty =
DependencyProperty.Register("DetailItemSouce", typeof(ObservableCollection), typeof(MarkTreeItemsControlUserControl), new PropertyMetadata(null));
public Brush RectangleFill
{
get { return (Brush)GetValue(RectangleFillProperty); }
set { SetValue(RectangleFillProperty, value); }
}
// Using a DependencyProperty as the backing store for RectangleFill. This enables animation, styling, binding, etc...
public static readonly DependencyProperty RectangleFillProperty =
DependencyProperty.Register("RectangleFill", typeof(Brush), typeof(MarkTreeItemsControlUserControl), new PropertyMetadata(new SolidColorBrush((Color)ColorConverter.ConvertFromString("#EAEAEA"))));
private bool MarkTreeUserControl_MarkOperEvent(MarkEntity arg1, string arg2)
{
if (MarkOperEvent?.Invoke(arg1, arg2) == true) return true;
return false;
}
}
}