Tuesday, 15 January 2013

c# - WPF drawing performance -



c# - WPF drawing performance -

i've been doing lot of reading wpf drawing , performance , it's apparent methods of drawing improve others. have gotten confused different people's terminology of things , want clarify 1 issue.

the scheme i'm working on has lots of gauges on screen (exactly speedometer in car). scale , range indicators can alter , different on each gauge. best draw these in xaml or in .cs file behind it. reason i'm asking starting see performance issues in scheme when lot of gauges on display , i'm trying isolate cause.

currently it's drawn behind each individual segment added children.add(uielement).

i'm not sure if placing them in xaml or code behind makes difference - @ end of day these objects pushed onto visual layer 1 way or another.

your issue more because you're using blown uielement instances.

for performance enhancements, seek using more light-weight objects, i.e. drawingvisual

these objects not powerful uielements, may lose functionality want utilize you'll need reimplement way.

this documentation should set on right track.

c# wpf xaml

No comments:

Post a Comment