当我将新创建的spinbox控件添加到PrinterExtensionSample时,它无法显示打印机扩展名 [英] when I add newly created spinbox control to PrinterExtensionSample, it fails to display the printer extension

查看:109
本文介绍了当我将新创建的spinbox控件添加到PrinterExtensionSample时,它无法显示打印机扩展名的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想将spinbox控件添加到PrinterExtensionSample。

PrinterExtensionSample:
http://code.msdn.microsoft.com/Printer-extension-sample-0e3e1562

I want to add the spinbox control to PrinterExtensionSample.
PrinterExtensionSample : http://code.msdn.microsoft.com/Printer-extension-sample-0e3e1562

WPF没有旋转控制器。

所以我做了一个NumericCountBox控件。

WPF doesn't have a spinbox control.
So I made a NumericCountBox control.

我可以将控件用于新创建的框。

但我不能使用PrinterExtensionSample的控件( http://code.msdn.microsoft.com/Printer-extension-sample-0e3e1562 )。

I can use the control for newly created boxes.
But I can't use the control for PrinterExtensionSample(http://code.msdn.microsoft.com/Printer-extension-sample-0e3e1562).

我通过以下方式将控件实现到PrinterExtensionSample(PrintPreferenceWindow.xaml)。

I implemented the control to PrinterExtensionSample (PrintPreferenceWindow.xaml) by the following way.

1。添加'NumericCountControlLibrary'参考。

1. Add the 'NumericCountControlLibrary' reference.

2。将'xmlns:test =" clr-namespace:NumericControlLibrary; assembly = NumericCountControlLibrary"'添加到xaml的第一个窗口选项卡。

2. Add 'xmlns:test="clr-namespace:NumericControlLibrary;assembly=NumericCountControlLibrary"' to window tab at the first of the xaml.

3。添加名为'abcd'的新TabItem。

3. Add the new TabItem named 'abcd'.

4。添加< test:NumericCountBox Height =" 50"宽度= QUOT; 100" />在'abcd'选项卡上。

4. Add <test:NumericCountBox Height="50" Width="100"/> on the 'abcd' tab.

然后编译PrinterExtensionSample,安装,然后显示打印首选项。

Then compile the PrinterExtensionSample, install,and start by displaying the Printing Preference.

通常我们可以看到PrinterExntensionSample屏幕,但我们看不到屏幕。

Normally we can see the PrinterExntensionSample screen, but we can't see the screen.

请确保通过使用已实施的程序重现我提到的。

Please do make sure that reproduce I mentioned by using implemented program.

请教我我该怎么办呢。

PrinterExtensionSample和spinbox控制程序是
here

PrinterExtensionSample and spinbox control program is here.

推荐答案

我试着让其他人帮助你,请等一段时间。

I try to get other people help you, please wait some time.

谢谢。


这篇关于当我将新创建的spinbox控件添加到PrinterExtensionSample时,它无法显示打印机扩展名的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