none
WPF实现IP输入框 RRS feed

答案

  • Hi skczjun,

    在WPF中,你可以通过继承已有的TextBox控件,然后去自定义实现IP输入框的功能,我给你找了几个例子,你可以参考一下:

    A C# IP Address Control

    IP-Address TextBox

    Textbox validation for IP Address in WPF

    或者如果你不想自定义TextBox控件,你也可以考虑一些开源的控件,你可以用Bing去搜索“WPF IP Address Control”。

    Best Regards,

    Xavier Eoro


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    2015年7月31日 5:41
    版主