Hi All,
Is there any control in Infragostics WPF control library equivalent to
System.Windows.Controls.RadioButton?
I tried with Ribbon.RadioButtonTool but coul not find any way to make it functional like Windows.RadioButton.
I have a WPF window which has all Infragistics controls but in case of RadioButton I am forced to use windows.RibbonControl which not look good when I apply Infragistics thems.
Will anybody help me on this..?
Hi Chetan,
What are you trying to accomplish? Did you need a Radio Button that honored the Infragistics themes? The RadioButtonTool would accomplish that. What functionality was missing when you tried using the Ribbon RadioButtonTool?
Thanks,
Hello Custis,
Thanks for the reply !!
Actualy I used the RadioButtonTool as follows.
<rbn:RadioButtonTool Content="test" Grid.Column="1" Grid.Row="1" Margin="1,7,0,7" Height="21" Width="183.2" HorizontalAlignment="Left" VerticalAlignment="Top"></rbn:RadioButtonTool>
and it looks like this on MouseOver..
Here I am expecting a radionButton.
Am I missing any proerty to set..?
I see the problem, the Ribbon Radio does look like Toggle buttons. However, the behavior is that of a Radio Button. Tell me more of the requirements you are looking to fulfill and I can let you know if it would be better to create a custom style for the standard RadioButton or if you should override the control template for the Ribbon RadioButtonTool.
Thanks Curtis!!
I tried this and it is working file...
Foreground
="{DynamicResource {x:Static InfraRibbon:RibbonBrushKeys
.ToolEnabledForegroundTextFillKey}}"
I could not find igDP:DataPresenterBrushKeys.LabelBackgroundKey in my assembly. I am using v8.1.
Does this mean that dataPresenter resources are not available in v8.1 but are available in Ribbon ..?
Hello Chetan,
Here is the key for making non-Infragistics controls to be in-synch with the Infragistics component themes.
First open the DataPresenter assembly in Visual Studio's object browser (double clicking on the reference to the DLL in the project will do that).
Expand the DataPresenterBrushKeys object.
This will show you the key names for the brush resources that the XamDataGrid Themes utilize. From this list you can use these colors to color the various parts of the controls you are using. For instance, you can set the foreground brush of the RadioButton to the key in this list which you wish yo match the RadioButton to.
For example:
<RadioButton Foreground="{DynamicResource {x:Static igDP:DataPresenterBrushKeys.LabelBackgroundKey}}"
Content="RadioButton" />
Hi Curtis,
Standard RadioButton text ForeColor is black. When I use it in my WPF window with one of Infragisitcs them applyed, other infragistics controls has text ForeColor to the respective color defined in the theme (e.g. LabelTool of Ribbon).
I can define custom style to Standard RadioButton which matches with the applied theme but when I change the them, I also have to switch to other custom theme for the RadioButton.
To avoid that work, I am looking for inbuilt support from RadioButton.
Is there any way to get Keys collection (x:Key) from currenty loaded infragistics theme so that I can set it to the radioButton. When theme will change, Key will remain same but what will change is the style associated with it in new theme(ResourceDictionaly).