Hello,
SmartQuotesType.No
can be set for UIKit.UITextView.SmartQuotesType Property, UIKit.UISearchBar.SmartQuotesType Property, UIKit.UITextField.SmartQuotesType Property and UIKit.UITextDocumentProxy.SmartQuotesType Property, you could try to use handler to find the native control then set this property, refer to the following code:
(There is no handler for UITextDocumentProxy
in MAUI. If you use UITextDocumentProxy
, you can set SmartQuotesType.No
for it)
#if MACCATALYST
Microsoft.Maui.Handlers.EntryHandler.Mapper.AppendToMapping("custom", (handler,view) => {
handler.PlatformView.SmartDashesType = UIKit.UITextSmartDashesType.No;
});
Microsoft.Maui.Handlers.EditorHandler.Mapper.AppendToMapping("custom", (handler, view) => {
handler.PlatformView.SmartDashesType = UIKit.UITextSmartDashesType.No;
});
Microsoft.Maui.Handlers.SearchBarHandler.Mapper.AppendToMapping("custom", (handler, view) => {
handler.PlatformView.SmartDashesType = UIKit.UITextSmartDashesType.No;
});
#endif
Best Regards,
Wenyan Zhang
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentationto enable e-mail notifications if you want to receive the related email notification for this thread.