|
30 | 30 | <Button x:Name="btNextButton" Content=">" Grid.Column="1" Margin="5" Click="NavigationNextPreviousButton_Click"/> |
31 | 31 | </Grid> |
32 | 32 | <!-- The Stackpanel doesn't allow a binding for its children, so we use a ItemsControl instead --> |
33 | | - <ItemsControl x:Name="icMenuItems" Grid.Row="1" ItemsSource="{Binding MainNavigationItems}"> |
34 | | - <ItemsControl.ItemsPanel> |
35 | | - <ItemsPanelTemplate> |
36 | | - <StackPanel IsItemsHost="True"/> |
37 | | - </ItemsPanelTemplate> |
38 | | - </ItemsControl.ItemsPanel> |
39 | | - <ItemsControl.ItemTemplate> |
40 | | - <ItemContainerTemplate> |
41 | | - <local:MainWindowNavigationItem Content="{Binding Title}" Page="{Binding Page}" ExtraNavigationInformation="{Binding ExtraInformation}" Command="{Binding Path=DataContext.NavigateButtonCommand, RelativeSource={RelativeSource AncestorType=Window},Mode=Default}" CommandParameter="{Binding Mode=OneWay}"/> |
42 | | - </ItemContainerTemplate> |
43 | | - </ItemsControl.ItemTemplate> |
44 | | - </ItemsControl> |
| 33 | + <StackPanel Grid.Row="1"> <!-- TEMPORARY for login button --> |
| 34 | + <ItemsControl x:Name="icMenuItems" Grid.Row="1" ItemsSource="{Binding MainNavigationItems}"> |
| 35 | + <ItemsControl.ItemsPanel> |
| 36 | + <ItemsPanelTemplate> |
| 37 | + <StackPanel IsItemsHost="True"/> |
| 38 | + </ItemsPanelTemplate> |
| 39 | + </ItemsControl.ItemsPanel> |
| 40 | + <ItemsControl.ItemTemplate> |
| 41 | + <ItemContainerTemplate> |
| 42 | + <local:MainWindowNavigationItem Content="{Binding Title}" Page="{Binding Page}" ExtraNavigationInformation="{Binding ExtraInformation}" Command="{Binding Path=DataContext.NavigateButtonCommand, RelativeSource={RelativeSource AncestorType=Window},Mode=Default}" CommandParameter="{Binding Mode=OneWay}"/> |
| 43 | + </ItemContainerTemplate> |
| 44 | + </ItemsControl.ItemTemplate> |
| 45 | + </ItemsControl> |
| 46 | + <local:MainWindowNavigationItem Content="Login" ExtraNavigationInformation="" Click="Login_Click"/> |
| 47 | + </StackPanel> |
45 | 48 | <TextBlock x:Name="tbContentTitle" Grid.Column="1" FontSize="22" FontWeight="Bold" Text="{Binding Title}"/> |
46 | 49 | <ScrollViewer Grid.Column="1" Grid.Row="1" VerticalScrollBarVisibility="Auto" > |
47 | 50 | <Frame x:Name="frContent" Grid.Column="1" Grid.Row="1" NavigationUIVisibility="Hidden" Navigated="frContent_Navigated" Source="{Binding CurrentVisiblePage}"/> |
|
0 commit comments