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

PanelBar Item Injection Broke

1 Answer 38 Views
PanelBar
This is a migrated thread and some comments may be shown as answers.
Jonathan
Top achievements
Rank 1
Jonathan asked on 03 Mar 2015, 03:31 PM
Hi there,

I just performed an upgrade from 2014 Q4 to 2015 Q1 and have run into an unexpected issue.  I have been using Panel Bar Item injection via the prism framework to place panel bar items for each of my modules under their respective headers.

In my shell, the regions are laid out as follows:

<telerik:RadPanelBar
                DockPanel.Dock="Left"
                Width="200"
                regions:RegionManager.RegionName="NavPanelRegion"
                Background="LightBlue">
                <telerik:RadPanelBarItem
                    regions:RegionManager.RegionName="NavPanelHomeRegion"
                    Header="Home">
                </telerik:RadPanelBarItem>
                <telerik:RadPanelBarItem
                    regions:RegionManager.RegionName="NavPanelToolsRegion"
                    Header="Tools">
                </telerik:RadPanelBarItem>
                <telerik:RadPanelBarItem
                    regions:RegionManager.RegionName="NavPanelMaintenanceRegion"
                    Header="Maintenance">
                </telerik:RadPanelBarItem>
                <telerik:RadPanelBarItem
                    regions:RegionManager.RegionName="NavPanelReportingRegion"
                    Header="Reporting">
                </telerik:RadPanelBarItem>
</telerik:RadPanelBar>

Then each of the modules has one to many panel bar items defined:

<telerik:RadPanelBarItem  x:Class="Modules.Dashboard.Views.DashboardPanelItemView"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
             xmlns:regions="http://www.codeplex.com/CompositeWPF"
             xmlns:vm="clr-namespace:Modules.Dashboard.ViewModels"
             Header="Homepage">
    <telerik:RadPanelBarItem.Resources>
        <vm:DashboardCommandViewModel x:Key="DashboardCommandVm" />
    </telerik:RadPanelBarItem.Resources>
    <telerik:RadPanelBarItem.Command>
        <Binding Source="{StaticResource DashboardCommandVm}" Path="Home" />
    </telerik:RadPanelBarItem.Command>
</telerik:RadPanelBarItem>

And during module initalization, the following is called:

public void Initialize()
        {
            Container.RegisterType<Object, Views.DashboardView>("DashboardView");
            this._regionViewRegistry.RegisterViewWithRegion(RegionNames.Navigation.HomeNavigationPanelRegion, typeof(Views.DashboardPanelItemView));
            this._regionViewRegistry.RegisterViewWithRegion("ContentRegion", typeof(DashboardView));
        }

Prior to the update, this worked just fine and the panel bar items were injected under their respective parents.  Now, though, post-upgrade, it's no longer functioning.

Any thoughts?

1 Answer, 1 is accepted

Sort by
0
Petar Mladenov
Telerik team
answered on 05 Mar 2015, 12:44 PM
Hello Jonathan,

We tried to reproduce such issue but we did not manage to. You can check our test project in which we tried to replicate your scenario as close as possible. Please feel free to modify it or to send us an isolated sample that we can investigate locally.
Please double check that every project in your solution uses XAML binaries or every project uses no-xaml binaries. All telerik binaries should have equal version and euqal type - xaml or no-xaml. Since we have almost no code change in this control for years, it makes me think the inner PanelBarItems in your scenario do not have their styles applied - this could happen if noxaml binaries are loaded with no Theme dll.


Regards,
Petar Mladenov
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
PanelBar
Asked by
Jonathan
Top achievements
Rank 1
Answers by
Petar Mladenov
Telerik team
Share this question
or