| 1234567891011121314151617181920 |
- using System;
- using System.Text;
- using Avalonia.Platform;
- using MonoMac.AppKit;
- using MonoMac.WebKit;
- namespace IntegrationTestApp.Embedding;
- internal class MacOSTextBoxFactory : INativeControlFactory
- {
- public IPlatformHandle CreateControl(IPlatformHandle parent, Func<IPlatformHandle> createDefault)
- {
- MacHelper.EnsureInitialized();
- var textView = new NSTextView();
- textView.TextStorage.Append(new("Native text box"));
- return new MacOSViewHandle(textView);
- }
- }
|