本文整理汇总了C#中IScreenManager.NavigateToScreen方法的典型用法代码示例。如果您正苦于以下问题:C# IScreenManager.NavigateToScreen方法的具体用法?C# IScreenManager.NavigateToScreen怎么用?C# IScreenManager.NavigateToScreen使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类IScreenManager
的用法示例。
在下文中一共展示了IScreenManager.NavigateToScreen方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: StartScreen
public StartScreen(IScreenManager manager)
: base(manager)
{
Background = new BorderBrush(Color.DarkRed);
StackPanel stack = new StackPanel(manager);
Controls.Add(stack);
// Button zur Controls Demo
Button controlScreenButton = Button.TextButton(manager, "Controls", "special"); //Button mit speziellen Style erstellen
controlScreenButton.LeftMouseClick += (s, e) => //Click Event festlegen
{
manager.NavigateToScreen(new SplitScreen(manager)); //Screen wechseln
};
stack.Controls.Add(controlScreenButton); //Button zu Root hinzufügen
// Button zur Mouse Capture Demo
Button capturedMouseButton = Button.TextButton(manager, "Captured Mouse", "special");
capturedMouseButton.LeftMouseClick += (s, e) => manager.NavigateToScreen(new MouseCaptureScreen(manager));
stack.Controls.Add(capturedMouseButton);
Button tabDemoScreen = Button.TextButton(manager, "Tab Demo", "special");
tabDemoScreen.LeftMouseClick += (s, e) => manager.NavigateToScreen(new TabScreen(manager));
stack.Controls.Add(tabDemoScreen);
}
示例2: StartScreen
public StartScreen(IScreenManager manager)
: base(manager)
{
Background = new BorderBrush(Color.DarkRed);
Button nextButton = Button.TextButton(manager, "Next", "special");
nextButton.LeftMouseClick += (s, e) =>
{
manager.NavigateToScreen(new SplitScreen(manager));
};
Controls.Add(nextButton);
}