Avinash Reddy
Avinash Reddy

Reputation: 937

Getting weird border

Im not able to under stand why there is a black Border in the end. Below Cancel button. im not sure why this kind of behavior is occurring.as im not able to pin point my problem.(I did check my code many times) im attach that solution it self please take a look. thanks

If u see bottom border its kinda gray clr Code is here

Upvotes: 1

Views: 119

Answers (1)

Frenchy
Frenchy

Reputation: 17007

Without pixel snapping, anti-aliased rendered lines may appear blurry if the edge falls between device pixels.

I have had the same problem in the past. I solved it by adding SnapsToDevicePixels="True" to the application's root element: SnapsToDevicePixels

    mc:Ignorable="d" WindowStyle="None" ResizeMode="NoResize" SizeToContent="WidthAndHeight"   WindowStartupLocation="CenterScreen" 
    SnapsToDevicePixels="True"

Upvotes: 2

Related Questions