Remove/hide the separator in DataRepeater control in Windows Forms - winforms

I have a DataRepeater Control in Windows Forms application. The items are separated by a horizontal line, which I want to hide or remove if possible. Can anyone suggest how to do this? Thanks.

Related

WPF - FIND method for TextBox?

After using a Windows Forms RichTextBox, I realized that WPF TextBoxes do not have the .Find Method (as mentioned here). I do not wish to use a WPF RichTextBox as it causes performance issues when I host the element in Windows Forms using HostElement. The WPF TextBox was the way to go in terms of hosting it in Windows Forms
I've heard a lot about Global Search for WPF but I do not wish to implement that feature. Basically what I want is a basic Find method for a WPF textbox. It should consist of a TextBox and a Button. The TextBox is used to enter the string you want to find and the Button should be the command for the Find Method to activate. Each time the user clicks on the Button, the Find method jumps to the next searched result and the next and the next... and act as a loop.
Can someone please help me with this.
I managed to solve the problem by using Regular Expression!

WPF: Wizard control within Tab Item?

I have a WPF page with a tab control and various tab items. Within one of the tab items, I want to present a two-step process, almost like a wizard. What combination of controls would accomplish this? I know I could use something like stackpanels with changing visibility, but I assume there has to be a better way than that?
Free Extended WPF Toolkit™ Community Edition sports a nice Wizard control. You could use that within your tab item....
We used Avalon Wizard for our application and it worked out very nicely.

Dynamically adding ElementHost'd WPF UserControl to WinForms results in Black

I have a WPF user control inside an ElementHost that is inside a WinForms control to wrap it. I'm dynamically adding it to a tab control tab.
But when I do this, my WPF control is black.
How do I fix that?
There are many alternative solutions on the web to this one. However, what fixed it for us was to avoid "Fill" docking the element host within it's parent control. If you are using docking, then give it a try!
Unfortunately this can be one of those evil problems solved by experimentation and it'll turn out to be a one line fix!
It was my own mistake. I forgot to add the WinForms tab control panel (a 3rd party one) to the right class.

WPF tooltip best practices

I'm about to change my application to include tool tips for all buttons, combo boxes, etc. I was wondering if there are any recommendations on doing this.
For every control I'd like the tooltip to show the control's name in bold, followed by the description. I want to keep the style separated from the control, so I can change the tooltip style globally.
What I would like to have, unless there's a better suggestion, is two additional fields per button/combobox/etc: 1-ToolTipName and 2-ToolTipDesc, both containing a string. How can I accomplish this (and is it even possible?).
If you want this to be separate from the style of the controls, and you want to specify multiple "properties" per control, then an attached property may be an option.
I would recommend looking into Behaviors from the Blend SDK. They would make this fairly easy (especially if you're using blend), as it would allow you to make a tooltip behavior that you could just drag onto your controls.
I recommend using ToolTips with all toolbar and iconic controls.
You need to guard against having ToolTips in places where it is obvious what is happening in the UI, or the ToolTip hides information from the user forcing a mouse move.
The Popup control in WPF might also offer you the UI presentation you are looking to show additional information.
Super ToolTips, as in Microsoft Office Ribbon, also offer the ability to present additional information to the user.
There are recommendations for using ToolTips and InfoTips in the Win 7 User Experience Interaction Guidelines (aka UX Guide).

Custom painting Windows Forms Scrollbar?

I know how to do custom drawing of a standalone Windows Forms ScrollBar because there are plenty of examples at places like codeproject.com. But how do you custom draw the scrollbars in controls you do not create yourself? For example a Panel can show scrollbars but how would I ensure that the scrollbars it shows are custom drawn?
Or maybe this is not possible and I would need to create my own version of a Panel so that they use my own custom drawing scrollbars?
The scrollbars you see most often, including those built into most winforms controls, are rendered by Windows and there is no way to override their appearance in WinForms short of implementing an entirely custom solution which completely takes over the rendering and behavior of the common scrollbar control. There are some commercial packagages which claim to do this (google winforms skinning).

Resources