Hi,
I have recently upgraded my project from Silverlight 4 to Silverlight 5. I was using Infragistics 2011 vol 1 previously which I've uninstalled and installed 2012 vol 2. The project was not giving any compilation/run-time error before up-gradation. During upgrade process I didn't change any XAML or C# source code, but simply changed Infragistics dll references. When I executed the project, I see following exception. I could not find the exact location of exception in debugging mode.
Could someone please help me in this?
Hello Rohan,
Thank you for your post. I have been looking into it but since this is not a known issue, I am not able to conclude what can cause such behavior, so could you please send an isolated sample project, where the issue is reproduced, so I can investigate it further for you.
Looking forward for your reply.
Hi Stefan,
Thanks for your reply...
When I was using Infragistics 2011 version, there used to be "InfragisticsSL4.Controls.Editors.v11.2" dll reference in my project. Now, in 2012 vol 2, I could not find that dll to refer to. Could you please guide me on this? I don't know if that has caused any problem or not, I'm simply trying to find out the possibility...
Thanks and Regards,
Rohan
I have been looking into the message you attached, but I am still not able to conclude what can casue this behavior. If you could send me an isolated sample project where this is reproduced I will be able to investigate this further for you.
I understand the need of sample solution for you to investigate. So, I am working on the same and creating a separate solution which I'll upload here for your reference. I just need to know, what is the alternate option for xamNumericEditor and xamWebChart in 2012 vol 2? I was using those two controls but during upgradation to Silverlight 5 and Infragistics 2012 vol 2, I have simply commented the related code. [I am asking this to you because, I just want to find out every single reason that may cause the exception because the entire code works properly with Silverlight 4 and Infragistics 2011 vol 2.]
Thanks & Regards,
rohanb said: I just need to know, what is the alternate option for xamNumericEditor and xamWebChart in 2012 vol 2?
I just need to know, what is the alternate option for xamNumericEditor and xamWebChart in 2012 vol 2?
The alternatives are XamNumericInput and XamDataChart.
On the exception issue: Could you just post the XAML code for your Ribbon ?
Thanks,
Hi Georgi,
Thanks for your reply, I have also found the alternate controls for xamNumericEditor and xamWebChart and I'm making use of them. :)
And here is the code for XamRibbon:
<ig:XamRibbon Grid.Row="1" ApplicationMenuMode="Office2010" x:Name="ribbon" Caption="Not yet logged in...">
<ig:XamRibbon.QuickAccessToolbar>
<ig:QuickAccessToolbar OverflowButtonVisibility="Visible" HorizontalContentAlignment="Center" Width="Auto">
<ig:QatPlaceholderTool TargetId="Help" TargetType="Tool"></ig:QatPlaceholderTool>
<ig:QatPlaceholderTool TargetId="Clipboard" TargetType="RibbonGroup"></ig:QatPlaceholderTool>
</ig:QuickAccessToolbar>
</ig:XamRibbon.QuickAccessToolbar>
<ig:XamRibbon.ApplicationMenu2010>
<ig:XamRibbonApplicationMenu2010 Opacity="1" Visibility="Visible" Caption="File" Foreground="White">
<!-- Save Button -->
<ig:ButtonTool Caption="Save Preferences" LargeImage="/ABC.DEF.Client.ResourceLibrary;component/Assets/Images/Ribbon/Save16.png" x:Name="RibbonAppMenuSave" Click="RibbonAppMenuSave_Click"/>
<!-- Close Button -->
<ig:ButtonTool Caption="Close" LargeImage="/ABC.DEF.Client.ResourceLibrary;component/Assets/Images/Ribbon/Close32.png"/>
<!-- About ApplicationMenu -->
<ig:Office2010ApplicationMenuTabTool Caption="About" Id="AboutApplicationMenuId">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="50"/>
<RowDefinition Height="100"/>
<RowDefinition Height="*"/>
<RowDefinition Height="32"/>
</Grid.RowDefinitions>
<Border Style="{StaticResource OptionsHeadingBorder}">
<TextBlock Grid.Row="0" Style="{StaticResource OptionsHeading}">About</TextBlock>
</Border>
<Grid Grid.Row="1">
<RowDefinition/>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="100"/>
<ColumnDefinition Width="*"/>
</Grid.ColumnDefinitions>
<TextBlock Grid.Row="0">Version:</TextBlock>
<TextBlock Grid.Row="0" Grid.Column="1">0.5.0.0</TextBlock>
<TextBlock Grid.Row="1">Database Version:</TextBlock>
<TextBlock Grid.Row="1" Grid.Column="1">?.?.?.?</TextBlock>
</Grid>
<Grid Grid.Row="2">
<TextBlock Text="© 2012 COMPANY NAME"/>
<Border Grid.Row="3" Style="{StaticResource OptionsHeadingBorder}">
<ABCLibrary:ABCHyperlinkButton Grid.Column="0" TargetName="_blank" Click="GetStarted_Click">Help</ABCLibrary:ABCHyperlinkButton>
<ABCLibrary:ABCHyperlinkButton Grid.Column="1" NavigateUri="http://www.google.com/" TargetName="_blank">COMPANY NAME</ABCLibrary:ABCHyperlinkButton>
</ig:Office2010ApplicationMenuTabTool>
<!-- Help ApplicationMenu -->
<ig:Office2010ApplicationMenuTabTool Caption="Options" Id="OptionsApplicationMenuId" >
<ScrollViewer HorizontalScrollBarVisibility="Auto" VerticalScrollBarVisibility="Auto">
<RowDefinition Height="Auto"/>
<ColumnDefinition Width="Auto"/>
<StackPanel Grid.Row="0" Grid.Column="0" Margin="5">
<TextBlock Text="Ribbon Options" Style="{StaticResource OptionsHeading}"/>
<CheckBox Grid.Row="0" Content="Have quick address bar above the ribbon?" Grid.Column="0" x:Name="chkQABAboveRibbon" Loaded="chkQABAboveRibbon_Loaded" Click="chkQABAboveRibbon_Click" />
<CheckBox Grid.Row="1" Content="Ribbon starts minimized?" Grid.Column="0" x:Name="chkRibbonMinimized" Loaded="chkRibbonMinimized_Loaded" Click="chkRibbonMinimized_Click"/>
</StackPanel>
<StackPanel Grid.Row="0" Grid.Column="1" Margin="5">
<TextBlock Text="Menu Options" Style="{StaticResource OptionsHeading}"/>
<CheckBox Grid.Row="0" Content="Menu starts minimized?" Grid.Column="0" x:Name="chkMenuMinimized" Loaded="chkMenuMinimized_Loaded" Click="chkMenuMinimized_Click"/>
<CheckBox Grid.Row="1" Content="Status bar is visible?" Grid.Column="0" x:Name="chkStatusBarVisible" Loaded="chkStatusBarVisible_Loaded" Click="chkStatusBarVisible_Click"/>
<StackPanel Grid.Row="1" Grid.Column="1" Margin="5">
<TextBlock Text="Favorites" Style="{StaticResource OptionsHeading}"/>
<TextBlock MaxWidth="300" Text="Check and uncheck items to add and remove them from your favourites" TextWrapping="Wrap" Margin="0,0,0,8" />
<StackPanel x:Name="FavouritesList" Loaded="FavouritesList_Loaded"/>
<StackPanel Grid.Row="1" Grid.Column="0" Margin="5">
<TextBlock Text="Default Forms" Style="{StaticResource OptionsHeading}"/>
<TextBlock MaxWidth="300" Text="Default forms will be launched as soon as you have logged into the application. Check abd uncheck items to add and remove them from your default forms" TextWrapping="Wrap" Margin="0,0,0,8" />
<StackPanel x:Name="DefaultList" Loaded="DefaultList_Loaded"/>
</ScrollViewer>
<!-- Exit Button -->
<ig:ButtonTool Caption="Exit" LargeImage="Delete16.png"/>
</ig:XamRibbonApplicationMenu2010>
</ig:XamRibbon.ApplicationMenu2010>
<ig:XamRibbon.Tabs>
<!-- Add Home XamRibbonTab-->
<ig:XamRibbonTabItem KeyTip="H" Header="Home" IsSelected="True">
<!-- Add Help XamRibbonGroup -->
<ig:XamRibbonGroup Caption="Help" Id="WKB_HELP_GRP" SmallImage="/ABC.DEF.Client.ResourceLibrary;component/Assets/Images/Ribbon/Help64.png">
<ig:ButtonTool x:Name="LogOffButtonTool" Id="WKB_LOG_OFF" Caption="Log Off" MaximumSize="ImageAndTextLarge" LargeImage="/ABC.DEF.Client.ResourceLibrary;component/Assets/Images/Ribbon/logoff32.png" SmallImage="/ABC.DEF.Client.ResourceLibrary;component/Assets/Images/Ribbon/logoff64.png" Click="RibbonButtonClick" IsQatCommonTool="True"/>
<ig:ButtonTool x:Name="HelpButtonTool" Id="WKB_HELP" Caption="Help" MaximumSize="ImageAndTextLarge" LargeImage="/ABC.DEF.Client.ResourceLibrary;component/Assets/Images/Ribbon/Help64.png" SmallImage="/ABC.DEF.Client.ResourceLibrary;component/Assets/Images/Ribbon/Help64.png" Click="RibbonButtonClick" IsQatCommonTool="True"/>
<ig:ButtonTool x:Name="AddToFavouritesButtonTool" Id="WKB_ADD_TO_FAVOURITES" Caption="Add To Favourites" MaximumSize="ImageAndTextLarge" LargeImage="/ABC.DEF.Client.ResourceLibrary;component/Assets/Images/Favourites32.png" SmallImage="/ABC.DEF.Client.ResourceLibrary;component/Assets/Images/Favourites16.png" Click="RibbonButtonClick" IsQatCommonTool="True"/>
<ig:ButtonTool x:Name="AddToDefaultButtonTool" Id="WKB_ADD_TO_DEFAULT" Caption="Add To Defaults" MaximumSize="ImageAndTextLarge" LargeImage="/ABC.DEF.Client.ResourceLibrary;component/Assets/Images/Ribbon/AddDefaultForm.png" SmallImage="/ABC.DEF.Client.ResourceLibrary;component/Assets/Images/Ribbon/AddDefaultForm.png" Click="RibbonButtonClick" IsQatCommonTool="False"/>
</ig:XamRibbonGroup>
<!-- Add Main XamRibbonGroup -->
<ig:XamRibbonGroup Caption="Main" Id="Main">
<ig:XamRibbonGroup.DialogButton>
<ig:ButtonTool IsQatCommonTool="True" Id="WKB_MAIN_DLG"/>
</ig:XamRibbonGroup.DialogButton>
<ig:ButtonTool x:Name="SaveButtonTool" Id="WKB_SAVE" Caption="Save" MaximumSize="ImageAndTextLarge" LargeImage="/ABC.DEF.Client.ResourceLibrary;component/Assets/Images/Ribbon/save32.png" SmallImage="/ABC.DEF.Client.ResourceLibrary;component/Assets/Images/Ribbon/save16.png" Click="RibbonButtonClick" IsQatCommonTool="True"/>
<ig:ButtonTool x:Name="NewButtonTool" Id="WKB_NEW" Caption="New" MaximumSize="ImageAndTextLarge" LargeImage="/ABC.DEF.Client.ResourceLibrary;component/Assets/Images/Ribbon/NewAdd32.png" SmallImage="/ABC.DEF.Client.ResourceLibrary;component/Assets/Images/Ribbon/NewAdd16.png" Click="RibbonButtonClick" IsQatCommonTool="True"/>
<ig:ButtonTool x:Name="DeleteButtonTool" Id="WKB_DELETE" Caption="Delete" MaximumSize="ImageAndTextLarge" LargeImage="/ABC.DEF.Client.ResourceLibrary;component/Assets/Images/Ribbon/Delete32.png" SmallImage="/ABC.DEF.Client.ResourceLibrary;component/Assets/Images/Ribbon/Delete16.png" Click="RibbonButtonClick" IsQatCommonTool="True"/>
<ig:XamRibbonGroup Caption="Search" Id="Search">
<ig:ButtonTool x:Name="AdvancedSearchDialog" Id="WKB_ADVANCED_SEARCH" Caption="Advanced Search" IsQatCommonTool="False" Click="RibbonButtonClick"/>
<ABCLibrary:ABCSearchTextBoxTool Caption="Search" Id="WKB_SEARCH" ContextCaption="Search" x:Name="SearchTextBox" Foreground="#ff555555" EnterKeyDown="SearchTextBox_SearchClick" SearchClick="SearchTextBox_SearchClick" IsQatCommonTool="False"/>
<!-- Add Clipboard XamRibbonGroup -->
<ig:XamRibbonGroup Caption="Clipboard" Id="Clipboard" SmallImage="/ABC.DEF.Client.ResourceLibrary;component/Assets/Images/Ribbon/cut16.png">
<ig:SegmentedMenuTool Caption="Paste"
MaximumSize="ImageAndTextLarge" LargeImage="/ABC.DEF.Client.ResourceLibrary;component/Assets/Images/Ribbon/paste32.png" SmallImage="/ABC.DEF.Client.ResourceLibrary;component/Assets/Images/Ribbon/paste16.png">
<ig:ButtonTool Caption="Paste" Id="WKB_PASTE" MaximumSize="ImageAndTextNormal"
SmallImage="/ABC.DEF.Client.ResourceLibrary;component/Assets/Images/Ribbon/paste16.png" Click="RibbonButtonClick"/>
<ig:ButtonTool Caption="Paste Special" Id="WKB_PASTE_SPECIAL" MaximumSize="ImageAndTextNormal"
</ig:SegmentedMenuTool>
<ig:VerticalRibbonToolContainer>
<ig:ButtonTool x:Name="CutButtonTool" Id="WKB_CUT" Caption="Cut" MaximumSize="ImageAndTextNormal"
SmallImage="/ABC.DEF.Client.ResourceLibrary;component/Assets/Images/Ribbon/cut16.png" IsQatCommonTool="False" KeyTip="Cut Data from current Control" Click="RibbonButtonClick" />
<ig:ButtonTool x:Name="CopyButtonTool" Id="WKB_COPY" Caption="Copy" MaximumSize="ImageAndTextNormal"
SmallImage="/ABC.DEF.Client.ResourceLibrary;component/Assets/Images/Ribbon/Copy16.png" Click="RibbonButtonClick" IsQatCommonTool="False"/>
</ig:VerticalRibbonToolContainer>
<!-- End Text Style XamRibbonGroup-->
</ig:XamRibbonTabItem>
<!-- Add Grid XamRibbonTab-->
<ig:XamRibbonTabItem KeyTip="G" Header="Grid" x:Name="GridRibbonTab">
<!-- Contacts Group -->
<ig:XamRibbonGroup Id="RowOperationsGridGroup" Caption="Row Operations">
<ig:ButtonTool Caption="Advanced" Id="WKB_ADVANCED_ROWOPS" Description="Advanced"/>
<ig:ButtonTool Id="WKB_INSERT_ROW" IsQatCommonTool="True" Caption="Insert Row" LargeImage="/ABC.DEF.Client.ResourceLibrary;component/Assets/Images/Ribbon/icon_insert.png" SmallImage="/ABC.DEF.Client.ResourceLibrary;component/Assets/Images/Ribbon/icon_insert.png" MaximumSize="ImageAndTextLarge" MinimumSize="ImageOnly" Click="RibbonButtonClick"/>
<ig:ButtonTool Id="WKB_DELETE_ROW" IsQatCommonTool="True" Caption="Delete Row" LargeImage="/ABC.DEF.Client.ResourceLibrary;component/Assets/Images/Ribbon/icon_delete.png" SmallImage="/ABC.DEF.Client.ResourceLibrary;component/Assets/Images/Ribbon/icon_delete.png" MaximumSize="ImageAndTextLarge" MinimumSize="ImageOnly" Click="RibbonButtonClick"/>
<ig:ButtonTool Id="WKB_EXPORT_TO_EXCEL" IsQatCommonTool="True" Caption="Export to Excel" LargeImage="/ABC.DEF.Client.ResourceLibrary;component/Assets/Images/Ribbon/icon_excel.png" SmallImage="/ABC.DEF.Client.ResourceLibrary;component/Assets/Images/Ribbon/icon_excel.png" MaximumSize="ImageAndTextLarge" MinimumSize="ImageOnly" Click="RibbonButtonClick" />
<ig:ButtonTool Caption="Expand All" Id="WKB_EXPAND_ALL" LargeImage="/ABC.DEF.Client.ResourceLibrary;component/Assets/Images/Ribbon/Copy32.png" SmallImage="/ABC.DEF.Client.ResourceLibrary;component/Assets/Images/Ribbon/Copy16.png" Click="RibbonButtonClick" IsQatCommonTool="False"/>
<ig:ButtonTool Caption="Collapse All" Id="WKB_COLLAPSE_ALL" LargeImage="/ABC.DEF.Client.ResourceLibrary;component/Assets/Images/Ribbon/Cancel32.png" SmallImage="/ABC.DEF.Client.ResourceLibrary;component/Assets/Images/Ribbon/Cancel16.png" Click="RibbonButtonClick" MaximumSize="ImageAndTextLarge" IsQatCommonTool="False"/>
<ABCLibrary:ABCRowHighlightTool Id="WKB_ROW_HIGHLIGHT" Caption="Row Highlight" CheckedChanged="ABCRowHighlightTool_CheckedChanged" IsQatCommonTool="False"/>
<ig:XamRibbonGroup Id="ColumnOperationsGridGroup" Caption="Column Ops">
<ig:MenuTool Caption="Clear" SmallImage="/ABC.DEF.Client.ResourceLibrary;component/Assets/Images/Ribbon/ClearFiltering16.png" LargeImage="/ABC.DEF.Client.ResourceLibrary;component/Assets/Images/Ribbon/ClearFiltering32.png" MaximumSize="ImageAndTextLarge" IsQatCommonTool="False">
<ig:ButtonTool Caption="Filters" Id="WKB_FILTERS" SmallImage="/ABC.DEF.Client.ResourceLibrary;component/Assets/Images/Ribbon/ClearFiltering16.png" LargeImage="/ABC.DEF.Client.ResourceLibrary;component/Assets/Images/Ribbon/ClearFiltering32.png" MaximumSize="ImageAndTextNormal" Click="RibbonButtonClick" IsQatCommonTool="False"/>
<ig:ButtonTool Caption="Sorts" Id="WKB_SORTS" SmallImage="/ABC.DEF.Client.ResourceLibrary;component/Assets/Images/Ribbon/ClearFiltering16.png" LargeImage="/ABC.DEF.Client.ResourceLibrary;component/Assets/Images/Ribbon/ClearFiltering32.png" MaximumSize="ImageAndTextNormal" Click="RibbonButtonClick" IsQatCommonTool="False"/>
<ig:ButtonTool Caption="Both" Id="WKB_BOTH_SORT_FILTER" SmallImage="/ABC.DEF.Client.ResourceLibrary;component/Assets/Images/Ribbon/ClearFiltering16.png" LargeImage="/ABC.DEF.Client.ResourceLibrary;component/Assets/Images/Ribbon/ClearFiltering32.png" MaximumSize="ImageAndTextNormal" Click="RibbonButtonClick" IsQatCommonTool="False"/>
</ig:MenuTool>
<ig:XamRibbonGroup Id="SettingGridGroup" Caption="Settings" >
<ig:ButtonTool Caption="Advanced" Id="WKB_ADVANCED_GRID_SETTINGS" Description="Advanced" IsQatCommonTool="False"/>
<ig:MenuTool IsQatCommonTool="False" Caption="Filtering" SmallImage="/ABC.DEF.Client.ResourceLibrary;component/Assets/Images/Ribbon/Filtering16.png" LargeImage="/ABC.DEF.Client.ResourceLibrary;component/Assets/Images/Ribbon/Filtering32.png" MaximumSize="ImageAndTextLarge">
<ig:RadioButtonTool Id="WKB_FILTER_ROW_TOP" GroupName="FilterGroup" Caption="Filter Row Top" SmallImage="/ABC.DEF.Client.ResourceLibrary;component/Assets/Images/Ribbon/Filtering16.png" LargeImage="/ABC.DEF.Client.ResourceLibrary;component/Assets/Images/Ribbon/Filtering32.png" MaximumSize="ImageAndTextNormal" Click="RibbonButtonClick"/>
<ig:RadioButtonTool Id="WKB_FILTER_ROW_BOTTOM" GroupName="FilterGroup" Caption="Filter Row Bottom" SmallImage="/ABC.DEF.Client.ResourceLibrary;component/Assets/Images/Ribbon/Filtering16.png" LargeImage="/ABC.DEF.Client.ResourceLibrary;component/Assets/Images/Ribbon/Filtering32.png" MaximumSize="ImageAndTextNormal" Click="RibbonButtonClick"/>
<ig:RadioButtonTool Id="WKB_FILTER_MENU" GroupName="FilterGroup" Caption="Filter Menu" SmallImage="/ABC.DEF.Client.ResourceLibrary;component/Assets/Images/Ribbon/Filtering16.png" LargeImage="/ABC.DEF.Client.ResourceLibrary;component/Assets/Images/Ribbon/Filtering32.png" MaximumSize="ImageAndTextNormal" Click="RibbonButtonClick"/>
<ig:RadioButtonTool Id="WKB_DISABLE_FILTERING" GroupName="FilterGroup" Caption="Disable Filtering" SmallImage="/ABC.DEF.Client.ResourceLibrary;component/Assets/Images/Ribbon/Filtering16.png" LargeImage="/ABC.DEF.Client.ResourceLibrary;component/Assets/Images/Ribbon/Filtering32.png" MaximumSize="ImageAndTextNormal" Click="RibbonButtonClick"/>
<ig:MenuTool IsQatCommonTool="False" Caption="Summaries" SmallImage="/ABC.DEF.Client.ResourceLibrary;component/Assets/Images/Ribbon/Summaries16.png" LargeImage="/ABC.DEF.Client.ResourceLibrary;component/Assets/Images/Ribbon/Summaries32.png" MaximumSize="ImageAndTextLarge">
<ig:RadioButtonTool Id="WKB_SUMMARY_ROW_TOP" GroupName="SummaryGroup" Caption="Summary Row Top" SmallImage="/ABC.DEF.Client.ResourceLibrary;component/Assets/Images/Ribbon/Summaries16.png" LargeImage="/ABC.DEF.Client.ResourceLibrary;component/Assets/Images/Ribbon/Summaries32.png" MaximumSize="ImageAndTextNormal" Click="RibbonButtonClick" IsQatCommonTool="False"/>
<ig:RadioButtonTool Id="WKB_SUMMARY_ROW_BOTTOM" GroupName="SummaryGroup" Caption="Summary Row Bottom" SmallImage="/ABC.DEF.Client.ResourceLibrary;component/Assets/Images/Ribbon/Summaries16.png" LargeImage="/ABC.DEF.Client.ResourceLibrary;component/Assets/Images/Ribbon/Summaries32.png" MaximumSize="ImageAndTextNormal" Click="RibbonButtonClick" IsQatCommonTool="False"/>
<ig:RadioButtonTool Id="WKB_SUMMARY_ROW_BOTH" GroupName="SummaryGroup" Caption="Summary Row Both" SmallImage="/ABC.DEF.Client.ResourceLibrary;component/Assets/Images/Ribbon/Summaries16.png" LargeImage="/ABC.DEF.Client.ResourceLibrary;component/Assets/Images/Ribbon/Summaries32.png" MaximumSize="ImageAndTextNormal" Click="RibbonButtonClick" IsQatCommonTool="False"/>
<ig:RadioButtonTool Id="WKB_DISABLE_SUMMARIES" GroupName="SummaryGroup" Caption="Disable Summaries" SmallImage="/ABC.DEF.Client.ResourceLibrary;component/Assets/Images/Ribbon/Summaries16.png" LargeImage="/ABC.DEF.Client.ResourceLibrary;component/Assets/Images/Ribbon/Summaries32.png" MaximumSize="ImageAndTextNormal" Click="RibbonButtonClick" IsQatCommonTool="False"/>
<ig:MenuTool IsQatCommonTool="False" Caption="Paging" SmallImage="/ABC.DEF.Client.ResourceLibrary;component/Assets/Images/Ribbon/Paging16.png" LargeImage="/ABC.DEF.Client.ResourceLibrary;component/Assets/Images/Ribbon/Paging32.png" MaximumSize="ImageAndTextLarge">
<ig:RadioButtonTool Id="WKB_PAGER_TOP" GroupName="PagingGroup" Caption="Pager Top" SmallImage="/ABC.DEF.Client.ResourceLibrary;component/Assets/Images/Ribbon/Paging16.png" LargeImage="/ABC.DEF.Client.ResourceLibrary;component/Assets/Images/Ribbon/Paging32.png" MaximumSize="ImageAndTextNormal" Click="RibbonButtonClick" IsQatCommonTool="False"/>
<ig:RadioButtonTool Id="WKB_PAGER_BOTTOM" GroupName="PagingGroup" Caption="Pager Bottom" SmallImage="/ABC.DEF.Client.ResourceLibrary;component/Assets/Images/Ribbon/Paging16.png" LargeImage="/ABC.DEF.Client.ResourceLibrary;component/Assets/Images/Ribbon/Paging32.png" MaximumSize="ImageAndTextNormal" Click="RibbonButtonClick" IsQatCommonTool="False"/>
<ig:RadioButtonTool Id="WKB_PAGER_BOTH" GroupName="PagingGroup" Caption="Pager Both" SmallImage="/ABC.DEF.Client.ResourceLibrary;component/Assets/Images/Ribbon/Paging16.png" LargeImage="/ABC.DEF.Client.ResourceLibrary;component/Assets/Images/Ribbon/Paging32.png" MaximumSize="ImageAndTextNormal" Click="RibbonButtonClick" IsQatCommonTool="False"/>
<ig:RadioButtonTool Id="WKB_DISABLE_PAGER" GroupName="PagingGroup" Caption="Disable Pager" SmallImage="/ABC.DEF.Client.ResourceLibrary;component/Assets/Images/Ribbon/Paging16.png" LargeImage="/ABC.DEF.Client.ResourceLibrary;component/Assets/Images/Ribbon/Paging32.png" MaximumSize="ImageAndTextNormal" Click="RibbonButtonClick" IsQatCommonTool="False"/>
<ig:SeparatorTool/>
<ig:MenuTool Caption="Paging Size" IsQatCommonTool="False" >
<ig:RadioButtonTool Id="WKB_10" Caption="10" Click="RibbonButtonClick"/>
<ig:RadioButtonTool Id="WKB_20" Caption="20" Click="RibbonButtonClick"/>
<ig:RadioButtonTool Id="WKB_30" Caption="30" Click="RibbonButtonClick"/>
<ig:RadioButtonTool Id="WKB_40" Caption="40" Click="RibbonButtonClick"/>
<ig:RadioButtonTool Id="WKB_50" Caption="50" Click="RibbonButtonClick"/>
<ig:CheckBoxTool Id="WKB_ENABLE_SORTING" Caption="Enable Sorting" Checked="RibbonButtonClick" Unchecked="RibbonButtonClick" IsQatCommonTool="False"/>
<ig:CheckBoxTool Id="WKB_ENABLE_ROW_SELECTORS" Caption="Enable Row Selectors" Checked="RibbonButtonClick" Unchecked="RibbonButtonClick" IsQatCommonTool="False"/>
<ig:XamRibbonGroup Id="SETTINGS_COLUMNGROUP" Caption="Column Settings">
<ig:CheckBoxTool Id="WKB_ENABLE_COLUMN_MOVING" Caption="Enable Column Moving" Checked="RibbonButtonClick" Unchecked="RibbonButtonClick" IsQatCommonTool="False"/>
<ig:CheckBoxTool Id="WKB_ENABLE_COLUMN_FIXING" Caption="Enable Column Fixing" Checked="RibbonButtonClick" Unchecked="RibbonButtonClick" IsQatCommonTool="False"/>
<ig:CheckBoxTool Id="WKB_ENABLE_COLUMN_RESIZING" Caption="Enable Column Resizing" Checked="RibbonButtonClick" Unchecked="RibbonButtonClick" IsQatCommonTool="False"/>
<ig:CheckBoxTool Id="WKB_ENABLE_COLUMN_HIDING" Caption="Enable Column Hiding" Checked="RibbonButtonClick" Unchecked="RibbonButtonClick" IsQatCommonTool="False"/>
<ig:XamRibbonGroup Caption="General">
<ig:ButtonTool Id="WKB_SAVE_GRID_SETTINGS" x:Name="SaveGridSettingsButtonTool" Caption="Save Grid Settings" MaximumSize="ImageAndTextLarge" LargeImage="/ABC.DEF.Client.ResourceLibrary;component/Assets/Images/Ribbon/SaveGridSettings32.png" SmallImage="/ABC.DEF.Client.ResourceLibrary;component/Assets/Images/Ribbon/SaveGridSettings16.png" Click="RibbonButtonClick" IsQatCommonTool="True"/>
<ig:ButtonTool Id="WKB_RESET_GRID_SETTINGS" x:Name="ReSetGridSettingsButtonTool" Caption="Re Set Grid Settings" MaximumSize="ImageAndTextLarge" LargeImage="/ABC.DEF.Client.ResourceLibrary;component/Assets/Images/Ribbon/ReSetGridSettings32.png" SmallImage="/ABC.DEF.Client.ResourceLibrary;component/Assets/Images/Ribbon/ReSetGridSettings16.png" Click="RibbonButtonClick" IsQatCommonTool="False"/>
</ig:XamRibbon.Tabs>
<!-- End Tabs -->
<ig:XamRibbon.ContextualTabs>
<ABCLibrary:ABCXamRibbonContextualTab IsVisible="True" Content="Generic Data Import" Key="GDITab" BaseBackColor="Gold" >
<ig:XamRibbonContextualTab.Tabs>
<ig:XamRibbonTabItem Header="Files">
<ig:XamRibbonGroup Caption="GDI Log" Id="GDILog">
<ig:ButtonTool Id="WKB_GDI_PURGE_LOG" x:Name="PurgeLog" Caption="Purge Log File" MaximumSize="ImageAndTextLarge" LargeImage="/ABC.DEF.Client.ResourceLibrary;component/Assets/Images/Ribbon/Purge132.png" SmallImage="/ABC.DEF.Client.ResourceLibrary;component/Assets/Images/Ribbon/Purge116.png" Click="RibbonButtonClick" IsQatCommonTool="False"/>
<ig:ButtonTool Id="WKB_GDI_TOTAL_PURGE_LOG" x:Name="TotalPurgeLog" Caption="Totaly Purge Log File" MaximumSize="ImageAndTextLarge" LargeImage="/ABC.DEF.Client.ResourceLibrary;component/Assets/Images/Ribbon/Purge232.png" SmallImage="/ABC.DEF.Client.ResourceLibrary;component/Assets/Images/Ribbon/Purge216.png" Click="RibbonButtonClick" IsQatCommonTool="False"/>
<ig:XamRibbonGroup Caption="GDI Inbound Folder" Id="GDIInboundFolder">
<ig:ButtonTool Id="WKB_GDI_RENAME_ERR" x:Name="RenameERR" Caption="Reprocess Error Files" MaximumSize="ImageAndTextLarge" LargeImage="/ABC.DEF.Client.ResourceLibrary;component/Assets/Images/Ribbon/Refresh32.png" SmallImage="/ABC.DEF.Client.ResourceLibrary;component/Assets/Images/Ribbon/Refresh16.png" Click="RibbonButtonClick" IsQatCommonTool="False"/>
<ig:ButtonTool Id="WKB_GDI_PROCESS_GDI" x:Name="ProcessGDI" Caption="Run Process Now" MaximumSize="ImageAndTextLarge" LargeImage="/ABC.DEF.Client.ResourceLibrary;component/Assets/Images/Ribbon/Execute32.png" SmallImage="/ABC.DEF.Client.ResourceLibrary;component/Assets/Images/Ribbon/Execute16.png" Click="RibbonButtonClick" IsQatCommonTool="False"/>
</ig:XamRibbonContextualTab.Tabs>
</ABCLibrary:ABCXamRibbonContextualTab>
</ig:XamRibbon.ContextualTabs>
<!-- End Contextual Tabs -->
</ig:XamRibbon>
Few details about above code snippet:
1. <ig: refers to xmlns:ig="http://schemas.infragistics.com/xaml"
2. I have installed Infragistics Silverlight 2012.2.1001 version.
3. We have stored all the images and styles in separate silverlight library project and the project reference is added to other projects. So, wherever you see something like "/ABC.DEF.Client.ResourceLibrary;component/Assets/Images/Ribbon/Close32.png"; it means, the image is in ABC.DEF.Client.ResourceLibrary project.
4. <ABCLibrary: refers to a silverlight library project we have created containing all the common silverlight controls we are using throughout the application.
5. In actual source code, we have 8 contextual tabs, but for simplicity, I've pasted here only 1, the rest are similar.
5. I have purposefully renamed few controls as ABC, DEF as I can't post the existing names as is on public sites. I hope you understand it.
Let me know if you need any other inputs from me.
I couldn't find anything wrong with your code that would cause the exception. I tried it locally with build 12.2.1001 and it works fine for me.
I couldn't find a tool with matching ID for one of the QatPlaceholderTools that you have in your QAT (the one with TargetId="Help"), but that shouldn't be an issue.
Looking at the exception, off the top of my head, here are the situations which could lead to it that I can think of:
1. If you're using customized template for the XamRibbon. Since 12.1 we added a Ribbon Customization feature, if you don't have a Customization Dialog in your template, then you might end-up facing such an exception. You can check if that's the issue by checking if ribbon.XamRibbonCustomizationDialog property is null.
2. If you're creating a QuickAccessToolbar object somewhere outside a XamRibbon control (e.g. in UserControl.Resources).
Could you check if that's the case?
Hope this helps,
Hi Rohan,
I'm glad to see your issue is resolved. As for the Customizations feature - it's an integral part of the XamRibbon control since version 2012.1. You can learn more about it here: http://help.infragistics.com/NetAdvantage/Silverlight/2012.1/CLR4.0/?page=xamRibbon_xamRibbon_User_Customization_Interface_Ribbon_And_QAT_Customization_Dialog.html.
When this feature was added it introduced some changes in ribbon's default template (and also brought some new dependencies - the XamRibbon now depends on few other controls and frameworks - XamMenu, XamDataTree and Drag&Drop fw).
Unfortunatelly, such changes often have a chance to break existing applications that make use of customized templates from older versions after upgrade. Basically, we introduced a new template part which was missing in your template.
Regards,
Hi Georgei,
Thanks a lot my friend.... You have solved my problem....Many many thanks....
I have now used customization dialog template in my code now and it is NOT giving me the exception.... :) I copied one style from infragisitc's sample source code for RibbonCustomizationDialogWindow to my code and it worked like a charm... ;)
By the way, I am wondering, if it is mandatory to set that property, is there any place where Infragistics talks about it? I mean, how would I know all such properties which Infragistics expects to be "NOT NULL"?
Once again thanks...
rohanb said: I've also set the customization dialog propety to null in xaml but that didn't help me; the exception still occurs.
I've also set the customization dialog propety to null in xaml but that didn't help me; the exception still occurs.
It should not be null. If it's null - you'll get the exception. This is why I asked if you use customized template (or a theme) for the Ribbon - if you don't have the Customization Dialog as a template part, it will be null and you'll get the exception.
As for the modifications you're doing in code behind - that shouldn't be an issue.
The Null Ref Exception thrown in the Loaded event of the QuickAccessToolbar suggests that either the QuickAccessToolbar is not attached to a parent XamRibbon control in the moment it's being loaded in the UI, or the CustomizationDialog property for this Ribbon is null.
Thanks for spending time on my problem and your efforts.
Even I've tried to copy the given snippet in some sample application which does not give any exception. I've also set the customization dialog propety to null in xaml but that didn't help me; the exception still occurs.
But, as you have specified in 2nd case, our code is playing with QuickAccessToolbar and Ribbom objects in C# code.
e.g. 1. changing visibility of entire XamRibbon to false before user login, and making it visible if user logs in successfully;
2. changing ribbon's caption after login;
3. statements like : ribbon.QuickAccessToolbar.Tools.Clear(); OR ribbon.QuickAccessToolbar.Tools.Add(tool); where tool is QatPlaceholderTool object.
So, this way, we are modifying quick access toolbar dynamically in code behind. Do you think this is causing any problem? And yes, this is all being done in the same user control where Ribbon control is placed in.