Initialization Errors on RadPaneGroup After Updating to 326 SP1

3 posts, 0 answers
  1. Luke Daugherty
    Luke Daugherty avatar
    19 posts
    Member since:
    Jun 2011

    Posted 29 Mar 2012 Link to this post

    I am seeing this error in the Visual Studio Output window when my application starts:

    System.Windows.Data Error: 'MS.Internal.Data.DynamicValueConverter' converter failed to convert value 'True' (type 'System.Boolean'); BindingExpression: Path='IsContentPreserved' DataItem='Telerik.Windows.Controls.RadPaneGroup' (HashCode=29829272); target element is 'System.Windows.Controls.ContentPresenter' (Name='ContentElement'); target property is 'Visibility' (type 'System.Windows.Visibility').. System.InvalidOperationException: Can't convert type System.Boolean to type System.Windows.Visibility.
       at MS.Internal.Data.DefaultValueConverter.Create(Type sourceType, Type targetType, Boolean targetToSource)
       at MS.Internal.Data.DynamicValueConverter.EnsureConverter(Type sourceType, Type targetType)
       at MS.Internal.Data.DynamicValueConverter.Convert(Object value, Type targetType, Object parameter, CultureInfo culture)
       at System.Windows.Data.BindingExpression.ConvertToTarget(Object value).

    I do not see any references to my code here, and we are not binding to the properties in the error. If I back out the telerik upgrade (back to 2011 Q4) I do not see these errors. After the app starts everything appears to work, but I would like to figure out and fix this since something appears wrong.

    Note that we are saving and loading the layout, but these errors occur before that happens (in the Load event). My xaml looks like:

    <UserControl xmlns:sdk="http://schemas.microsoft.com/winfx/2006/xaml/presentation/sdk" x:Class="PBBI.Spectrum.GraphVisualization.Modules.DockingManager.Views.DockMangerView"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:telerik="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Docking" xmlns:Docking="clr-namespace:Telerik.Windows.Controls.Docking;assembly=Telerik.Windows.Controls.Docking" xmlns:Regions="clr-namespace:Microsoft.Practices.Prism.Regions;assembly=Microsoft.Practices.Prism" mc:Ignorable="d"
        d:DesignHeight="600" d:DesignWidth="800">
        
        <Grid Background="White">
            <telerik:RadDocking HasDocumentHost="True" HorizontalAlignment="Stretch" Name="radDocking1" VerticalAlignment="Stretch" AllowDrop="False">

                <telerik:RadSplitContainer  Name="radSplitContainer1" Orientation="Vertical" InitialPosition="DockedLeft" telerik:RadDocking.SerializationTag="LeftRadSplitContainer">
                    <telerik:RadPaneGroup  IsDefaultItemSelected="True" SelectedIndex="-1" telerik:RadDocking.SerializationTag="LeftRadSplitContainer.RadPaneGroup.Bottom" Height="Auto">
                        <telerik:RadPane Name="overviewPane" Header="Overview" Regions:RegionManager.RegionName="Overview-DockRegion" telerik:RadDocking.SerializationTag="OverviewPane" Height="Auto" />
                    </telerik:RadPaneGroup>
                    <telerik:RadPaneGroup IsDefaultItemSelected="True" SelectedIndex="-1" telerik:RadDocking.SerializationTag="LeftRadSplitContainer.RadPaneGroup.Top">
                        <telerik:RadPane Name="detailsPane" Header="Details" Regions:RegionManager.RegionName="Details-DockRegion" telerik:RadDocking.SerializationTag="DetailsPane"/>
                    </telerik:RadPaneGroup>                
                </telerik:RadSplitContainer>

                <telerik:RadSplitContainer Orientation="Horizontal" InitialPosition="DockedRight" telerik:RadDocking.SerializationTag="RightRadSplitContainer" Width="350" UseLayoutRounding="True">
                    <telerik:RadPaneGroup telerik:RadDocking.SerializationTag="RightRadSplitContainer.RadPaneGroup.Center" >
                        <telerik:RadPane Name="selectionPane" Header="Selection" Regions:RegionManager.RegionName="Selection-DockRegion" telerik:RadDocking.SerializationTag="SelectionPane"></telerik:RadPane>
                        <telerik:RadPane Name="queryPane" Header="Query" Regions:RegionManager.RegionName="Query-DockRegion" telerik:RadDocking.SerializationTag="QueryPane"></telerik:RadPane>
                    </telerik:RadPaneGroup>
                </telerik:RadSplitContainer>

                <telerik:RadSplitContainer Orientation="Horizontal" InitialPosition="DockedBottom" telerik:RadDocking.SerializationTag="BottomRadSplitContainer" Height="240">
                    <telerik:RadPaneGroup telerik:RadDocking.SerializationTag="BottomRadSplitContainer.RadPaneGroup.Center" Width="Auto">
                        <telerik:RadPane Name="graphComponentsPane" Header="GraphComponents" Regions:RegionManager.RegionName="GraphComponents-DockRegion" telerik:RadDocking.SerializationTag="GraphComponentsPane" ></telerik:RadPane>
                        <telerik:RadPane Name="rangeFilterPane" Header="RangeFilter" IsHidden="true" Regions:RegionManager.RegionName="RangeFilter-DockRegion" telerik:RadDocking.SerializationTag="RangeFilterPane"></telerik:RadPane>
                    </telerik:RadPaneGroup>
                </telerik:RadSplitContainer>

                <telerik:RadDocking.DocumentHost >
                    <telerik:RadSplitContainer Name="documentContainer" telerik:RadDocking.SerializationTag="documentContainer">
                        <telerik:RadPaneGroup Name="documentGroup" telerik:RadDocking.SerializationTag="documentContainer.RadPaneGroup">
                            <telerik:RadDocumentPane Name="graphDocumentPane" telerik:RadDocking.SerializationTag="graphDocumentPane" CanFloat="False" CanUserClose="False" CanUserPin="False" />                    
                        </telerik:RadPaneGroup>
                    </telerik:RadSplitContainer>
                </telerik:RadDocking.DocumentHost>

            </telerik:RadDocking>
        </Grid>
    </UserControl>

    Luke Daugherty
    Pitney Bowes Software
  2. Miroslav Nedyalkov
    Admin
    Miroslav Nedyalkov avatar
    1718 posts

    Posted 30 Mar 2012 Link to this post

    Hello Luke,

    Thank you for reporting us this problem. I was able to reproduce it and we will do our best to fix it for the next official release - Q2 2012, in the middle of June. Your Telerik points were updated for your cooperation.

    Hope this time frame is good for you.

    Greetings,
    Miroslav Nedyalkov
    the Telerik team
    Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
  3. DevCraft banner
  4. Luke Daugherty
    Luke Daugherty avatar
    19 posts
    Member since:
    Jun 2011

    Posted 30 Mar 2012 Link to this post

    We release in June, but as long as it is not causing any other issues that should be fine.

    Luke
Back to Top