How do I put a control on the Forms "label area" like google chrome's tabControl?
(source: sftcdn.net)
Check this link out, might help you out.
Close button in tabControl
Favored solution found here:
http://www.codeproject.com/Articles/12323/A-TabControl-with-tab-page-closing-capability
Related
I'am using Smith Html Editor (https://github.com/adambarath/SmithHtmlEditor) in my program main window AllowsTransparency=True and web browser not showing, I can't do AllowsTransparency=False because I need this. I know this problem is related to win32. I searched the Internet and I can't find a solution. Is there any trick to fix this?
If I AllowsTransparency=False corners turn black.
A follow up to my Previous Question on adding a button to the Window Chrome (also known as the Non Client Area) in Windows Forms, I have decided to switch to WPF to have a better chance of solving my issue. I need to add some buttons to the Non Client Area or Window Chrome similar to that of Firefox 4
From what I have heard it is easier to do this in WPF. I have no idea where to start. If possible could someone give me some guidance on how to do this?
You should modify the Window Control Template. See examples here.
My asp.net web application is written in C#.
On many websites, I have seen small hyperlinks next to a form field that says "what's this?"
When you click it, a small help dialogue box pops up and continues to be visible so long as you hold your mouse over the link. It's usually a dialogue explaining what that part of the form is asking for.
How do I do this?
I think you are looking for a tooltip plugIn. have a look at
30 stylish jQuery Tooltip plugins or
take a look at dr. Google
Personally I've been using qTip. There are some nice examples at qTip which should help you out!
As #uwe Keim pointed out, some of the links above are outdated. So here we are with some current links
QTip2
SimpleTip
30 cool jQuery ToolTip Plugins (14.July 2012)
Tipped
You can do this either asp.net way or using jquery
http://weblogs.asp.net/sukumarraju/archive/2009/12/22/user-friendly-tooltip-using-ajax-hover-menu-extender-control.aspx
http://weblogs.asp.net/cjdevos/archive/2008/03/29/asp-net-ajax-tooltipextender.aspx
You can use jquery to accomplish this .
http://speckyboy.com/2009/09/16/25-useful-jquery-tooltip-plugins-and-tutorials/
Also have a look at the Ajac control toolkit ballon popup:
http://www.asp.net/ajaxLibrary/AjaxControlToolkitSampleSite/BalloonPopup/BalloonPopupExtender.aspx
In my Windows phone7 application I load some data from a XML feed. Some of them are links to Web pages. I used textblocks to display data. In my previous LINK I found how to open web page in HyperlinkButton.
But I cant use that way because HyperLinkButton doesn't have TextWrapping property and those links are lengthy. I need to show entire link and once user click the link, need to access the corresponding web page.
It would be great if someone can Suggest a way to achieve this. Thanks inadvance
While there could be a way around showing the entire link, lemme ask you this .. do you want to? How about just saying "Click 'here' ..." or something & let the user tap on it for navigation?
Please see some of the design guidelines for using the HyperLinkButton here.
Hope this helps!
I am trying to develop an windows application like Google chrome Browser in WPF
using C#.I am facing problem in making my own Custom Window and Placing Tabs at the Place of the Title Position of that window.
Please suggest me how to go for it, is there any tool for this ?
Guide me please..........
Updated:
Hi Friends Thanks for your active responses and I also followed the links you gave and the way you told, but still I have doubts in developing the application please give me some more ideas where I can develop this application by using Google Chrome like controls. I want to give my application Google Chrome like look and feel.....
Google Chrome essentially custom-draws the non-client area of its window to remove things that it considers superfluous like the title bar. That's how it gets the tabs to replace the title bar of the window, just like how Microsoft Office places its "pearl" and quick access toolbar in the title area of document windows.
To do something similar in WPF, you may find this article useful: Link
Remember that any time you re-implement the standard windows chrome, you're going to have to handle a bunch of stuff that Windows normally makes transparent to you, like resizing, minimizing, maximizing, moving, and closing a window.
It is worth considering that both Google Chrome and Microsoft Office applications (among others) behave differently depending on whether Aero Glass and the Desktop Window Manager (DWM) are present/enabled. You're going to have to make sure that your application degrades gracefully when these things are missing. I would advise being sure that you can really make a convincing case for the necessity and benefit to the users before you invest all the time and energy it takes to do things like this in your application.
I just finished a Google Chrome-like Tab Control for WPF. You can find the project at https://github.com/realistschuckle/wpfchrometabs and blog posts describing it at
Google Chrome-Like WPF Tab Control
ChromeTabControl and Visual Children in WPF
WPF Chrome Tabs Functioning
Hope that helps!
It appears that Chrome draws its tabs within a limited region of the title bar area. When enough tabs are open, the width of existing tab controls is reduced to make room for a new tab.
I would suggest that you adopt a similar strategy by drawing your tabs in a suitably sized Rectangle which does not intersect with the caption buttons (Minimize, Maximize Close) and reducing the width of existing tab headers when the region becomes full
[Update 1]
While I haven't seen your code, I would suggest this happens because the tab header (the part displayed in the title bar area) and the tab page (the part covering most of the screen) are a part of the same control and are drawn as a unit, so when you try and draw the header in the region the tab content is redrawn too.
If this is the case, then you need to draw the tab header and the content page as separate controls and maintain some state in the tab that indicates which tab page should become visible when the tab is selected.