none
InkPresenter的应用问题 RRS feed

答案

  • 你好,

    >>可是我还不知道InkPresenter控件

    建议您仔细阅读文档:

    #InkPresenter 类
    http://msdn.microsoft.com/zh-cn/library/system.windows.controls.inkpresenter.aspx

    >>请问该WPF应用程序中的"清空“按钮与"退出"按钮的代码是?

    清空的话,可以使用 InkPresenter.Strokes.Clear()方法去清空画笔。
    WPF应用中的退出可使用 Application.Current.Shutdown() 方法。

    Private Sub btnClear_Click(sender As Object, e As RoutedEventArgs) Handles btnClear.Click
            inkPresenter1.Strokes.Clear()
    End Sub
    
    Private Sub btnExit_Click(sender As Object, e As RoutedEventArgs) Handles btnExit.Click
            Application.Current.Shutdown()
    End Sub


    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.

    2014年7月14日 2:14
    版主