protected HexQuickInfoPresenterBase(HexQuickInfoSession session) {
			if (session == null)
				throw new ArgumentNullException(nameof(session));
			this.session = session;
			control = new HexQuickInfoPresenterControl { DataContext = this };
			session.Dismissed += Session_Dismissed;
		}
Exemplo n.º 2
0
		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;
		}
Exemplo n.º 4
0
 /// <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);
Exemplo n.º 5
0
		/// <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);