6 Comments Already

commenter
Tshad Said,
December 11th, 2009 @2:58 am  

Is it possible to get the download?

The page doesn’t seem to be here.

I couldn’t make the code work but I am just starting to use WPF.

Thanks,

Tom

commenter
Tshad Said,
December 12th, 2009 @6:36 am  

I finally got it to work.

But when I did, I found that the gradient changed. The white part of the circle (that starts out in the middle) moves to where ever the mouse is during the left mouse down.

Why does it do that?

Thanks,

Tom

commenter
Aaron Said,
December 12th, 2009 @10:34 am  

That’s what the code does — it moves the gradient to where ever the mouse is during the mouse down, exactly as it says in the blog post. Is that what you mean?

commenter
Tshad Said,
December 14th, 2009 @3:45 am  

You’re right.

I had missed that part. When you say the origin of the gradient changed you meant the white part (circle) inside of the black circle would change position – which it does and the whole circle moves as well.

Thanks,

Tom

commenter
tshad Said,
December 14th, 2009 @3:21 pm  

Also, I found I couldn’t make this work until I put:
AllowsTransparency=”True”

I changed the window area to:

WindowStyle=”None” AllowsTransparency=”True”

It turns out you don’t need the Background=”Transparent”. The AllowsTransparency handles that (I think).

But I was curious, if I put the background to green in the Grid. You can’t see through it and you can grab the corners of the window outside of the ellipse (which you can’t do if it is transparent). Why can I grab and move the window inside the elipse (which is also transparent) and not the outside corners?

Thanks,

Tom

commenter
Aaron Said,
December 14th, 2009 @10:47 pm  

You can only grab the ellipse because that’s what’s handling the mouse down currently. If you change what’s handling the message, you’ll get different results. Since I wanted a transparent ellipse — that’s the way I coded it. You could handle the mouse_down in the grid for example and it would change what caused the window to move.

Related Post

Please Leave Your Comments Below

Please Note: All comments are moderated, so it may take some time before your comment appears.