Dear Telerik Team!
I am trying to use "implicit styling" as described in:
http://www.telerik.com/help/wpf/styling-apperance-implicit-styles-overview.html
I added the following files to the project:
Telerik.Windows.Controls.xaml
System.Windows.xaml
Telerik.Windows.Controls.Input.xaml
Telerik.Windows.Controls.Navigation.xaml
Telerik.Windows.Controls.GridView.xaml
Telerik.Windows.Controls.ScheduleView.xaml
I believe these files contain all the styles necessary in our project. I also added the necessary entries to Application.Resources dictionary, removed the "telerik:StyleManager.Theme=""" references from our controls XAML's and finally I removed the initialization of StyleManager.ApplicationTheme to ensure that we really use our "implicit styles".
Now - everything seems to work fine (controls like RadMenu, RadMaskedTextBox and other input controls, RadScheduleView! get the correct styles) except for RadGridView. The RadGridViewStyle doesn't get applied from Telerik.Windows.Controls.GridView.xaml. Any ideas? Are we missing some stylesheet files? Or is it something undocumented in the above article.
Many thanks in advance!
Best regards
Krzysztof Kaźmierczak
<Window x:Class="Management.MainWindow" xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation" Title="MainWindow" Height="768" Width="1366" ResizeMode="NoResize" WindowStyle="None"> <Grid Name="MainGrid"> <Grid.Resources> <DataTemplate x:Key="GroupTemplate"> <Border BorderThickness="1" BorderBrush="Black" Margin="5"> <TextBlock Text="{Binding}" Margin="5,0,0,5" FontWeight="Bold"/> </Border> </DataTemplate> <Style TargetType="telerik:Tile"> <Setter Property="Margin" Value="5,15,0,0"/> </Style> </Grid.Resources> <telerik:RadTileList x:Name="LayoutSetup" GroupTemplate="{StaticResource GroupTemplate}"> <telerik:Tile Group="Continent" Background="Green" TouchUp="Tile_TouchUp" > <TextBlock Text="Europe"/> </telerik:Tile> <telerik:Tile Group="Country" Background="Blue"> <TextBlock Text="Germany"/> </telerik:Tile> <telerik:Tile Group="Continent" Background="Green"> <TextBlock Text="Asia"/> </telerik:Tile> <telerik:Tile Group="Country" Background="Blue"> <TextBlock Text="Italy"/> </telerik:Tile> </telerik:RadTileList> </Grid></Window>Any approaches?
Hi,
My WPF GridView use background color for give some information to user:
- Green, row completed
- Orange, row to be process
- Yellow, row work in progress (WIP)
Actual color selection in grid is yellow. How I can change color selection?
Actualy, I use this RowStyle for change background color.
<controls:RadGridView.RowStyle>
<Style TargetType="gridView:GridViewRow">
<Setter Property="Background" Value="{Binding Color}"></Setter>
</Style>
</controls:RadGridView.RowStyle>
I try with Style.Trigger for IsMouseOver and IsSelected, but the rectangle of selection is always yellow.
I read in your forum that it’s possible override default style.
Can you send me an example in C#?
Consider the following scenario:
A grid populated with data, sorted and grouped by one column.
The row count is larger enough to enable scrollbars to be visible.
Data is added continuously to the grid. When added it is sorted in to the grouped list.
What we would like to achieve is that the current selected row(s) in the grid is “staying still” relative to the grid viewport when data is added to the grid.
We created a test project using Telerik WPF RadGridView, no specific settings in to the grid in XAML, and provided a mock datasource which added one row per second.
What happens is when data is added and sorted in “before” the selected row, the selected row is pushed down, out of the viewport.
Is it possible to have Telerik WPF RadGridView behave as mentioned above, the current visible rows stays put in the viewport even though rows are added above them in the grid?
<CollectionViewSource x:Key="ManagerView"> <CollectionViewSource.SortDescriptions> <cm:SortDescription Direction="Ascending" PropertyName="Name"/> </CollectionViewSource.SortDescriptions></CollectionViewSource><telerik:RadTreeView x:Name="ManagerTreeView" Grid.Row="1" Grid.Column="0" ItemsSource="{Binding Source={StaticResource ManagerView}}"/>CollectionViewSource cvs = this.TopLevelGrid.Resources["ManagerView"] as CollectionViewSource;cvs.Source = RemoteWorkspace.Instance.RemoteManager;