How do I achieve opaque CommandBar/AppBar while it's hidden in WP8.1? CommandBar's property Opacity works just fine, but only when AppBar is opened. Though even then you can see non-opaque rectangle at the bottom. I want my AppBar to be opaque at all times, even when ClosedDisplayMode is set to Minimal.
[UPDATED]
"This happens because when you create a CommandBar an automatic margin is created for the ContentGrid to free a space below it for the app bar. Give the Main Grid a bottom margin by -24 and your content will show behind the command bar Like this: Margin="0,0,0,-24"
[ORIGINAL COMMENT]
I guess it is not applicable to do it with the control itself. But the workaround is to give it an opaque color. You can give the command bar a color but reduce its alpha value that controls the color's transparency.
Example: that's the Color code of the "Red" color with 80% transparency: #CCFF0000
Related
I have a top navigation bar which is a panel. I set the BackColor of it to white. And I want it to cast a shadow so that it would be less pale though it would look simple and minimal. However, I do not know how do I do that other than putting borders to it.
When you set Enabled = false to a TrackBar, the result looks to the uninitiated user that the trackbar is still enabled (we superusers can tell, but that's only because we know what to look for). How can I make the trackbar more 'greyed out' to appear less 'enabled' ?
In this example, the second slider is disabled, but it looks almost as enabled as the other two.
As one solution, I've tried to change the BackColor of the trackbar control, but that makes it look ugly against the panel background colour. There are no other colour properties. Nor are there any style properties which could've helped.
I also tried overlaying it with a translucent panel by using panel1.BackColor = Color.FromArgb(128, 220, 220, 220); in an attempt to 'grey' it out more, but the panel doesn't respond to semi-transparency. This question asks how to do that, and no answer appears to allows a semi-transparent panel on top of another control (where the control is semi-visible).
I've been looking around for quite a while now and can't really find a complete example and may just be missing some small element.
I'm trying to create a WPF Theme/Style/ControlTemplate/etc for a WINDOW. The one where Window borders set to none, allow transparency, and background set to transparent. So, yes, this means I have to define the buttons, borders, background, etc as I've found in other samples.
I've found a few links that utilize (and have that working) through the use of a "Thumb" control anchored to the lower-right.
What I'm missing is how to do resize from the respective borders that are constructed within the new ControlTemplate of the theme. I do have the buttons working for things like min/max/restore/close, but can't quite get how to handle the resize.
Thanks
I've used this link once. If I remember well, the resize border could be set to work as an arbitrary amount of pixels from the sides of the Window, even without a "real" border element.
http://www.codeproject.com/Articles/131515/WPF-Custom-Chrome-Library
I have set up a ToolStrip in my C# WinForms project and have added a TextBox on it. I'm just curious whether it is normal that the TextBox is barely visible due to the colour of the ToolStrip and TextBox.
I could put a border around it or change the background colour of the TextBox but that just looks odd.
Is there some property which I haven't thought of which I could set to make it stand out more but not look out of place?
Screenshot added:
A very light border would probably be best. if you use the same color as the toolstrip, you won't really notice the border at the bottom, but it will make the top of the search box stand out. you might also want to add a margin around it, or less padding inside of it, so it doesn't fill up the whole hight.
I already made the background transparent but there is still some part left from the group box. How do I make those transparent also?
The blank line are what I want it to be transparent. It should give you the picture of what I want. Thanks.
And don't even ask what are the password for, all of them are just dummies :)
If you want to see and edit the code, here
That's just how the GroupBox control works. The Background property of that control includes the area that your screenshot points to. If you wanted to do a workaround for it, you should set the GroupBox background to be transparent as well, and draw a white box behind it, encompassing only the area you want to be white.
Form.Opacity doesn't work for you?
What is the GroupBox's parent container? Is it a Form or a Panel? Is that element also set to transparent? As a test I made a GroupBox and placed it on top of (inside) a Panel. I changed the background color of the Panel to red and the background color of the GroupBox to transparent and those ares of the GroupBox are properly transparent. My suggestion is to look at the parent container.
Also the GroupBox label may become hard to read in some cases, once the top strip is transparent.