Region not loaded by the RegionManger

前端 未结 1 1537
心在旅途
心在旅途 2021-01-26 04:41

in a prism 6 based application, this is a part of my shell, and QuickAccessToolBar region defined like this:


            


        
相关标签:
1条回答
  • 2021-01-26 05:21

    My guess is that the QuickAccessTolbar is not part of the visual tree, so the region manager can't find it. Since this is a Telerik control, I am not aware of how they architected their control. You might have to do this in code behind instead.

    First set the region name, then set the RegionManager using the attached properties.

    RegionManager.SetRegionName(quickToolbar, name);

    RegionManager.SetRegionManager(quickToolbar, rm);

    0 讨论(0)
提交回复
热议问题