public override int CompareTo(ResourceVirtualizingTreeItem treeItem)
        {
            VirtualizingResourceItem <T> virtualizingResourceItem = treeItem as VirtualizingResourceItem <T>;

            if (virtualizingResourceItem != null)
            {
                return(this.resourceModel.CompareTo((object)virtualizingResourceItem.resourceModel));
            }
            return(-1);
        }
        public void OnResourceSelected(object parameter)
        {
            VirtualizingResourceItem <SystemResourceModel> virtualizingResourceItem1 = parameter as VirtualizingResourceItem <SystemResourceModel>;
            VirtualizingResourceItem <LocalResourceModel>  virtualizingResourceItem2 = parameter as VirtualizingResourceItem <LocalResourceModel>;
            SceneNodeProperty sceneNodeProperty = this.editingProperty;

            if (sceneNodeProperty == null)
            {
                return;
            }
            if (virtualizingResourceItem1 != null)
            {
                sceneNodeProperty.DoSetToSystemResource(virtualizingResourceItem1.Model.PropertyModel);
            }
            else
            {
                if (virtualizingResourceItem2 == null)
                {
                    return;
                }
                sceneNodeProperty.DoSetToLocalResource(virtualizingResourceItem2.Model.PropertyModel);
            }
        }