Invoking WinUI Controls

  • Thread starter Thread starter Pierre
  • Start date Start date
P

Pierre

I know that we should use the Invoke method to access the methods of a
windows control when we are on a different thread than the main UI thread.
But what about properties? They are internally methods for CLR but we can't
create a delegate for a property. Do we have to implement wrapper methods
for properties? Thanks for replies!
 
Hi Pierre,
You do can create delegate for the get or set accessor of a property. But
the easiest way is to create a wrapper method(s)
 
Back
Top