Forum Replies Created

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • Nasheayah
    Participant
    Post count: 4

    Hi Diane,

    Thanks for the reply, I think I may have found the problem, but you can tell me if I’m correct or not. After looking over my XAML,

    <Metro:HamburgerMenu x:Name="ShellHamburgerMenu" Grid.Row="2"
    					...
    					..
    					.
    					 ContentTemplate="{StaticResource HamburgerContentTemplate}"
    					 ...
    					 ..
    					 .
    					 prism:RegionManager.RegionName="{x:Static uiCommon:RegionNames.LayoutMainViewRegion}">
    </Metro:HamburgerMenu>

    The Template:

    <DataTemplate x:Key="HamburgerContentTemplate" DataType="{x:Type ModelType:HambgrMenuItemTS}">
    	<Grid>
    		<Metro:SplitView x:Name="OptionSplitview"
    					Margin="0"
    					DisplayMode="Inline"
    					IsPaneOpen="{Binding Path=SelectedItem.IsPaneOpen, RelativeSource={RelativeSource AncestorType={x:Type Metro:HamburgerMenu}}}"
    					OpenPaneLength="250"
    					>
    			<Metro:SplitView.Pane>
    				<StackPanel>
    
    				</StackPanel>
    			</Metro:SplitView.Pane>
    			<xcad:DockingManager Grid.Row="2" x:Name="DockingManager" AllowMixedOrientation="True"
    								AnchorablesSource="{Binding Tools}" 
    								DocumentsSource="{Binding Files}"
    				 TextBlock.Foreground="{DynamicResource MaterialDesignBody}" Background="{DynamicResource MaterialDesignBackground}" Margin="5">
    				 ...
    				 ..
    				 .
    				<xcad:DockingManager.LayoutUpdateStrategy>
    					<behavior:LayoutInitializer/>
    				</xcad:DockingManager.LayoutUpdateStrategy>
    				<xcad:LayoutRoot x:Name="_LayoutRoot">
    					<xcad:LayoutPanel x:Name="_RootPanel" Orientation="Horizontal">
    						<xcad:LayoutAnchorablePane x:Name="_LayoutAnchorablePane"/>
    						<xcad:LayoutDocumentPaneGroup >
    							<xcad:LayoutDocumentPane x:Name="_LayoutDocumentGroupPane"/>
    
    						</xcad:LayoutDocumentPaneGroup>
    						<xcad:LayoutAnchorablePaneGroup DockWidth="125">
    							<xcad:LayoutAnchorablePane/>
    						</xcad:LayoutAnchorablePaneGroup>
    					</xcad:LayoutPanel>
    
    					<xcad:LayoutRoot.LeftSide>
    						<xcad:LayoutAnchorSide x:Name="_LayoutAnchorableSideLeft">
    							<xcad:LayoutAnchorGroup x:Name="_LayoutAnchorableGroupLeft"/>
    						</xcad:LayoutAnchorSide>
    					</xcad:LayoutRoot.LeftSide>
    					<xcad:LayoutRoot.RightSide>
    						<xcad:LayoutAnchorSide x:Name="_LayoutAnchorableSideRight" >
    							<xcad:LayoutAnchorGroup  x:Name="_LayoutAnchorableGroupRight"/>
    						</xcad:LayoutAnchorSide>
    					</xcad:LayoutRoot.RightSide>
    					<xcad:LayoutRoot.BottomSide>
    						<xcad:LayoutAnchorSide x:Name="_LayoutAnchorableSideBottom">
    							<xcad:LayoutAnchorGroup  x:Name="_LayoutAnchorableGroupBottom"/>
    						</xcad:LayoutAnchorSide>
    					</xcad:LayoutRoot.BottomSide>
    				</xcad:LayoutRoot>
    
    			</xcad:DockingManager>
    
    		</Metro:SplitView>
    
    	</Grid>
    </DataTemplate>

    I decided to take the DockingManager out of the ContentTemplate | DataTemplate, created another View, put it into a Metro:SplitView without a Template just to see what happens and it worked. So, I’m assuming the DataTemplate had some effect, because when I Step Debugged, I found my defined LayoutRoot Children where missing.

    Nasheayah
    Participant
    Post count: 4

    Hi Fawzi,

    I apologize for the very late thanks for the reply due to reverted to another project that consumed so much of my time from this one. My next question is, how do I derive my class since there’s six levels before creating the content?

    And, would there be a good example somewhere you can link me too?

Viewing 2 posts - 1 through 2 (of 2 total)