This question is locked. New answers and comments are not allowed.
Hello, I am working on a project where i use the radgridview control
since my project require alot of custom styling i have imported the Telerik.Windows.Controls.GridView.xaml from the windows8 theme into my project. but i have problems styling the inputboxes and match case button on the filter control.
i have managed to in the style PART_Filter1ContentControl and PART_Filter2ContentControl
which are two contentcontrols, i guess there is some radinput control that i need to import the style files into my project, but i cant figure out which one
since my project require alot of custom styling i have imported the Telerik.Windows.Controls.GridView.xaml from the windows8 theme into my project. but i have problems styling the inputboxes and match case button on the filter control.
i have managed to in the style PART_Filter1ContentControl and PART_Filter2ContentControl
which are two contentcontrols, i guess there is some radinput control that i need to import the style files into my project, but i cant figure out which one
<ControlTemplate x:Key="FilteringControlTemplate" TargetType="grid:FilteringControl"> <Grid Background="Transparent" > <Border BorderThickness="{TemplateBinding BorderThickness}" Background="{TemplateBinding Background}" Margin="{TemplateBinding Margin}" BorderBrush="{TemplateBinding BorderBrush}"> <Border.Effect> <DropShadowEffect Opacity="0.3" BlurRadius="10" ShadowDepth="3" Direction="270" /> </Border.Effect> <StackPanel MinWidth="254" MaxHeight="584" Margin="{TemplateBinding Padding}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"> <StackPanel x:Name="PART_DistinctFilter" Visibility="{TemplateBinding DistinctFiltersVisibility}"> <CheckBox x:Name="PART_SelectAllCheckBox" Margin="2,6,0,8" IsChecked="{Binding SelectAll, Mode=TwoWay}" Content="{Binding LocalizedStrings.view_gridview_velgalle, Source={StaticResource LocalizedStrings}}" telerik:StyleManager.Theme="{StaticResource Theme}" /> <ListBox x:Name="PART_DistinctValuesList" MaxWidth="797" ItemsSource="{Binding DistinctValues}" Style="{StaticResource GridviewListboxStyle}" ScrollViewer.HorizontalScrollBarVisibility="Auto" BorderThickness="0" ItemContainerStyle="{StaticResource DistinctValueListBoxItemStyle}" SelectionMode="Multiple"> <ListBox.ItemsPanel> <ItemsPanelTemplate> <VirtualizingStackPanel MaxHeight="246" /> </ItemsPanelTemplate> </ListBox.ItemsPanel> <ListBox.ItemTemplate> <DataTemplate> <CheckBox x:Name="FunnelCheck" IsChecked="{Binding IsActive, Mode=TwoWay}" Content="{Binding ConvertedValue, Converter={StaticResource DistinctValueConverter}}" VerticalContentAlignment="Center" Margin="-1,0,0,0" telerik:StyleManager.Theme="{StaticResource Theme}"> </CheckBox> </DataTemplate> </ListBox.ItemTemplate> </ListBox> </StackPanel> <StackPanel Visibility="{TemplateBinding FieldFiltersVisibility}" Margin="0,0,12,0"> <TextBlock Margin="0,6,65,6" Style="{StaticResource TextBlockStyle_PageSubHeaderSecondary}" Text="{Binding LocalizedStrings.view_gridview_visrader, Source={StaticResource LocalizedStrings}}" /> <input:RadComboBox x:Name="PART_Filter1ComboBox" ItemTemplate="{StaticResource ActionTemplate}" telerik:StyleManager.Theme="{StaticResource Theme}" ItemsSource="{Binding AvailableActions}" SelectedItem="{Binding Filter1.Operator, Mode=TwoWay}" /> <ContentControl x:Name="PART_Filter1ContentControl" DataContext="{Binding Filter1}" Margin="0,3,0,3" Background="{Binding DataContext.Background,ElementName=LayoutRoot}" IsEnabled="{Binding Operator, Converter={StaticResource FilterOperatorToFilterEditorIsEnabledConverter}}" HorizontalContentAlignment="Stretch" VerticalContentAlignment="Stretch" /> <input:RadComboBox x:Name="PART_LogicalOperatorsComboBox" telerik:StyleManager.Theme="{StaticResource Theme}" ItemTemplate="{StaticResource LogicalOperatorTemplate}" Margin="0,3,0,3" ItemsSource="{Binding LogicalOperators}" SelectedItem="{Binding FieldFilterLogicalOperator, Mode=TwoWay}" /> <input:RadComboBox x:Name="PART_Filter2ComboBox" telerik:StyleManager.Theme="{StaticResource Theme}" ItemTemplate="{StaticResource ActionTemplate}" Margin="0,3,0,3" ItemsSource="{Binding AvailableActions}" SelectedItem="{Binding Filter2.Operator, Mode=TwoWay}" /> <ContentControl x:Name="PART_Filter2ContentControl" Margin="0,3,0,3" Background="{Binding DataContext.Background,ElementName=LayoutRoot}" DataContext="{Binding Filter2}" IsEnabled="{Binding Operator, Converter={StaticResource FilterOperatorToFilterEditorIsEnabledConverter}}" HorizontalContentAlignment="Stretch" VerticalContentAlignment="Stretch" /> </StackPanel> <Grid Margin="0,0,12,0"> <Grid.ColumnDefinitions> <ColumnDefinition /> </Grid.ColumnDefinitions> <Button Grid.Column="0" x:Name="PART_ApplyFilterButton" Margin="0,12,90,0" HorizontalAlignment="Right" VerticalAlignment="Center" Style="{StaticResource ParkaRoundImageButtonStyleSmallWithText}" > <Grid Height="50"> <sdk:DataGrid Style="{StaticResource IconRoundFilterAdd}" VerticalAlignment="Top"></sdk:DataGrid> <TextBlock Text="{Binding LocalizedStrings.view_gridview_filteradd, Source={StaticResource LocalizedStrings}}" VerticalAlignment="Bottom" HorizontalAlignment="Center" Style="{StaticResource TextBlockStyle_Control}" /> </Grid> </Button> <Button Grid.Column="0" x:Name="PART_ClearFilterButton" Margin="0,12,12,0" HorizontalAlignment="Right" VerticalAlignment="Center" Style="{StaticResource ParkaRoundImageButtonStyleSmallWithText}" > <Grid Height="50"> <sdk:DataGrid Style="{StaticResource IconRoundFilterRemove}" VerticalAlignment="Top"></sdk:DataGrid> <TextBlock Text="{Binding LocalizedStrings.view_gridview_tomfilter, Source={StaticResource LocalizedStrings}}" VerticalAlignment="Bottom" HorizontalAlignment="Center" Style="{StaticResource TextBlockStyle_Control}" /> </Grid> </Button> </Grid> </StackPanel> </Border> </Grid> </ControlTemplate>