コード例 #1
0
		protected HexQuickInfoPresenterBase(HexQuickInfoSession session) {
			if (session == null)
				throw new ArgumentNullException(nameof(session));
			this.session = session;
			control = new HexQuickInfoPresenterControl { DataContext = this };
			session.Dismissed += Session_Dismissed;
		}
コード例 #2
0
ファイル: HexQuickInfoPresenter.cs プロジェクト: 0xd4d/dnSpy
		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,
			};
		}
コード例 #3
0
		public HexSpaceReservationQuickInfoPresenter(HexQuickInfoSession session)
			: base(session) {
			SetPresentationSpan(session.ApplicableToSpan);
			session.ApplicableToSpanChanged += Session_ApplicableToSpanChanged;
		}
コード例 #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);
コード例 #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);