简体   繁体   English

在类型“TextBox”中找不到属性“IsHandWritingViewEnabled”

[英]The property 'IsHandWritingViewEnabled' was not found in type 'TextBox'

According to the doc , the WPF TextBox has a property named "IsHandwritingViewEnabled".根据文档,WPF TextBox 有一个名为“IsHandwritingViewEnabled”的属性。

I want to use the WPF TextBox in a container in a VB6 app.我想在 VB6 应用程序的容器中使用 WPF 文本框。

To do that, I create a new project with type "WPF Browser User Control Library (.NET Framework):为此,我创建了一个类型为“WPF Browser User Control Library (.NET Framework)”的新项目:

在此处输入图像描述

It automatically adds a UserControl.它会自动添加一个 UserControl。

I drag a WPF TextBox onto this UserControl:我将一个 WPF TextBox 拖到这个 UserControl 上:

在此处输入图像描述

To test if the property can be accessed, I add为了测试是否可以访问该属性,我添加了

IsHandwritingViewEnabled="True" 

to the textbox.到文本框。 However, this does not work.但是,这不起作用。 It says "The property 'IsHandWritingViewEnabled' was not found in type 'TextBox'.它说“在类型‘TextBox’中找不到属性‘IsHandWritingViewEnabled’。

在此处输入图像描述

What am I doing wrong?我究竟做错了什么?

Thank you!谢谢!

The error is because TextBox in wpf does not have the 'IsHandWritingViewEnabled' property.该错误是因为 wpf 中的TextBox没有 'IsHandWritingViewEnabled' 属性。 'IsHandWritingViewEnabled' property is for UWP TextBox. “IsHandWritingViewEnabled”属性适用于 UWP 文本框。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 在“文本框”类型中找不到可附加属性“ IsEnabled” - The attachable property 'IsEnabled' was not found in type 'TextBox' 在“文本框”类型中找不到“ PreviewKeyUp” - 'PreviewKeyUp' was not found in type 'TextBox' WPF TextBox 中的相同属性为 HTML 中的“输入”“键入” - Identical property in WPF TextBox to “type” for “input” in HTML XAML:在类型VisualStateManager中找不到可附加属性VisualStateGroups - XAML:The attachable property VisualStateGroups was not found in type VisualStateManager mahapps:在“ MetroWindow”类型中找不到可附加属性“ Flyouts” - mahapps:The attachable property 'Flyouts' was not found in type 'MetroWindow' 在类型“GroupBox”中找不到属性“Click”。 在网核 3.1 - The Property 'Click' was not found in Type 'GroupBox'. in netcore 3.1 如何将文本框的borderBrush属性绑定到ViewModel中的属性,类型转换错误 - How to bind the borderBrush property of a textbox to a property in viewmodel, type conversion error 在类型“ ResourceDictionary”中找不到可连接属性“ MergedDictionaries” - The attachable property 'MergedDictionaries' was not found in type 'ResourceDictionary' 在“样式”wpf 类型中找不到可附加属性“触发器” - the attachable property 'triggers' was not found in type 'style' wpf WPF密码绑定类型中找不到附加属性 - Attachable property not found in type with WPF Password Binding
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM