tag:blogger.com,1999:blog-6822536077160579260.post712138317120270236..comments2023-06-05T14:25:52.227+01:00Comments on Sound Code: InvokeRequired for WPFAnonymoushttp://www.blogger.com/profile/17900587357903273800noreply@blogger.comBlogger5125tag:blogger.com,1999:blog-6822536077160579260.post-40350127866863843782012-01-04T15:30:03.985+00:002012-01-04T15:30:03.985+00:00Just to expand on what Steve Westbrook said, Check...Just to expand on what Steve Westbrook said, CheckAccess works but it doesn't show up on intellisense because the EditorBrowsable attribute for some reason has been set to never. See http://social.msdn.microsoft.com/forums/en-US/wpf/thread/360540eb-d756-4434-86f9-a3449f05eb55Alan Macdonaldhttps://www.blogger.com/profile/10758187297770358183noreply@blogger.comtag:blogger.com,1999:blog-6822536077160579260.post-63531417084569297702010-09-01T11:59:53.598+01:002010-09-01T11:59:53.598+01:00Thanks for this, it helped.Thanks for this, it helped.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-6822536077160579260.post-66498677962354057382010-07-12T14:33:48.869+01:002010-07-12T14:33:48.869+01:00Hi Mark,
You can actually use Dispatcher.CheckAcc...Hi Mark,<br /><br />You can actually use Dispatcher.CheckAccess() as a direct equivalent of InvokeRequired.Steve Westbrooknoreply@blogger.comtag:blogger.com,1999:blog-6822536077160579260.post-79375071378136221112008-08-26T11:41:00.000+01:002008-08-26T11:41:00.000+01:00I know you wrote this ages ago, but you don't actu...I know you wrote this ages ago, but you don't actually need to create an object array when the method signature specifies <I>params object[]</I>. You can just pass a list of objects. I have no idea why they felt the need to create two method definitions when they could have just defined <B>BeginInvoke(DispatcherPriority, Delegate, params object[])</B>, but who am I to argue?<BR/><BR/>See <A HREF="http://msdn.microsoft.com/en-us/library/w5zay9db.aspx" REL="nofollow">http://msdn.microsoft.com/en-us/library/w5zay9db.aspx</A> for details.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-6822536077160579260.post-8702064655129497652008-04-24T09:03:00.000+01:002008-04-24T09:03:00.000+01:00Hi Mark,Thank you very much for this information. ...Hi Mark,<BR/><BR/>Thank you very much for this information. I'm a beginning C# programmer and I'm trying to get some sensors (they communicate through serial port) to trigger some cool graphic animations in wpf.<BR/><BR/>The first thing I wanted to do was to get the sensordata in a constantly updating textbox in a xaml form. I couldn't understand why the invoke method didn't work as it did in a normal form, but know I do!Lieven Maeshttps://www.blogger.com/profile/17157749087614079164noreply@blogger.com