or
<Style BasedOn="{StaticResource {x:Type ComboBox}}" |
TargetType="{x:Type local:MyComboBox}"> |
<Setter Property="Background" Value="Red" /> |
<Setter Property="Foreground" Value="DarkGray" /> |
</Style> |
<Style TargetType="{x:Type local:MyComboBox}" |
BasedOn="{StaticResource {telerik:ThemeResourceKey ThemeType=telerik:Office_BlackTheme, ElementType=Controls:RadComboBox}}"> |
<Setter Property="Background" Value="Red" /> |
<Setter Property="Foreground" Value="DarkGray" /> |
</Style> |
public class MyComboBox : RadComboBox |
{ |
static MyComboBox () |
{ |
DefaultStyleKeyProperty.OverrideMetadata(typeof(MyComboBox), new FrameworkPropertyMetadata(typeof(MyComboBox))); |
} |
} |
[LocalizabilityAttribute(LocalizationCategory.NeverLocalize)] |
[Ambient] |
public Type TargetType |
{ |
get { return typeof (RadComboBox);} |
} |
Hi,
I’m trying to implement a piece of functionality on a floating window that will minimise/re-group the floating window back to the main area of the docking control.
Is there a way to achieve this?
Chris.
protected override void Adapt(IRegion region, RadPaneGroup regionTarget) |
foreach(Telerik.Windows.Controls.GridViewColumn column in GridView.Columns) |
{ |
Style s = new Style(typeof(GridViewHeaderCell), column.HeaderCellStyle); |
s.Setters.Add(new Setter(GridViewHeaderCell.ForegroundProperty, new SolidColorBrush(Colors.Red))); |
s.Seal(); |
column.HeaderCellStyle = s; |
} |
column.ClearValue(GridViewHeaderCell.ForegroundProperty); //no noticeable impact |
column.ClearValue(GridViewColumn.HeadCellStyleProperty); //no noticeable impact |
//this makes the foreground (some text) disappear altogether |
Style s = new Style(typeof(GridViewHeaderCell), column.HeaderCellStyle); |
s.Setters.Add(new Setter(GridViewHeaderCell.ForegroundProperty, null)); |
s.Seal(); |
column.HeaderCellStyle = s; |
Hi
How can I get single row in the grid and Influence it?
For sample some rows I need to make read only or invisibility
or maybe different style for selected rows?
Best regards
Ehud