VintaSoft Annotation .NET Plug-in Discussions
Questions, comments and suggestions concerning VintaSoft Annotation .NET Plug-in.
Board index < VintaSoft Imaging < VintaSoft Annotation .NET Plug-in Discussions
public static Size GetClientSize(WpfImageViewer viewer)
{
double w = viewer.ActualWidth;
double h = viewer.ActualHeight;
if (viewer.ComputedHorizontalScrollBarVisibility == Visibility.Visible)
w -= SystemParameters.VerticalScrollBarWidth;
if (viewer.ComputedVerticalScrollBarVisibility == Visibility.Visible)
h -= SystemParameters.HorizontalScrollBarHeight;
return new Size(Math.Max(0, w), Math.Max(0, h));
}
Best regards, Alexander