How to use NUrlLinkAttribute to open in a new window


Author
Message
C Kro
C Kro
Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)
Group: Forum Members
Posts: 2, Visits: 1

I am unable to open a URL in a new window even though I am setting the OpenInNewWindow property to true. The URL always open in the same window.

I am using the following code:

NTooltipAttribute tooltipAttribute = new NTooltipAttribute("Test Tooltip", true);

NUrlLinkAttribute redirectAttribute = new NUrlLinkAttribute(company.Url, true); // Set to true to open in new window.

NCursorAttribute cursorAttribute = new NCursorAttribute(CursorType.Hand);

NInteractivityStyle style = new NInteractivityStyle(true);

style.InteractivityAttributes.Add(tooltipAttribute);

style.InteractivityAttributes.Add(redirectAttribute);

style.InteractivityAttributes.Add(cursorAttribute);

shape.Style.InteractivityStyle = style;

NDrawingView1.Document.ActiveLayer.AddChild(shape);


GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...





Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search