private void initRealSizeInkCanvas(double mmWidth, double mmHeight) { RealScreenSizeCalculator calc = new RealScreenSizeCalculator(); int width = (int)calc.convertToPixels(mmWidth); int height = (int)calc.convertToPixels(mmHeight); inkCanvasHolder.Height = height; inkCanvasHolder.Width = width; guideLine.X1 = 0.05 * width; guideLine.X2 = 0.95 * width; guideLine.Y1 = guideLine.Y2 = 0.7 * height; }
private void initRealSizeInkCanvas(double mmWidth, double mmHeight) { RealScreenSizeCalculator calc = new RealScreenSizeCalculator(); int width = (int)calc.convertToPixels(mmWidth); int height = (int)calc.convertToPixels(mmHeight); inkCanvasHolder.Height = height; inkCanvasHolder.Width = width; inkCanvasHolder.MinWidth = width; StackPanel1.MinWidth = width + height + 10; VerifyButton.Height = ClearButton.Height = height / 2 - 1; VerifyButton.Width = ClearButton.Width = height; guideLine.X1 = 0.05 * width; guideLine.X2 = 0.95 * width; guideLine.Y1 = guideLine.Y2 = 0.7 * height; }