This is a migrated thread and some comments may be shown as answers.

Migration problem from "RadControls for WPF Q1 2011 SP1" to "UI for WPF Q3 2013"

1 Answer 38 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Benoît
Top achievements
Rank 1
Benoît asked on 31 Jan 2014, 04:56 PM
Hi,

I am trying to migrate a project from RadControls for WPF Q1 2011 SP1 version to UI for WPF Q3 2013.

The project was working before changing Telerik dll, now I get this message error :

Error    1    Unknown build error, 'Derived method 'OnItemsCollectionChanged' in type 'Telerik.Windows.Controls.GridView.BaseItemsControl' from assembly 'Telerik.Windows.Controls.GridView, Version=2013.3.1316.40, Culture=neutral, PublicKeyToken=5803cfa389c90ce7' cannot reduce access. Line 1047 Position 51.'   

The line 1047 is the first line of this part of code :

<Style TargetType="{x:Type telerik:RadGridView}">
  <Setter Property="HeaderRowStyle" Value="{DynamicResource MyGridViewHeaderRow}"/>  <Setter Property="Template">
   <Setter.Value>
    <ControlTemplate TargetType="{x:Type telerik:RadGridView}">
     <AdornerDecorator>
      <Border x:Name="PART_MasterGridContainer" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Padding="{TemplateBinding Padding}">
       <Grid x:Name="HierrarchyBackground" Background="{TemplateBinding Background}">
        <Grid.ColumnDefinitions>
         <ColumnDefinition Width="0.032*"/>
         <ColumnDefinition Width="0.968*"/>
         <ColumnDefinition x:Name="ScrollBarColumn" MinWidth="0" Width="0"/>
        </Grid.ColumnDefinitions>
        <Grid.RowDefinitions>
         <RowDefinition Height="Auto"/>
         <RowDefinition x:Name="PART_AttachedBehaviorRow" Height="Auto"/>
         <RowDefinition/>
         <RowDefinition x:Name="ScrollBarRow" Height="0" MinHeight="0"/>
         <RowDefinition Height="Auto"/>
        </Grid.RowDefinitions>
        <telerik:GridViewGroupPanel x:Name="PART_GroupPanel" BorderBrush="#FF848484" Grid.ColumnSpan="2" Foreground="{TemplateBinding GroupPanelForeground}" IsTabStop="False" Grid.Row="0" d:LayoutOverrides="GridBox">
         <telerik:GridViewGroupPanel.Background>
          <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
           <GradientStop Color="#FFDFDFDF" Offset="1"/>
           <GradientStop Color="{DynamicResource ColorTresClair}"/>
          </LinearGradientBrush>
         </telerik:GridViewGroupPanel.Background>
         <telerik:StyleManager.Theme>
          <telerik:Office_BlackTheme/>
         </telerik:StyleManager.Theme>
        </telerik:GridViewGroupPanel>
        <telerik:GridViewScrollViewer x:Name="PART_ItemsScrollViewer" Background="Transparent" CanContentScroll="True" Grid.ColumnSpan="2" Grid.Row="2" Grid.RowSpan="1">         <telerik:GridViewScrollViewer.FooterRow>
          <telerik:GridViewFooterRow x:Name="PART_FooterRow" IsTabStop="False" IndentLevel="{TemplateBinding GroupCount}">
           <telerik:StyleManager.Theme>
            <telerik:Office_BlackTheme/>
           </telerik:StyleManager.Theme>
          </telerik:GridViewFooterRow>
         </telerik:GridViewScrollViewer.FooterRow>
         <telerik:GridViewScrollViewer.HeaderRow>
          <telerik:GridViewHeaderRow x:Name="PART_HeaderRow" IsTabStop="False" IndentLevel="{TemplateBinding GroupCount}">
           <telerik:StyleManager.Theme>
            <telerik:Office_BlackTheme/>
           </telerik:StyleManager.Theme>
          </telerik:GridViewHeaderRow>
         </telerik:GridViewScrollViewer.HeaderRow>
         <telerik:GridViewScrollViewer.NewRow>
          <telerik:GridViewNewRow x:Name="PART_AddNewRow" IsTabStop="False" IndentLevel="{TemplateBinding GroupCount}" Visibility="Collapsed">
           <telerik:StyleManager.Theme>
            <telerik:Office_BlackTheme/>
           </telerik:StyleManager.Theme>
          </telerik:GridViewNewRow>
         </telerik:GridViewScrollViewer.NewRow>
         <telerik:StyleManager.Theme>
          <telerik:Office_BlackTheme/>
         </telerik:StyleManager.Theme>
         <telerik:GridViewVirtualizingPanel x:Name="PART_GridViewVirtualizingPanel"/>
        </telerik:GridViewScrollViewer>
        <telerik:ScrollPositionIndicator x:Name="PART_ScrollPositionIndicator" Grid.ColumnSpan="1" ContentTemplate="{TemplateBinding ScrollPositionIndicatorTemplate}" HorizontalAlignment="Right" IsHitTestVisible="False" IsTabStop="False" Margin="0,0,28,0" Grid.Row="2" Grid.Column="1" d:LayoutOverrides="GridBox">
         <telerik:StyleManager.Theme>
          <telerik:Office_BlackTheme/>
         </telerik:StyleManager.Theme>
         <telerik:ScrollPositionIndicator.Visibility>
          <Binding Mode="TwoWay" Path="IsScrolling" RelativeSource="{RelativeSource TemplatedParent}">
           <Binding.Converter>
            <telerik:BooleanToVisibilityConverter/>
           </Binding.Converter>
          </Binding>
         </telerik:ScrollPositionIndicator.Visibility>
        </telerik:ScrollPositionIndicator>
        <Border x:Name="PART_FrozenColumnsPreview" Background="#33000000" HorizontalAlignment="Stretch" Grid.Row="2" Grid.RowSpan="1" Visibility="Collapsed" VerticalAlignment="Stretch" Width="Auto" Margin="0,0,5,0"/>
        <telerik:GridViewLoadingIndicator x:Name="PART_GridViewLoadingIndicator" Grid.ColumnSpan="2" IsTabStop="False" Grid.RowSpan="3" Visibility="Collapsed">
         <telerik:StyleManager.Theme>
          <telerik:Office_BlackTheme/>
         </telerik:StyleManager.Theme>
        </telerik:GridViewLoadingIndicator>
       </Grid>
      </Border>
     </AdornerDecorator>
     <ControlTemplate.Triggers>
      <Trigger Property="IsBusy" Value="True">
       <Setter Property="Visibility" TargetName="PART_GridViewLoadingIndicator" Value="Visible"/>
      </Trigger>      <Trigger Property="IsBusy" Value="False">
       <Setter Property="Visibility" TargetName="PART_GridViewLoadingIndicator" Value="Collapsed"/>
      </Trigger>      <Trigger Property="ShowColumnFooters" Value="False">
       <Setter Property="Visibility" TargetName="PART_FooterRow" Value="Collapsed"/>
      </Trigger>      <Trigger Property="ShowColumnHeaders" Value="False">
       <Setter Property="Visibility" TargetName="PART_HeaderRow" Value="Collapsed"/>
      </Trigger>
      <Trigger Property="ShowGroupPanel" Value="False">
       <Setter Property="Visibility" TargetName="PART_GroupPanel" Value="Collapsed"/>
      </Trigger>
      <Trigger Property="ComputedVerticalScrollBarVisibility" SourceName="PART_ItemsScrollViewer" Value="Collapsed">
       <Setter Property="Width" TargetName="ScrollBarColumn" Value="0"/>
      </Trigger>
      <Trigger Property="ComputedHorizontalScrollBarVisibility" SourceName="PART_ItemsScrollViewer" Value="Collapsed">
       <Setter Property="Height" TargetName="ScrollBarRow" Value="0"/>
       <Setter Property="Grid.RowSpan" TargetName="PART_ItemsScrollViewer" Value="1"/>
      </Trigger>      <Trigger Property="ShowInsertRow" Value="True">
       <Setter Property="Visibility" TargetName="PART_AddNewRow" Value="Visible"/>
      </Trigger>     </ControlTemplate.Triggers>    </ControlTemplate>
   </Setter.Value>  </Setter>  <Setter Property="Background" Value="White"/>
  <Setter Property="BorderBrush" Value="#FF848484"/>
  <Setter Property="Foreground" Value="Black"/>
  <Setter Property="BorderThickness" Value="1"/>
  <Setter Property="AlternateRowBackground" Value="#FFF4F4F4"/>
  <Setter Property="VerticalGridLinesBrush" Value="#FFCBCBCB"/>
  <Setter Property="HorizontalGridLinesBrush" Value="#FFCBCBCB"/>
  <Setter Property="GroupPanelBackground">   <Setter.Value>
    <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
     <GradientStop Color="#FFDFDFDF" Offset="1"/>
     <GradientStop Color="#FFBABABA"/>
    </LinearGradientBrush>   </Setter.Value>
  </Setter>  <Setter Property="ScrollViewer.HorizontalScrollBarVisibility" Value="Auto"/>
  <Setter Property="ScrollViewer.VerticalScrollBarVisibility" Value="Auto"/>  <Setter Property="VerticalAlignment" Value="Stretch"/>
  <Setter Property="HorizontalAlignment" Value="Stretch"/>
  <Setter Property="SnapsToDevicePixels" Value="True"/>
 </Style>


I don't really understand this message error, could you please help me with this issue.


Regards,

BenoƮt.

1 Answer, 1 is accepted

Sort by
0
Benoît
Top achievements
Rank 1
answered on 03 Feb 2014, 09:24 AM
Sorry problem solved... the Telerik.Windows.Data was not the good version. I have a new problem but I have taken a support ticket.

Thanks,

BenoƮt

Tags
GridView
Asked by
Benoît
Top achievements
Rank 1
Answers by
Benoît
Top achievements
Rank 1
Share this question
or