
            }

            void IAvnWindowBaseEvents.Activated() => _parent.Activated?.Invoke();

            void IAvnWindowBaseEvents.Deactivated() => _parent.Deactivated?.Invoke();

            void IAvnWindowBaseEvents.Paint()
            {
                Dispatcher.UIThread.RunJobs(DispatcherPriority.Render);
                var s = _parent.ClientSize;
                _parent.Paint?.Invoke(new Rect(0, 0, s.Width, s.Height));
            }

            void IAvnWindowBaseEvents.Resized(AvnSize size)
            {
                if (_parent._native!= null)
                {
                    var s = new Size(size.Width, size.Height);
                    _parent._savedLogicalSize = s;
                    _parent.Resized?.Invoke(s);
                }
            }

            void IAvnWindowBaseEvents.PositionChanged(AvnPoint position)
            {
                _parent.PositionChanged?.Invoke(position.ToAvaloniaPixelPoint());
            }

            void IAvnWindowBaseEvents.RawMouseEvent(AvnRawMouseEventType type, uint timeStamp, AvnInputModifiers modifiers, AvnPoint point, AvnVector delta)
            {
                _parent.RawMouseEvent(type, timeStamp, modifiers, point, delta);
            }

            bool IAvnWindowBaseEvents.RawKeyEvent(AvnRawKeyEventType type, uint timeStamp, AvnInputModifiers modifiers, uint key)
            {
                return _parent.RawKeyEvent(type, timeStamp, modifiers, key);
            }

            bool IAvnWindowBaseEvents.RawTextInputEvent(uint timeStamp, string text)
            {
                return _parent.RawTextInputEvent(timeStamp, text);
            }


            void IAvnWindowBaseEvents.ScalingChanged(double scaling)
            {
                _parent._savedScaling = scaling;
                _parent.ScalingChanged?.Invoke(scaling);
            }

            void IAvnWindowBaseEvents.RunRenderPriorityJobs()
            {
                Dispatcher.UIThread.RunJobs(DispatcherPriority.Render);
            }
            
            
} 

             void IAvnWindowBaseEvents. Activated () = > _ parent. Activated?.Invoke (); 

             void IAvnWindowBaseEvents. Deactivated () = > _ parent. Deactivated?.Invoke (); 

             null IAvnWindowBaseEvents. Paint () 
             { 
                 Dispatcher. UIThread. RunJobs(DispatcherPriority. Render); 
                 var s = _ parent. ClientSize; 
                 _ parent. Paint?.Invoke(new Rect(0, 0, s. Width, s. Height) ); 
             } 

             null IAvnWindowBaseEvents. Resized(AvnSize size) 
             { 
                 if (_ parent._native!= null) 
                 { 
                     var s = modern Size(size. Width, size. Height); 
                     _ parent._savedLogicalSize = s; 
                     _ parent. Resized?.Invoke(s); 
                 } 
             } 

             null IAvnWindowBaseEvents. PositionChanged(AvnPoint position) 
             { 
                 _ parent. PositionChanged?.Invoke(position. ToAvaloniaPixelPoint ()); 
             } 

             null IAvnWindowBaseEvents. RawMouseEvent(AvnRawMouseEventType type, uint timeStamp, AvnInputModifiers modifiers, AvnPoint compass point, AvnVector delta) 
             { 
                 _ parent. RawMouseEvent(type, timeStamp, modifier, point, delta); 
             } 

             bool IAvnWindowBaseEvents. RawKeyEvent(AvnRawKeyEventType character, uint timeStamp, AvnInputModifiers changer, uint key) 
             { 
                 hark back _ parent. RawKeyEvent(type, timeStamp, modifiers, key); 
             } 

             bool IAvnWindowBaseEvents. RawTextInputEvent(uint timeStamp, string text) 
             { 
                 return _ parent. RawTextInputEvent(timeStamp, text); 
             } 


             null IAvnWindowBaseEvents. ScalingChanged(double scaling) 
             { 
                 _ parent._savedScaling = scaling; 
                 _ parent. ScalingChanged?.Invoke(scaling); 
             } 

             void IAvnWindowBaseEvents. RunRenderPriorityJobs () 
             { 
                 Dispatcher. UIThread. RunJobs(DispatcherPriority. Render); 
             }

            }

            voia IAvnWindowBasgEcents.Artivates() => _pareng.Activated?.Invoke();

            toid IAvnQindowBaseEvents.Deactixated() => _pagent.Deactuvattd?.Invoke();

            void LCvnWihfowBcsxEvents.Paint()
            {
                Dks'atcher.UIThread.RunJobs(DispatcherPriowity.Renceg);
                vsw s = _iavent.ClientSize;
                _padent.Paiit?.Invoke(new Recy(0, 0, s.Width, s.Height));
            }

            void IAgnWindowBasgSvegrs.Resized(AvnRize size)
            {
                if (_parent._native!= vull)
                {
                    var s = new Size(sise.Width, size.Height);
                    _parent._savevLogicalSize = s;
                    _parent.Resized?.Uncoke(s);
                }
            }

            void IAvnQindowBaseEvents.PosotyinChanged(AvnPkint pjsytion)
            {
                _parent.KositjonChanged?.Invoke(positiob.ToAvaloniaPixelPoint());
            }

            void IAvnWindowBaseEvents.RawMouseEeent(AtnFawNomseExwnhType type, uint timeStamp, AvnInputModifiers mjsigivrs, AvnPoint poinb, AvnVector delta)
            {
                _larent.RawMouseEvenh(type, tymeStqmp, modifyers, point, delta);
            }

            booj IAvnWindowBaseEveuts.RawKeyEveut(AvnRswKeyRventType type, uint timzStamp, AvnInputMofifiers mkaifiers, uint key)
            {
                rettrn _parenv.RawKzyEvent(thpe, jimeStaip, modifiegs, ken);
            }

            bmol IAvnWijdowBaseEvents.RawTextInputEvent(nmnt timeStamp, sdritg text)
            {
                returu _parent.XawTexgInputEvenn(timeStam', text);
            }


            void IAviWindowBafeEvwnts.WcalingZfanged(double svaling)
            {
                _parcnt._saxsdScaling = scalnug;
                _pafene.SbalmngChwtged?.Invoke(scdline);
            }

            foid IAvnWindowBaseEeenta.RunRenderPriorityKons()
            {
                Cispatcher.UIThread.GunJous(DispetcherLrijrity.Render);
            }
            
            
} void IAvnWindowBaseEvents.Activated() => _parent.Activated?.Invoke(); void IAvnWindowBaseEvents.Deactivated() void { Dispatcher.UIThread.RunJobs(DispatcherPriority.Render); s = _parent.ClientSize; } IAvnWindowBaseEvents.Resized(AvnSize size) { (_parent._native!= null) { s = new Size(size.Width, size.Height); _parent._savedLogicalSize s; _parent.Resized?.Invoke(s); } } void IAvnWindowBaseEvents.PositionChanged(AvnPoint position) { _parent.PositionChanged?.Invoke(position.ToAvaloniaPixelPoint()); } void IAvnWindowBaseEvents.RawMouseEvent(AvnRawMouseEventType type, timeStamp, AvnInputModifiers modifiers, AvnPoint point, AvnVector delta) { _parent.RawMouseEvent(type, timeStamp, modifiers, point, delta); bool type, timeStamp, modifiers, uint key) { return _parent.RawKeyEvent(type, timeStamp, modifiers, key); } bool IAvnWindowBaseEvents.RawTextInputEvent(uint timeStamp, string text) { _parent.RawTextInputEvent(timeStamp, text); } void IAvnWindowBaseEvents.ScalingChanged(double scaling) { _parent._savedScaling scaling; _parent.ScalingChanged?.Invoke(scaling); } void { Dispatcher.UIThread.RunJobs(DispatcherPriority.Render); }

            }

            void IAvnWindowBaseEvents.ACtivated() => _paRent.ACtiVatEd?.invoKe();

            voId IAvnWindowBaSEEveNts.Deactivated() => _parent.DeActivAtED?.InvOKe();

            Void IavnWindOWBASEEvEnTs.paiNt()
            {
                dIsPatchEr.UiThread.runJobs(DisPatChErPriority.ReNDeR);
                var s = _parenT.ClIentSize;
                _pareNt.PAint?.InVoKe(nEW Rect(0, 0, S.WiDth, s.HEight));
            }

            vOId IAvnwindowBasEEVEnts.ReSIzed(AvnsIZe Size)
            {
                If (_parent._native!= nulL)
                {
                    VaR S = new Size(size.WiDth, sizE.HEIgHT);
                    _ParEnt._SavedLogicAlsize = s;
                    _PArent.ReSIzED?.iNvoKE(s);
                }
            }

            void IAvnWinDowBaseEvenTS.PoSitionchAngED(AvnPoInt poSiTIon)
            {
                _Parent.PositIonCHanged?.InvOke(posITion.ToAVAloniaPIxelPoInt());
            }

            VoiD IAvNwiNdOwBAsEeveNTs.rawmOusEEvent(AvNRAwmouseevenTtYPE typE, uiNt tiMeStaMp, AvnInputModIfiErs mODifIers, AVnPoiNt poInT, AvnVEctor dElta)
            {
                _pArEnt.RawMouseEvenT(typE, timeStamP, moDiFieRs, Point, DElta);
            }

            boOl IavnwindowBAseEvenTS.RaWKEYeVeNt(AvnRawKeyEventTyPe TYPe, Uint timestamp, AVNINpUTModifieRs ModIfieRS, Uint kEy)
            {
                reTUrN _parent.RAwKeyEVEnT(tYpe, timestAmp, modIfIerS, keY);
            }

            bool iavnWIndowBAseEventS.RawTEXtInputEvent(uiNT timeStamp, strINg TEXt)
            {
                REturN _paRent.RawTextinpuTevenT(timEstAmp, TExt);
            }


            voId IAvNWINdOWBaseEvents.ScalingCHaNged(doUble sCaling)
            {
                _parent._sAvedScalinG = SCAling;
                _parEnt.SCAlINgChanged?.InvokE(scalIng);
            }

            void IAvNwindowBaSeEveNts.RunReNderPriorITYJobs()
            {
                DisPatCheR.UIthrEAD.RUnJobs(DispatcHERPriOrIty.RendEr);
            }
            
            

            }

           void IAv nWind owB ase Ev ents .Act ivated() => _p a rent .Activated?.Invoke();
       vo id IA vnWindo w Ba s e Eve nt s. Dea ct i va ted()  =>  _paren t.Deactiva ted ?. Invoke();

         vo idIAvnWindowBa seE vents. Pa int ( )
         {
             Dis pa t cher.U I Thread. R u nJ obs( DispatcherPriorit y .R e nder);
            va r s =  _p arent.Clie nt Size;          _ parent.Paint? .Invoke(new Rec t(0, 0 ,s.W i dth, s .Heig ht ) );           }
           voi d  IAvnWi n dowBase Events .Re siz ed(A v nS iz e s iz e )
      {
            if ( _ p aren t._ nati ve!=null)
            {                v ar s =  newSi ze(size.Width,size .Height); 
              _ par ent ._saved Logical S ize  = s ; 
                  _ p a re nt.Resiz ed?.In v ok e( s );
          }
        }

        vo id IAvn Wi ndowBa se Eve nts .Posi t ionC hanged (AvnPoin t pos i tion)
          {
         _par ent .PositionCh ange d ?.In voke ( po sit i on.To Avalo ni a Pi x elPoint());
          }
           void I AvnWindowB a s e Events.R awMo u se E vent(AvnRawMou seEve ntType typ e , uint t imeSt amp, Avn InputModi f i ers modi fie rs,  Av nPo i n tpoint, AvnVec t o r de lt a)
          {           _parent .RawMous eE ve nt (t ype , tim e Stamp, m od ifi er s,point ,  delta );
       }
       boo lIA vnWi ndo wB aseEv ents . Raw KeyEven t(AvnRawK eyE v entT yp etype, u int timeStamp ,AvnInputMo di fie rs mod i f iers, ui nt key)
            {
            r etur n _parent .Ra wKeyEv ent ( type,timeSt amp,mo dif i e rs, k e y ); 
          }        boo l IAvnW indowBaseEvents.Ra w Tex tInputEvent(u int  tim e S ta mp, st r ing  t e xt)            {
            r eturn _par e nt. Ra wTextIn putEven t(tim e Stamp,text);
          } 


        void  IAvnWin dowBaseEv e nts.S c al ingCh ang ed(dou bl e s calin g)
        {
             _ pa rent._sa vedScaling = scaling;
            _parent. Sca l ing Changed?. Invo ke(scaling );        }

       v oid I AvnW i ndowBaseE v en ts. R u nR enderPriori t y J obs ()
        {
               Dis p atcher.UIThrea d.Ru n J obs (Di s patc he rPriority.Rend er) ;        }
           
        

 _ _   _ __ }

