In my WinForms application, I'm currently populating a StatusStrip with multiple ToolStripStatusLabel controls:
http://msdn.microsoft.com/en-us/library/system.windows.forms.toolstripstatuslabel.aspx
The only tooltip property that exists is ToolTipText. I have no reference to a ToolTip object.
How can I apply Right-To-Left layout on this tooltip?
Thanks for any help!
Related
I am trying to customize the look of a scrollbar inside a xaml datagrid. I can create the usercontrol for the style with no problems, but if I wrap it around the datagrid that doesnt work. Is there something I can bind to within the DataGrid properties that would use the custom control or style?
Thanks SO
First, you need to make your custom ScrollBar control template. Then you can open a copy of the DataGrid control template in Expression Blend, find the existing scrollbar control it's using and apply your style to it then save it in a resourced dictionary using the BasedOn value to the TargetType. This is recommended or if its an adhoc solution, you can apply it to the usercontrol.resources of your datagrid.
You can find the scrollbar control template here
I have WinForm controls I want to put in a WPF DropDownButtons(Extended WPF Toolkit) DropDownContent. Putting the controls to a WindowsFormsHost and that one is giving to the DropDownContent doesn't work.
The Winforms control doesn't visible. In the template the DropDownContent property is a ContentPresenter.
If I want to try this whole story with a common container (StackPanel, Grid, etc.) it works fine.
Does anybody know how can I solve this?
The DropDownButton has a Popup whose AllowsTransparency is set to true - see the template here. You cannot put a WindowsFormsHost into a Popup whose AllowsTransparency is true. You'll have to modify the template for the DropDownButton so that its AllowsTransparency is false.
I was wondering if I can have a ComboxBox with a Treeview as the selector rather than a list?
I note that there is a ComboBox.ItemsPanelTemplate, but I don't know what I need to do to get this to work?
I could build a control 'from the ground-up' with a separate TextBox, Button and TreeView in a PopUp control, but wondered if there is an easier way.
Lee
Are you just wanting the combobox for presentation purposes regarding the treeview?
Why not use a treeview as is and just trigger the display via visibility or animation from a button or control of some sort?
I am working on similar theme as we speak. I am using the Expander control from the Silverlight Toolkit with a TreeView control inside it. When an item is selected in the TreeView, it sets the Header of the Expander and then collapses the Expander.
Initial tests indicate it's OK but as I say, just started with it myself. Will let you know if I hit any stumbling blocks.
I'm trying to make a custom control in Silverlight have the same functionality as a ContentControl, notably being editable in Blend.
The custom control has a property "AdditionalContent" which holds the Content that should be displayed. It is bound to and displayed with a ContentPresenter in the Xaml for the control's UI. Unfortunately, my custom control inherits from a 3rd party control, so inheriting from ContentControl is not an option.
I looked at the Silverlight Toolkit code, at HeaderedContentControl, and used it as guidance to get my "AdditionalContent" property working. The only problem is that it is not friendly to Blend. I'm getting some very basic editability in Blend, but not the smooth integration that Blend has for types of ContentControl or HeaderedContentControl.
Is there any kind of Attribute or something else I can add so Blend knows how to handle this situation? Or is it the case that Blend is hard coded for ContentControl and HeaderedContentControl types?
Add a [ContentPropertyAttribute] to the control specifying the name of the content element.
I am using the WPF ToolKit ChartControl to create a columneries chart. Whenever I move mouse to my Chart, the ToolTip value will be displayed. I dont need this ToolTip, So how can I turn this off?
I haven't used this control so I can't say for sure but in general you can disable tooltips by setting the attached property ToolTipService.IsEnabled to false like this:
<TextBlock ToolTip="World" ToolTipService.IsEnabled="False">Hello</TextBlock>