Witam,
Potrzebuje w miarę pilnie podpowiedzi może ktoś to wie, i ułatwi rozwiązanie dla skazanca ;)
Rzecz się ma jest MainWindow.xaml, w nim są deklaracje podstron:
<mui:ModernWindow
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:mui="http://firstfloorsoftware.com/ModernUI"
xmlns:ProjektUI="clr-namespace:ProjektUI;assembly=ProjektUI"
xmlns:sns="clr-namespace:ProjektZal.Modules"
x:Class="ProjektZal.MainWindow"
Title="proj" IsTitleVisible="True"
Icon="Resources/favicon.ico" Foreground="#FFFDF9F9" ContentSource="/Window/StartUp.xaml" >
<mui:ModernWindow.MenuLinkGroups>
<mui:LinkGroup DisplayName="Strona 1">
<mui:LinkGroup.Links>
<mui:Link Source="/Window/Side1.xaml"/>
</mui:LinkGroup.Links>
</mui:LinkGroup>
<mui:LinkGroup DisplayName="Strona 2">
<mui:LinkGroup.Links>
<mui:Link DisplayName="Podstrona 1" Source="/Window/SubSide1.xaml" />
</mui:LinkGroup.Links>
</mui:LinkGroup>
</mui:ModernWindow.MenuLinkGroups>
</mui:ModernWindow>
w pliku MainWindow.xaml.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using FirstFloor.ModernUI.Windows.Controls;
using ProjektZal.Modules;
namespace ProjektZal
{
/// <summary>
/// Interaction logic for MainWindow.xaml
/// </summary>
public partial class MainWindow : ModernWindow
{
private int _a1;
public int A1 { get; set; }
public MainWindow(int li, string lf, string ll, int al)
{
InitializeComponent();
this.WindowState = System.Windows.WindowState.Maximized;
}
public static ModernFrame frame { get; set; }
public override void OnApplyTemplate()
{
base.OnApplyTemplate();
frame = (ModernFrame)GetTemplateChild("ContentFrame");
}
}
}
i w czym kłopot: jak chce otworzyć podstronę SubSide1.xaml to chce przekazac MainWindow ale nie wiem jak ?
pozdrawiam