DevExpress MemoEdit selection backcolor - winforms

I'm trying to achieve a similar functionality as with RichTextBox while using the MemoEdit control.
With RichTextBox it's possible to use .Select() in order to select part of the text then use .SelectionBackColor() in order to change the backcolor only for the selected text while the rest of the text still has the same color. Sadly I wasn't able to achieve this since the MemoEdit control doesn't appear to have any similar methods for achieving this.
Anyone managed to get anything similar working using MemoEdit or has a good alternative (that allows the control to still be able to use the form skin) ?
Thanks in advance.

Related

Is any built in control available in DevExpress for changing FontColor like Microsoft word having?

I need to add the control like Microsoft Word having to change the FontColor. Attached the image the below to show what i need to know whether the Devexpress already having any control related to this ???
Please let me know the suggestion on this.
Thanks in Advance,
If you're not using an XtraRichEditControl, you can use the ColorEdit control. You can use its EditValueChanged event to code your font color changing logic. The control will not display a "A" with a underline color, but you can override the CustomDraw event to achieve a similar result.

Difference between Textbox and RichTextbox wpf?

Textbox and RichTextbox are look like same.But don't know the difference.Please tell me anyone, When i have to use TextBox and RichTextbox as well in wpf.
See this Microsoft overview of the differences between a TextBox and a RichTextBox.
From above Link:
Both RichTextBox and TextBox allow users to edit text, however, the two controls are used in different scenarios. A RichTextBox is a better choice when it is necessary for the user to edit formatted text, images, tables, or other rich content. For example, editing a document, article, or blog that requires formatting, images, etc is best accomplished using a RichTextBox. A TextBox requires less system resources then a RichTextBox and it is ideal when only plain text needs to be edited (i.e. usage in forms).
A RichTextBox mainly used if you want more control over styling the text color, type, font, alignment ect. So anything you can do in Microsoft Word, you can do with a RichTextBox.
It can be used to save or display .rtf files with ease.
A Textbox is basically used to display or get one line input. You can have a multi-line TextBox which is used mainly to display or get more than one one-liner and keeps you from having to
manage multiple TextBox's. Also keeps your UI a little more tidy.
So basically the main difference is in styling. If you just want something plain and simple, use TextBox. If you want something fancy, eg styles, colors use a RichTextBox.
Have a look at this:
http://social.msdn.microsoft.com/Forums/en-US/winforms/thread/a06ab05a-fbde-47ef-89c5-a7a57f32ffd3
A lot has been said about the differences in the controls' usage scenario.
An important technical difference is that TextBox supports DataBinding, RichTextBox does not, which makes it a bit nasty to use in an MVVM application. If you want a RichTextBox with DataBinding facilities, check out the extended WPF Toolkit on CodePlex.

Winform TabControl style

I'm once again turning to you since I can't find an answer anywhere else. I have a TabControl, but I want to get rid of the ugly orange bar on top of the selected tabs. I would also like to make the tab text BOLD when selected and NORMAL when not.
Is there any easy way to achieve that goal ? I don't want to use the Appearance Buttons or Flat Buttons.
Thanks for your help !
This appearance is controlled by the Visual Styles theme selected in your operating system. In general, users do not appreciate any program that ignores their theme settings, especially when they paid money for a custom one. But you can get what you want, you'll have to set the DrawMode property to OwnerDrawFixed and implement a handler for the DrawItem event. There's a good example to get you started in the MSDN Library article for this event. Just change the font assignment in that sample code.

Selectable text in wpf

I am trying to render a WPF window that has lots of labels, textboxes, textblocks which are binding to data.
I want to be able to select by mouse all the data or part of the data on the window.
Is there a simple way in WPF to do that?
Should I use page instead of window?
Thanks
It is not possible to select text across multiple TextBox, Labels and TextBlocks in WPF.
Each control will hold selection specifically to itself so you must use another approach that will enable you to select the text.
I can think of one rudimentary way to achieve this is to have a very small button beside each TextBox,TextBlock, etc. that you wish to select and this button will perform a string concatenation of the associated text to the clipboard.
The result is that you have all the strings you wish to select in your clipboard ready to paste to wherever you like.
Good luck.

I want to create a combobox in wpf

I want to create a combobox with some style. I dont want old dropdown what we are getting. I want some new dropdown which looks very nice. Is there any way to create a dropdown like that.
Plz give me suggestions
Check this link out on msdn. This is the actual control template for the combo box. You can copy and paste this into your application (within your app's Resources).
Create a form and slap a combo box on it with some data in it. Then start changing the control template and view the results. Start off simply by changing colors and adding borders around elements to see what controls which part. Then you can start switching out larger parts of the template to match what you're looking for.
one can start with the standard combobox, and then use various controls and styles to change the look and feel of the control, and it's corresponding drop down.

Resources