Welcome Guest! To enable all features, please Login or Register.

Notification

Icon
Error

Options
View
Last Go to last post Unread Go to first unread post
#1 Posted : Thursday, February 16, 2012 12:06:45 PM(UTC)

cwilson  
cwilson

Groups: Registered
Posts: 4


Lead 17 WPF RasterImageViewer: The default function when using InteractiveMode.Magnify is mouse down shows the magnify and mouse up hides the magnify. Is it possible to leave the magnifiy glass in place, freeze, based on lets say a double click event or some key combination? Basically so the user can type with the magnify still showing.
 

Try the latest version of LEADTOOLS for free for 60 days by downloading the evaluation: https://www.leadtools.com/downloads

Wanna join the discussion? Login to your LEADTOOLS Support accountor Register a new forum account.

#2 Posted : Thursday, February 16, 2012 9:14:38 PM(UTC)

cwilson  
cwilson

Groups: Registered
Posts: 4


Looks like perhaps this is just a function not supported in the WPF rasterimageviewer, the winforms version has a property AutoInteractiveMagnifyGlass that performs this function.
 
#3 Posted : Friday, February 17, 2012 4:07:34 AM(UTC)

Danny H  
Guest

Groups: Guests
Posts: 3,022

Was thanked: 2 time(s) in 2 post(s)

You're correct; WPF by default does not have such functionality. However, you could customize the behavior slightly using the overrides for OnInteractiveMagnifyGlass.

This does require that you inherit from our control, but it does give us an option. Basically, you want to set the Status to begin and end when YOU want them to. But this will have to be based on input you can gather in conjunction with these overrides.

OnInteractiveMagnifyGlass:
http://www.leadtools.com/help/leadtools/v175/dh/wl/leadtools.windows.controls~leadtools.windows.controls.imageviewer~oninteractivemagnifyglass.html

LineInteractiveEventArgs:
http://www.leadtools.com/help/leadtools/v175/dh/wl/leadtools.windows.controls~leadtools.windows.controls.lineinteractiveeventargs.html
 
#4 Posted : Wednesday, February 29, 2012 5:35:19 AM(UTC)

cwilson  
cwilson

Groups: Registered
Posts: 4


So whats the trick for inheriting the rasterimageviewer? Whenever I try it blows an error at runtime saying the assembly has been tampered with

{"Assembly Keying.Controls, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null has been tamerpered with!"}

Source - Leadtools.Windows.Controls

StackTrace - at Leadtools.Windows.Controls.ImageViewer..ctor()
at Leadtools.Windows.Controls.RasterImageViewer..ctor()
at Keying.Controls.ImageControlView..ctor() in C:\IM4Sight2010\Development\WorkInProgress\Product\Solutions\Keying\Keying.Controls\Views\ImageControlView.xaml.cs:line 23

Line 23 is just the constructor, all I’m doing is inherit the RasterImageViewer in a user control don’t even have any functionality defined yet. I think perhaps its something to do with assembly being signed so wondering what the recommendation is for avoiding this error.
 
#5 Posted : Wednesday, February 29, 2012 8:42:17 AM(UTC)

Danny H  
Guest

Groups: Guests
Posts: 3,022

Was thanked: 2 time(s) in 2 post(s)

This does not appear to be a LEADTOOLS related issue. This seems to be related to your DLL being signed.

When an assembly is signed if it is modified the PublicKeyToken is no longer valid and the error above would be thrown. The error appears to be pointing at the Keying.Controls assembly.
 
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Powered by YAF.NET | YAF.NET © 2003-2024, Yet Another Forum.NET
This page was generated in 0.080 seconds.