| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657 |
- 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
- {
- /// <summary>
- /// MarkTreeItemsControlUserControl.xaml 的交互逻辑
- /// </summary>
- public partial class MarkTreeItemsControlUserControl : UserControl
- {
- public event Func<MarkEntity, string, bool> MarkOperEvent;
- public MarkTreeItemsControlUserControl()
- {
- InitializeComponent();
- }
- public ObservableCollection<MarkEntity> DetailItemSouce
- {
- get { return (ObservableCollection<MarkEntity>)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<MarkEntity>), 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;
- }
- }
- }
|