views:

170

answers:

1

Hello,

in the ressource-tag of my MainWindowView.xaml I have this markup:

RenderOptions.EdgeMode="Aliased" to get a general sharp look of my whole application.

Using mostly rectangular shapes/controls this works fine.

But for my validation error symbols I use a red ellipse with a white cross or "X" in it.

The ellipse is using now the global "Aliased" settings what looks not good because I can see

the pixelated border of the ellipse.

Using now <Ellipse RenderOptions.EdgeMode="Unspecified" ... /> does NOT change anything ???

I always set in wpf local settings override global settings ?

A: 

Not for this case. MSDN states explicitly:

When you set the edge mode value of a visual object, all the child drawing primitives of that visual object are set to the same EdgeMode value.

I suspect this is because children are being rendered into their parent, so even if they're not anti-aliased, blitting them to an anti-aliased texture would make them anti-aliased too.

Julien Lebosquain
thx I just have thought again for blurry textboxes (2nd horizontal gray line) I have to blame the UseLayoutRounding property and tune that. So everything ok :)
msfanboy