I am learning the Contrib now and have problem with SmartPartPlaceholder.
The simple xaml is like this
<cab:SmartPartPlaceholder SmartPartShown="LeftPlaceHolder_SmartPartShown" SmartPartName="StudyPanelLeftViewInstance"/>
<GridSplitter Grid.Column="1" ResizeDirection="Columns" Width="5" VerticalAlignment="Stretch" Background="blue" />
...simple other things like lables
Then I add the smartpart in modulecontroller.AddViews() generated by SCSF template
_studyPanelLeftView = WorkItem.Items.AddNew<StudyPanelLeftView>("StudyPanelLeftViewInstance");
After that, I add button to toolbar. After click the toolbar, the view is shown on shell
_studyPanelView = ShowViewInWorkspace<StudyPanel>(SmartService.Infrastructure.Interface.Constants.WorkItemNames.RootViewOfStudyModule, Constants.WorkspaceNames.LayoutWorkspace);
The labels of study panel shown on the shell correctly while the _studyPanelLeftView now shown.
I can debug into the handler LeftPlaceHolder_SmartPartShown, that means the SmartPart has been loaded. But why I can not see it? I checked the visibility property of the smartpart, is is visible.
I have dig into the problem for several days, and I do not know where to begin for this problem. Is anybody encounter similar issue before? And can you give me some suggestion for this. It just now shown in the workspace, and maybe easy for you.
Thanks a lot for any help from you.