<
Window x:Class="MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:i="http://schemas.microsoft.com/expression/2010/interactivity" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:n="http://nRoute/schemas/2010/xaml" mc:Ignorable="d" Title="Starting 'Proof of Concept"" Height="480" Width="598"> <i:Interaction.Behaviors> <n:BridgeViewModelBehavior/> </i:Interaction.Behaviors> <StackPanel> <n:StatefulContainer Url="Pages/Splash" > <i:Interaction.Behaviors> <n:NavigationHandlerBehavior IsDefaultHandler="True" /> </i:Interaction.Behaviors> </n:StatefulContainer> </StackPanel></
Window>And, as expected, the splash view is shown.
Now, I want to navigate to some other view programmatically and I try to use this statement:
NavigationService
.Navigate(New NavigationRequest("Pages/Login/"))The url exists, as far as I can see:
<
Assembly: DefineViewViewModel(GetType(MainWindow), GetType(ShellVM))><
Assembly: DefineViewViewModel(GetType(SplashView), GetType(ShellVM))><
Assembly: DefineViewViewModel(GetType(LoginView), GetType(ShellVM))><
Assembly: DefineViewViewModel(GetType(AdminRootView), GetType(AdminRootVM))>'Associate urls with Views
<
Assembly: DefineNavigationContent("Pages/Splash/", GetType(SplashView))><
Assembly: DefineNavigationContent("Pages/Login/", GetType(LoginView))><
Assembly: DefineNavigationContent("Pages/AdminRoot/", GetType(AdminRootView))>Now, I guess, that I get a new view into the Stateful container, using the same instance of ShellVM, but all I get is an error message, that there is no application wide default container specified.
So, why does my navigation command fail, and how and where should I specify this application wide container?
With best regards
Gerhard
<i:EventTrigger EventName="Loaded">
<i:Interaction.Behaviors>
<ei:ConditionBehavior>
<ei:ConditionalExpression ForwardChaining="And">
<ei:ComparisonCondition LeftOperand="{Binding SelectedIndex, ElementName=listBox}" Operator="Equal"
RightOperand="-1"/>
<ei:ComparisonCondition LeftOperand="{Binding ItemsSource, ElementName=listBox}" Operator="NotEqual"
RightOperand="{x:Null}"/>
</ei:ConditionalExpression>
</ei:ConditionBehavior>
</i:Interaction.Behaviors>
<n:SetPropertyAction PropertyName="SelectedIndex" Value="0"/>
</i:EventTrigger>
Quick request: would be nice (for me at least) that when replying to the group we keep also the last message at least. Otherwise it might be hard to put the message into context, e.g. in this case I’m guessing this is about conditional navigation, but I’m not sure J
Freundliche Grüsse / Best regards
Adrian Hara
Cloud Developer
LinkedIn
coresystems ag
Villa im Park | Dorfstrasse 69
5210 Windisch | Switzerland
Phone +41 56 500 22 22
Fax +41 56 444 20 50
Infoline +41 848 088 088
www.coresystems.ch
www.coresuite.com
follow us on twitter
Visit us at CeBIT:
SAP Partner Booth: Hall 5, Booth A18
Cloud Computing: Hall 4, Booth A58
OS X Business Park: Hall 2, Booth A20
Microsoft Booth: Hall 4, Booth P47
The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and / or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from any computer.