How come that on one computer the WPF tile bar is blue and on another one white?
On another PC it is white, it has to do with computer version?
I don't do anything special in code.
There is a setting in Windows 10 under Settings > Personalization > Colors called Title bars and window borders. In the second image it must be off. By the way it's turned off by default.
Related
Need a quick suggestion for styling a WinForm. I made it with rounded corners even when re-sized. Now trying to add a close button with a image (ControlBox=false), overlapping or clipped to top right corner. This is what I could end with.
But I wish to make it more like in this example image.
How could I achieve this in WinForm.
Here's the trick : your window doesn't just end with the white part. It extends a little bit further. The close button comes under the 'extra' part. The other sides where the window appears to not be there is actually transparent...or in the case of the image, semi-transparent.
The glow effect is provided by the window. Set the TransparencyKey property of the window to Color.Magenta (its a convention as Magenta is the color least likely to be used in a window). Then set the background image to a white background with a little bit of Magenta in the edges. The Magenta will appear transparent when set as the background image.
Fiddle around with TransparencyKey and you'll understand what I mean
Winforms itself cannot provide this for you without outside manipulation of the windows,
because it still uses win32 windows classes in the background.
If you want transparancy in windows: see articles like:
Cool, Semi-transparent and Shaped Dialogs with Standard Controls
And the method in Win32 to do it:
SetLayeredWindowAttributes
On a WinForm with an extended borders, when i place a text on the glass area it doesn't appear right.
This is how the text looks like Status
a busy cat http://img833.imageshack.us/img833/4732/95454282.png
![form][1]
how can i fix the text to appear normally?
Text in Winforms is rendered with an alpha of 0. Which makes it transparent when you draw on glass. So you'll see the background color, not the ForeColor you selected.
Drawing text on glass is troublesome, you can't get it easily anti-aliased correctly since the background of the text isn't well defined. Note how the screenshot shows how Windows addresses that problem, the text in the window caption has a milky-white background, thus ensuring that the anti-aliasing properly blends the letter into the background.
Which is what you need to do as well. You get text drawn like that with pinvoke, DrawThemeTextEx() with the DTT_GLOWSIZE flag option. Visit pinvoke.net for the required declarations or use this project. And don't forget to provide a fallback so this window still looks decent on older Windows versions. And newer versions, glass is no longer appropriate for Windows 8.
The Search Page in Windows Phone 7 (Bing search) is lovely; uses the entire area for a nice piccy. The system bar is transparent but the icons are still there.
I can't seem to reproduce this effect.
If I set an image on the LayoutRoot it only goes up to the bottom of the system tray.
If I hide the system tray, it is always hidden.
If I make the system tray background transparent, I can see the dark/light theme colour (black or white) through it, which looks terrible with the image background in LayoutRoot.
If I try and set the Background of phone:PhoneApplicationPage nothing happens. I tried styling this but couldn't make it work.
I'd be grateful if a Windows Phone 7 guru could help me out here.
Try this:
Set the d:DesignHeight="800" and Background="Transparent" for the <phone:PhoneApplicationPage >
Then for the ApplicationBar,
Set Mode="Minimized" BackgroundColor="Transparent"
Almost similar to the one in Bing Search page, but still a little area at the bottom I couldn't cover.
I have to create a program that starts with a splash screen and a transparent image, but in windows form not working there always the white background, how can I do?
You need to set a transparency key. If you set it to white, it will make everything that's white on the form transparent (doesn't work well with the picturebox control though).
So for instance, you create a panel, and give it the background image you want to be displayed, then set the transparency key to whatever color should be made transparent ;p
I have an app bar with custom colors to match the page color of our application. I have managed to get the images and app bar itself to the colors I want, but not the ellipses at the top right. I have set the background color to white and the foreground color to blue. In expression blend, it looks like the ellipses are set to blue, but when I run the app, they are white (same color as the app bar background) and basically invisible. Is there a way to change the color of the ellipses?
Not sure why it does not work for you but following code in sample application worked for me:
<shell:ApplicationBar IsVisible="True"
IsMenuEnabled="True"
ForegroundColor="Orange">
I created a new PivotApplication project for Windows Phone. In a new page, I added ForegroundColor property to application bar and it worked.