示例#1
0
 internal Accessible(object nativeParent)
 {
     if (nativeParent == null)
     {
         throw new ArgumentNullException(nameof(nativeParent));
     }
     parentNativeObject = nativeParent;
     backendHost        = new AccessibleBackendHost();
     backendHost.Parent = this;
 }
示例#2
0
 internal Accessible(Popover parent)
 {
     if (parent == null)
     {
         throw new ArgumentNullException(nameof(parent));
     }
     parentComponent    = parent;
     backendHost        = new AccessibleBackendHost();
     backendHost.Parent = this;
 }
示例#3
0
 Accessible(XwtComponent parent)
 {
     if (parent == null)
     {
         throw new ArgumentNullException(nameof(parent));
     }
     parentComponent    = parent;
     backendHost        = new AccessibleBackendHost();
     backendHost.Parent = this;
     if (parent.GetBackend() is XwtWidgetBackend)
     {
         backendHost.SetCustomBackend(new XwtAccessibleBackend());
     }
 }