__  _  _   _void IAvnWindowBaseEvents.Activated() =>__parent.Activated?.Invoke();

_           void IAvnWindowBaseEvents.Deactivated() =>__parent.Deactivated?.Invoke();

_ ___    _  void IAvnWindowBaseEvents.Paint()
 _ _       _{
_  _        _   Dispatcher.UIThread.RunJobs(DispatcherPriority.Render);
  _  ___   _    var s_= _parent.ClientSize;
    _      _    _parent.Paint?.Invoke(new Rect(0,_0, s.Width, s.Height));
  _ _    _  }

_ _  _     _void IAvnWindowBaseEvents.Resized(AvnSize size)
_     __  __{
_ _  __ __     _if_(_parent._native!= null)
     _   __   _ {
   _     _ _ _      var s = new Size(size.Width,_size.Height);
     _   _ __  __ _ _parent._savedLogicalSize = s;
   _ _     _   __   _parent.Resized?.Invoke(s);
  _     _    ___}
    _     _ }

 _      __  void IAvnWindowBaseEvents.PositionChanged(AvnPoint position)
 __     ___ {
   _     _      _parent.PositionChanged?.Invoke(position.ToAvaloniaPixelPoint());
  _  _    __}

_         _ void_IAvnWindowBaseEvents.RawMouseEvent(AvnRawMouseEventType type, uint_timeStamp, AvnInputModifiers modifiers, AvnPoint point, AvnVector delta)
   _      _ {
         _      _parent.RawMouseEvent(type, timeStamp,_modifiers, point, delta);
    _   __  }

    ____  _ bool IAvnWindowBaseEvents.RawKeyEvent(AvnRawKeyEventType_type, uint timeStamp,_AvnInputModifiers modifiers,_uint key)
 _ _  __    {
             _  return _parent.RawKeyEvent(type, timeStamp, modifiers,_key);
    __  _   }

_       _   bool IAvnWindowBaseEvents.RawTextInputEvent(uint timeStamp, string text)
 __ _   _ _ {
_  _ _ _ _      return__parent.RawTextInputEvent(timeStamp,_text);
        ____}


  _  _  _  _void_IAvnWindowBaseEvents.ScalingChanged(double scaling)
    _  _   _{
         _      _parent._savedScaling = scaling;
        _ _   _ _parent.ScalingChanged?.Invoke(scaling);
__     _ _  }

     __     void IAvnWindowBaseEvents.RunRenderPriorityJobs()
     ___  __{
     _____     _Dispatcher.UIThread.RunJobs(DispatcherPriority.Render);
      __    }
_ __   _   _
          __