aero

How to achieve Vista glass transparency (AERO) in a WPF application?

会有一股神秘感。 提交于 2019-11-27 16:48:24
问题 It's easy for a WPF application to make parts of a window transparent or semi-transparent. But how to I apply the current Vista theme (colors, opacity) to these transparent parts? When I have a green glass border how will I get a green glass background of the same style? Is it even possible to do this without calls to the Windows API? I am thinking of something like this 回答1: Here's a nice example: CodeProject: Adding Glass Effect to WPF using Attached Properties 回答2: Take a look at this link

Windows 7 Aero Theme Progress Bar Bug?

二次信任 提交于 2019-11-27 15:08:37
I have ran into what I consider to be a progress bar bug on Windows 7. To demonstrate the bug I created a WinForm application with a button and a progress bar. In the button's 'on-click' handle I have the following code. private void buttonGo_Click(object sender, EventArgs e) { this.progressBar.Minimum = 0; this.progressBar.Maximum = 100; this.buttonGo.Text = "Busy"; this.buttonGo.Update(); for (int i = 0; i <= 100; ++i) { this.progressBar.Value = i; this.Update(); System.Threading.Thread.Sleep(10); } this.buttonGo.Text = "Ready"; } The expected behavior is for the progress bar to advance to

Delphi support for Aero Glass and the DoubleBuffered property - what is going on and how do we use them?

∥☆過路亽.° 提交于 2019-11-27 09:46:52
问题 I am confused by Delphi 2009/2010 support for the Aero Theme Glass features in Windows, and by what, exactly DoubleBuffered means, and what it has to do with Aero glass. I have found that DoubleBuffered is not only a property in the VCL, it also is found in .net WinForms. Initially I wondered if it set some kind of window style bit used by the common controls library, or what. Why is it used, and when should it be used? [Update: I should state that I know what "double-buffering" is, as a

How do you set the glass blend colour on Windows 10?

余生颓废 提交于 2019-11-27 06:55:29
Using the undocumented SetWindowCompositionAttribute API on Windows 10, it's possible to enable glass for a window. The glass is white or clear, as seen in this screenshot: However, the Windows 10 Start menu and the notification center, which both also uses glass, both blend with the accent colour, like so: How does it do it? Investigations The accent colour in the following examples is a light purple - here's a screenshot from the Settings app: The AccentPolicy structure defined in this example code has accent state, flags and gradient color fields: AccentPolicy = packed record AccentState:

WPF Borderless Window issues: Aero Snap & Maximizing

岁酱吖の 提交于 2019-11-27 04:28:43
问题 I've created a borderless WPF window by setting the following window properties in XAML: ... WindowStyle="None" AllowsTransparency="True" ... This causes a number of issues: 1) Resolved: It no longer has any built-in resize functionality 2) Resolved: It no longer has any built-in drag functionality 3) Resolved: Without the top toolbar, it no longer has minimize/maximize/restore/close buttons 4) Resolved: Maximizing via aero snap or setting WindowState prevents it from unsnapping. 5)

Aero: How to draw solid (opaque) colors on glass?

断了今生、忘了曾经 提交于 2019-11-27 03:50:23
Using GDI+ to draw various colors: brush = new SolidBrush(color); graphics.FillRectangle(brush, x, y, width, height); You'll notice that no opaque color shows properly on glass: How do i draw solid colors on glass? You'll also notice that a fully opaque color is handled differently depending on what color it is: opaque black: fully transparent opaque color: partially transparent opaque white: fully opaque Can anyone point me to the documentation on the desktop compositor that explains how different colors are handled? Update 3 You'll also notice that FillRectangle behaves differently than

Adding Taskbar context menu to win7 application

删除回忆录丶 提交于 2019-11-27 03:35:05
问题 Where can I find documentation about adding a context menu (EDIT: jumplist) to a windows 7 application? You know, when you right click on the application icon on the taskbar. Can I do that using .NET? Or do I need to use native code? Thank you! 回答1: If you mean the jumplist, you have to do it using WPF (.NET) EDIT: See here 回答2: What I believe you are looking for is the Windows® API Code Pack and you want create a Jump List for your application. What you see in a Jump List depends entirely on

Aero: How to draw ClearType text on glass?

寵の児 提交于 2019-11-27 01:57:01
问题 Using GDI+ to draw text on glass: graphics.DrawString(s, Length(s), font, MakePointF(x, y), brush); You'll notice that the ClearType enabled text draws very poorly on glass: But with glass disabled the text, of course, draw fine: By way of comparison here is Anti-alias font smoothing : And here is no font smoothing : Note : No font smoothing looks better than it really does because StackOverflow resizes the images on your monitor. How do i draw ClearType text on glass? Notes Win32 native not

How to determine ACTUAL windows form size (with all nonclient elements) when running Aero?

丶灬走出姿态 提交于 2019-11-27 01:48:01
I'm trying to position my form precisely above the taskbar. Unfortunately my efforts are hampered by the fact that this.Height on my form returns a value which is 10 pixels smaller than the actual form (with all the borders, title bar, etc). I'm running Windows 7 with Aero. When Aero is turned off (and the borders are thinner), all works as expected. The form border style is FixedSingle . I don't want to implement Aero-specific hacks. What can I do to get the correct height? Yes, Aero lies about the window size returned by GetWindowRect(). It is a rather important appcompat hack, without it

Override default styling in WPF TextBox, based on PresentationFramework.Aero

假如想象 提交于 2019-11-27 01:15:37
问题 I want to use the Aero textbox styling, but still override some properties. I try to accomplish this by: <ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"> <ResourceDictionary.MergedDictionaries> <ResourceDictionary Source="/PresentationFramework.Aero, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, ProcessorArchitecture=MSIL;component/themes/aero.normalcolor.xaml" /> <