public Tree(TreeStyle style) { YSpacing = 4; IconSpacing = 2; MultiSelect = true; ToggleSelect = true; Style = style; _selectionChanger = new SelectionChanger<TreeNode>() { CanSelectMultiple = true, SelectionChangeHandler = SelectionChangeHandler, }; }
public Tree(TreeStyle style) { YSpacing = 4; IconSpacing = 2; MultiSelect = true; ToggleSelect = true; Style = style; _selectionChanger = new SelectionChanger <TreeNode>() { CanSelectMultiple = true, SelectionChangeHandler = SelectionChangeHandler, }; }
/// <summary> /// 构造方法 /// </summary> public TabControl() { DefaultStyleKey = typeof(TabControl); Items = new TabItemsList(); _selector = new SelectionChanger(this); }
/// <summary> /// Constructor. /// </summary> /// <param name="optimizeAndEditPage">Parent page.</param> /// <param name="timeView">Time view.</param> public SelectionManager(OptimizeAndEditPage optimizeAndEditPage) { _optimizeAndEditPage = optimizeAndEditPage; _timeView = optimizeAndEditPage.TimeView; _mapView = optimizeAndEditPage.MapView; _ordersView = optimizeAndEditPage.OrdersView; _routesView = optimizeAndEditPage.RoutesView; // Set callback for checking selection possibility. _mapView.mapCtrl.CanSelectCallback = _CanSelect; _CreateCollectionsInMultiCollectionBinding(); _InitEventHandlers(); _selectionChanger = new SelectionChanger(_optimizeAndEditPage); }