示例#1
0
        /// <inheritdoc />
        public override void OnTooltipShown(Tooltip tooltip)
        {
            base.OnTooltipShown(tooltip);

            // Inject the hook control for the double-click event (if user double-clicks on tooltip over the asset item it will open that item - helps on small screens)
            var hook = tooltip.GetChild <TooltipDoubleClickHook>();

            if (hook == null)
            {
                hook = tooltip.AddChild <TooltipDoubleClickHook>();
            }
            hook.Item = this;
        }