I have a RibbonWindow as start window and now I want to create an input option for persons, articles etc.
If I use further windows they will all open as new windows.
Since not so many controls are needed, I wanted to use pages that are displayed in the RibbonWindow.
Therefore I have the following entry in the RibbonWindow
- <Frame x:Name="WorkZone" Grid.Row="2" Grid.RowSpan="2" NavigationUIVisibility="Hidden"></Frame>
In the CodeBehind the page is displayed with
- private void BtnLief_Click(object sender, RoutedEventArgs e)
- {
- WorkZone.NavigationService.Navigate(new Uri("PageRSTGruppen.xaml", UriKind.Relative));
- }
This works.
When I click on Close the page should be closed.
Problem is, there is no "Close()" option in the page.
How can I remove the page from the RibbonWindow or where can I find an example?
Maybe this is not a good approach with pages and I should work with windows?
Thanks a lot
Greeting
Hans-Peter