Windows 7 snap - Programmatic aspect - windows

Windows 7 has a new "snap" feature it applies when dragging "standard" windows. I do have a pure win32 application (not MFC or any other framework) that I use to create a non-orthodox user-drawn window.
That window does not "conform" to windows 7 snap and dragging it to screen corners will not do anything.
Do I need a special style/class or something similar in my window in order for windows 7 to take it into consideration for "snapping"

You will have to use the WindowChrome class which is in the Microsoft.Windows.Shell namespace available in .NET 4. If you are targeting .NET 3.5 SP1 there is a backported standalone library, details here.

Related

Does Direct2D have CompositingModeCopy like GDI+?

I am trying to move my virtual white board application from gdi+ to direct2d.
Perviously I used Graphics::SetCompositingMode(CompositingModeCopy) to "eraser" function, but I can't find similary interface in direct2d.
Thanks.
D2D1_COMPOSITING_MODE_SOURCE_COPY, which requires Direct2D 1.1 (Windows 8+, or Windows 7 SP1 w/ Platform Update)
https://msdn.microsoft.com/en-us/library/windows/desktop/hh446995(v=vs.85).aspx
Also, pairing ID2D1RenderTarget::PushAxisAlignedClip and ID2D1RenderTarget::Clear() can be used to "erase" a rectangular region. Works on Windows 7 RTM.
https://msdn.microsoft.com/en-us/library/windows/desktop/dd742775(v=vs.85).aspx

Resizable panel/grid for Windows 10 Universal App

I need to make a resizable side panel (intended to display numerous properties and tools) for my Windows 10 Universal App. I found there is a GridSplitter for WPF apps, but it seems this control doesn't work for Win10 Apps. Is there any other way how to achieve this functionality?

windows 8 glass effect

I am asking how to make a glass effect for winform in windows 8.
I just saw some methods which call the DWM to make this before windows 8. But it seems DWM was no longer valid in windows 8. So is there any other methods to make glass effect winform in windows 8?
Thanks!
Windows 8 does not provide support for the glass effect of Vista/7. If you want to make your windows display with glass effect, you need to code it yourself, or use one of the 3rd party solutions that do so.

Include Windows 8 namespace in Windows Phone 8 [duplicate]

I am trying to write a Windows Phone 8 SDK-based application. I keep seeing mention of a ProgressRing control but I don't see it in the Toolbox or in the xaml designer.
How do I use this?
ProgressRing is part of the Win8 UI controls, not WP8. In WP8 you should use SystemTray.ProgressIndicator instead which is part of the windows phone UI shell. See here and here for samples.
See below blog link for simple copy&paste code to exactly replicate the Windows ProgressRing (uses the actual style code). Works perfectly, just added it to my WP8 project:
http://briandunnington.github.io/progressring-wp8.html
There is more info about adapting it to WP8 in the answer to this question:
How to Use ProgressRing in Windows Phone 8
Download this app for your phone to see it in action.
ProgressRing is not available for Windows Phone 7 or 8, you have to use ProgressBar or rather the PerformanceProgressBar:
http://www.windowsphonegeek.com/articles/WP7-PerformanceProgressBar-in-depth

blend 4 and layout path

according to this article http://electricbeach.org/?p=653 and many others it's trivial to make a layout path.
Well I've downloaded phone 7 developer kit but when I try to convert a shape (es. circle) to layout path is impossible because command is not active.
Also pathlistbox don't exist in my blend version... you know why?
You can only use the PathListBox in Silverlight 4 onwards, which is available on the Mango build of Windows Phone 7. You will need to download and install the Developer Tools for Windows Phone Mango.

Resources