Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Dispatcher hidden from IntelliSense in VS2017

I've just started using VS2017 and noticed that in WPF the Dispatcher object no longer shows in IntelliSense when editing inside a window.

Looking at the definition I can see:

<EditorBrowsable(EditorBrowsableState.Advanced)>
Public ReadOnly Property Dispatcher As Dispatcher

However the option to hide this is not available for Visual Basic:

enter image description here

Now it's quite possible this is a bug in VS2017 but in case it's not any ideas?

like image 805
apc Avatar asked Oct 17 '22 15:10

apc


1 Answers

this will display TheDispatcher function in IntelliSense:

<System.Runtime.CompilerServices.Extension>
Public Function TheDispatcher(dispatcherObject As DispatcherObject) As Dispatcher
    Return dispatcherObject.Dispatcher
End Function
like image 163
google dev Avatar answered Oct 21 '22 00:10

google dev