How to make a panel transparent like glass - c#

How to give c# panel glass like transparency something similar to this (image after clicking on show desktop of windows 7) ? And will it work properly under windows XP ?

Take a look at this code project GlassPanel.
This tutorial may also help ExtendGlass

Related

WPF Tile Control like Windows 8 Start Menu

So, does anyone knows a panel or a control which emulate Windows 8 Stat Menu Tile Panel?
with all of those features like SQUAD tiles or bigger ones?
Also i have seen this link on Stack overflow, but because of low reputation points, i could comment there that "IT DOESN'T WORK"
Emulates Windows 8 Start Menu Tile Layout Engine
The answer is: no, there is no native control which emulate a tile.
Thus, basically, you could do it yourslef as explained in the link you provide: Emulates Windows 8 Start Menu Tile Layout Engine
If it does not work, you probably have something wrong because it is some classic XAML.
Another alternative could be to use a tiers-Library. There are some paying like DevExpress, Actipro or Telerik.
But my recommandation would be: do not buy anything, but do not reinvent the Wheel either. You have some free nice Library available with Nugets like MahApps.Metro or ModernUI for WPF that could greatly help you to create your own custom tile.
Hope it helps.
Telerik RAD Tile control can do it for you !

How do I mimic the windows 7 UI?

I want to try and get the same look as Windows 7, with the aero glass dropping down just a little bit so that there can be a back button/address bar/ search box. Are there any tutorials on how to do this? I really need something simple, as I tried looking at a few other tutorials that try to explain how to use DWM with c# and I get totally lost.
Done as an answer :)
Absolutely use WPF, WinForms is a nightmare for this sort of thing. Combine it with http://code.msdn.microsoft.com/WindowsAPICodePack and you're on to a winner.
Ive been using the glass_full class from the site below on WinForms and and it works great.
http://www.dreamincode.net/forums/topic/146813-glass-form-dwmapidll-api/
I found a workaround for the black text issue with WinForms is to simply set backcolor and transparencyKey to a unused color.
(To prevent clickthrough, make sure the red and blue values are different, I use 221,222,223 as my color values so it gracefully fallsback to grey without Aero)

c# how to make a Windows 7 aero winform (blured glass)?

how to make somthing like this
Windows Forms Glass Effect, Make ImageBox transparent
I use VS 2010
If all you are looking for is the standard glass effect (which includes the blur), check out this article:
http://www.codeproject.com/KB/vista/AeroGlassForms.aspx
Basically, all you're doing is extending the window's frame (which already has the glass effect) into the client area. You have to call the DWM API that come with Windows Vista or later using a couple of P/invoke methods because this is not built into the .NET Framework.
EDIT: If you're looking for more control over the blur effect, you might look into more specifically the DwmEnableBlurBehindWindow function from the DWM API, although I have not used this myself.
Take a look at this:
http://msdn.microsoft.com/en-us/library/aa969512(VS.85).aspx
The MARGINS array is similar to margins on an HTML page. The first example on MSDN gives the margins for the glass effect 25 pixels in height on the bottom of the window.
This MS tutorial is fairly easy to understand and uses C#.

Glass look for MDI windows under Vista

I am developing a winforms MDI application in C# in VS 2008.
I have noticed that the MDI forms don't have the glass look under Vista.
Is this by design?
Is there a simple way to get the glass look for these windows?
By default glass is not enabled on WinForms (or for that matter WPF applications). The only way to enable glass is to PInvoke into native API's. This channel9 site does a tutorial for a great utility that makse it trivial to add Glass effects to your controls.
http://channel9.msdn.com/playground/Sandbox/201158/
Nope, Glass is not available for MDI children.

Zoom on a PictureBox (Windows Mobile)

I'm developing an app for Windows Mobile. I would like to make zoom on a PictureBox's image.
How can I do this?
I think this is more complicated because I'm doing for Windows Mobile.
Thank you!
Almost all questions that have to do with Windows Mobile are answered with OpenNetCF.
While I haven't tried this, OpenNetCF has a picture box control with a Scale() method. Perhaps this is what you're looking for.
If you use the ImageViewer control, you will get Zoom in/out.

Categories