I am developing a Windows Phone App which needs draw a lot of polygons and polylines in runtime.
I have searched the google and stackoverflow found that Dispatcher.BeginInovoke() can’t satisfy my needs. Because I must create the DependencyObjects such as Polygon and Polyline in my non-UI thread. Can you help me?
Thanks in advance.
if you create ui element in your non-ui thread .
you must use dispather to make your ui thread execute ui action or else it will throw exception.
for example :