protected HexQuickInfoPresenterBase(HexQuickInfoSession session) { if (session == null) throw new ArgumentNullException(nameof(session)); this.session = session; control = new HexQuickInfoPresenterControl { DataContext = this }; session.Dismissed += Session_Dismissed; }
public HexQuickInfoPresenter(HexQuickInfoSession session) : base(session) { wpfHexView = session.HexView as WpfHexView; Debug.Assert(wpfHexView != null); popup = new Popup { PlacementTarget = wpfHexView?.VisualElement, Placement = PlacementMode.Relative, Visibility = Visibility.Collapsed, IsOpen = false, AllowsTransparency = true, UseLayoutRounding = true, SnapsToDevicePixels = true, }; }
public HexSpaceReservationQuickInfoPresenter(HexQuickInfoSession session) : base(session) { SetPresentationSpan(session.ApplicableToSpan); session.ApplicableToSpanChanged += Session_ApplicableToSpanChanged; }
/// <summary> /// Augments the quick info session /// </summary> /// <param name="session">Session</param> /// <param name="quickInfoContent">Updated with new content</param> /// <param name="applicableToSpan">Updated with applicable-to span or the default value if nothing was added to <paramref name="quickInfoContent"/></param> public abstract void AugmentQuickInfoSession(HexQuickInfoSession session, IList <object> quickInfoContent, out HexBufferSpanSelection applicableToSpan);
/// <summary> /// Augments the quick info session /// </summary> /// <param name="session">Session</param> /// <param name="quickInfoContent">Updated with new content</param> /// <param name="applicableToSpan">Updated with applicable-to span or the default value if nothing was added to <paramref name="quickInfoContent"/></param> public abstract void AugmentQuickInfoSession(HexQuickInfoSession session, IList<object> quickInfoContent, out HexBufferSpanSelection applicableToSpan);