public WpfTreeView() { InitializeComponent(); _populateLogic.TreeView = TreeView; _sketchPopulateLogic = new SketchBasedTree(); _imageBitmapCache = new ImageBitmapCache(); searchControl.TokensChanged += UpdateFilter; var qosLock = QosFactory.Instance.Create(QosNames.TreeViewPopulate, 120, "Populating Tree View took too long! A way to improve performance is to disable icon displaying. Do you want to disable them?"); qosLock.TestPayload += TreeViewPopulateTestPayload; qosLock.Payload += TreeViewPopulatePayload; IsVisibleChanged += OnIsVisibleChanged; }
private void UserInterfaceSetup() { _attachedView.GetActiveView().Cursor = Cursors.IBeam; //_helpView = WorkItem.Services.Get<IContextService>().HelpWindow; if (_commandLineView == null) { throw new ArgumentException("Command line control should exist"); } _commandLineView.OnTextEnter += HandleChangeCommand; _commandLineView.OnTextChanged += HandleRealTimeText; _imageCache = new ImageBitmapCache(); _treeView.SetShapesCapabilities(_defaultShapeConcepts.Capabilities); _attachedView.ContextManager.ImageBitmapCache = _imageCache; // Add a listener to the SelectedLabel event sfrom the ITreeView _treeView.SelectedLabel += TreeViewSelectedLabel; // Add a listener to the MouseLeave event _treeView.MouseLeaveTree += MouseLeaveTree; }
public void SetShapesCapabilities(CapabilitiesCollection capabilitiesCollection, ImageBitmapCache imageBitmapCache) { _capabilties = capabilitiesCollection; _imageBitmapCache = imageBitmapCache; }