Only One Page (link) and Main menu in the Modern UI

Feb 28, 2013 at 10:36 AM
Hi,
Thank you very much for the nice UI. I enjoyed it very much.
I would like to know if there is a possibility of having the following options in a Modern UI application:
1- having just one page (i.e. one link) without displaying the back arrow on top of the page.
2- Adding a (traditional) main menu or ribbon for all the pages
Thanks
Coordinator
Feb 28, 2013 at 3:00 PM
You'll need to create your own Window Template to make this happen. Copy the default ModernWindows.xaml theme from the Themes folder and remove the MainMenu. Replace the ModernFrame with a ContentControl where its content is template bound to the window content. Now you can add content to the MainWindow.xaml.

Hope this helps,
Mar 7, 2014 at 10:45 AM
Hi Coordinator,

Thanks for the response as based on your input i tried removing
 <controls:ModernFrame x:Name="ContentFrame" Grid.Row="3" Grid.RowSpan="2" Margin="36,8,16,16" Source="{Binding ContentSource, RelativeSource={RelativeSource TemplatedParent}, Mode=TwoWay}" ContentLoader="{TemplateBinding ContentLoader}"/>
And Replace With
  <ContentPresenter  x:Name="ContentFrame" Grid.Row="3" Grid.RowSpan="2" Margin="36,8,16,16" ></ContentPresenter>
But i am confused and unable to Set the Binding for ContentPresenter .

Then in my main window i was trying to add Content
`` <Grid>
    <TextBlock Text="Hello"></TextBlock>
</Grid>
``` But after running the app i am unable to see my content on window.

Please let me know how do i provide the bindings so that Content Presenter will render my content.
Mar 24, 2014 at 3:59 AM
Hi,
Who could do this, place, please example in the form of a Visual Studio project.
Mar 30, 2014 at 4:37 PM
Hi

Here, try this: https://mui.codeplex.com/wikipage?title=How%20to%20use%20your%20own%20navigation%20framework&referringTitle=Documentation , it works.
For some objective reason I cannot upload a solution, but it is simple: I have a solution that includes ModernUI and has only one page, MainWindow.xaml exactly like this:
<mui:ModernWindow x:Class="MyApp.MainWindow"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:mui="http://firstfloorsoftware.com/ModernUI"
    WindowState="Maximized"
    Style="{StaticResource EmptyWindow}">
<Grid>
    <Grid.RowDefinitions>
        <RowDefinition Height="Auto" />
        <RowDefinition Height="6" />
        <RowDefinition Height="*" />
    </Grid.RowDefinitions>
    <TextBlock Grid.Row="0" Text="Content goes here" />
    <GridSplitter Grid.Row="1"
          HorizontalAlignment="Stretch"
          VerticalAlignment="Center"
          Background="Black" 
          ShowsPreview="True"
          Height="6"
       />
    <TextBlock Grid.Row="2" Text="Content goes here" />
</Grid>
</mui:ModernWindow>
Please notice the line: Style="{StaticResource EmptyWindow}"
Feel free to extend your app from here.