This project is read-only.

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

Feb 28, 2013 at 11:36 AM
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
Feb 28, 2013 at 4: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 11: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>
``` 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 4:59 AM
Who could do this, place, please example in the form of a Visual Studio project.
Mar 30, 2014 at 5:37 PM

Here, try this: , 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"
    Style="{StaticResource EmptyWindow}">
        <RowDefinition Height="Auto" />
        <RowDefinition Height="6" />
        <RowDefinition Height="*" />
    <TextBlock Grid.Row="0" Text="Content goes here" />
    <GridSplitter Grid.Row="1"
    <TextBlock Grid.Row="2" Text="Content goes here" />
Please notice the line: Style="{StaticResource EmptyWindow}"
Feel free to extend your app from here.