I am having trouble getting this Event to work. I can add the Event to my XAML and to my code behind just fine, it builds fine, but when I run the program it blows up on Initialize component.
Failed to assign to property 'Telerik.Windows.Controls.RadTabControl.SelectionChanged'. [Line: 257 Position: 91]
<
telerik:RadDocking.DocumentHost
>
<
telerik:RadSplitContainer
x:Name
=
"MainDocumentContainer"
telerik:ProportionalStackPanel.RelativeSize
=
"0,70"
>
<
telerik:RadPaneGroup
x:Name
=
"MainDocumentGroup"
SelectionChanged
=
"MainDocumentGroup_SelectionChanged"
>
<!--<telerik:RadPaneGroup x:Name="MainDocumentGroup" SelectionChanged="MainDocumentGroup_SelectionChanged">-->
<
telerik:RadDocumentPane
x:Name
=
"MainDocumentPane"
Header
=
"Search"
CanUserClose
=
"False"
CanFloat
=
"False"
IsPinned
=
"True"
CanDockInDocumentHost
=
"True"
>
<
Grid
x:Name
=
"SearchGridLayout"
>
<
ig:XamGrid
x:Name
=
"MyDataGrid"
Grid.Row
=
"1"
AutoGenerateColumns
=
"False"
ColumnWidth
=
"*"
>
<
ig:XamGrid.SelectionSettings
>
<
ig:SelectionSettings
RowSelection
=
"Single"
CellClickAction
=
"SelectRow"
/>
</
ig:XamGrid.SelectionSettings
>
</
ig:XamGrid
>
</
Grid
>
</
telerik:RadDocumentPane
>
</
telerik:RadPaneGroup
>
</
telerik:RadSplitContainer
>
</
telerik:RadDocking.DocumentHost
>
private void MainDocumentGroup_SelectionChanged(object sender, RadSelectionChangedEventArgs e)
{
RadPane pane = e.AddedItems[0] as RadPane;
if (pane.Content is PricingSubmissionForm)
{
PricingSubmissionForm form = pane.Content as PricingSubmissionForm;
this.ShowSubmissionDetailsInPane(form);
this.ShowFormRibbonGroup();
}
else
{
this.HideFormRibbonGroup();
// hide the side panes
this.SubmissionDetails.IsHidden = true;
this.LineItemDetails.IsHidden = true;
this.HideFormRibbonGroup();
}
}
Failed to assign to property 'Telerik.Windows.Controls.RadTabControl.SelectionChanged'. [Line: 257 Position: 91]