Window form shaped corners - winforms

Im trying to create a borderless forms (.net 2 winforms) with smooth rounded corners. nothing works anti alias, API, different image formats and transparency. rounded corners will not look smooth.
does anyone have any suggestions?
thank you
I have found a solution #
http://www.codeproject.com/KB/dialog/SemiTranDlgWithCtrls.aspx

This question might yield some answers:
C# transparent border for borderless form
Off-hand I know that WinForms and transparency are not the best of friends.

Related

Custom Title Bar Buttons in WPF

I'm completely new to WPF, and am currently learning how to use styles and templates. Today, I saw many projects that can tweak the title bar of the window. Most of them probably tweaked the window chrome to achieve that effect. However, I'm trying to create a title bar with Mac-like Close, Minimize and Maximize buttons. I want them rounded with 3-D Colored effects. I have scoured the internet for that style, but in vain. Could anyone tell me how to achieve that effect using WPF with VB.Net?
P.S. I am using VS2010, and don't have MS Blend.

Windows Phone/Kinect style tilt effect for WPF

Anyone know how to go about achieving the tilt effect you see on Windows Phone 7 tiles or on the tiles in the Kinect UI on XBOX in WPF?
Sample screenshot:
There are a number of libraries that do it for Silverlight but all rely on the PlaneProjection which isn't in WPF.
Here is a link that shows what I mean and how to do it in Silverlight. http://www.scottlogic.co.uk/blog/colin/2011/05/metro-in-motion-part-4-tilt-effect/?utm_source=Silverlight-Zone.com&utm_medium=SilverlightZone&utm_campaign=kunal2383
Thanks
Finally I created my own Tilt effect behavior for WPF, take a look to my post and tell me what you think.
I have updated it with KeepDraging Property and TiltFactor Property and the possibility to add it directly to the panel. I hope you enjoy it now
The tilt effect on WP7 relies on PlaneProjection which is exclusive to Silverlight.
There are several projects out there that have attempted to port PlaneProject to WPF but the tilt effect itself has not been ported yet.

WPF - Drawing 3D Object

I am newbie to WPF.
I have drawn simple 3D cube and rotate it with mouse
But my question is,
is it possible to draw wireframe object in WPF Without using any third party library(eg.Charles Petzold's libraty etc..)?
Unfortunatly the DirectX that WPF is built upon doesn't allow drawing lines, only rectangles which in turn means no wireframe. Sorry, you´ll have to look around for another solution.

Silverlight 4.0 - image cropping with mouse events

I have a task to build image cropping functionality in Silverlight 4.0 application. What I need to do is to have user on the left button mouse click select area to remain after cropping is applied and then call some other event (button click maybe) to apply that cropping itself.
I did develop similar functionality for rotation. I am pretty sure it is possible to do for cropping as well but that task is probably rare at this point for I can't find tutorials on the topic in the net.
If you guys can get me a snippet to begin with or point to some good tutorial about Silverlight 4.0 image cropping, I would appreciate it.
Thanks!
As far as cropping images are concerned you can use the WriteableBitmapEx library on codeplex.
Now you just need to draw a rectangle on a canvas containing the image to describe the crop region.

WPF image zooming

WPF: What is the best way to implement Zoom In and Zoom Out option for an Image inside ScrollViewer in WPF at runtime and also other alternative methods for the same
Please provide sample code and suggest links where I can find sample code and more info about various ways to Zoom the image.
Regards,
Anwar
There are many pan and zoom viewers for wpf. A few that I have found helpful to learn and to borrow code are:
WPF Extensions
http://wpfextensions.codeplex.com/
Pan and Zoom (DeepZoom style) in WPF
http://blogs.windowsclient.net/joeyw/archive/2008/08/05/pan-and-zoom-deepzoom-style-in-wpf.aspx
You could use a ScaleTransform to zoom in and out, and a TranslateTransform for panning

Resources