Normal
I'm having a little trouble. I want to call a method after the Screen has fully loaded. Reason been I'm going to call var screenManager = ServiceRegistration.Get<IScreenManager>(); screenManager.ShowDialog("dialogWeatherSearchResult"); If certain conditions are met. At the moment the best hack I can think of goes something along the lines of: <ControlTemplate.Triggers> <DataTrigger Binding="{Binding Loaded}" Value="False"> <!--<Command Source="{StaticResource Model}" Path="DetectLocation"/>--> <Setter Property="{Binding Loaded}" Value="True"/> </DataTrigger></ControlTemplate.Triggers> Note the above doesn't work but the idea was to set a property and use that to trigger the function in the code behind (sharp learning curve with XAML at the moment). I've been focusing of the XAML because I can't see a IWorkflowModel function that is called after the Screen has focus. Any advice / thoughts would be appreciated.
I'm having a little trouble. I want to call a method after the Screen has fully loaded.
Reason been I'm going to call
var screenManager = ServiceRegistration.Get<IScreenManager>();
screenManager.ShowDialog("dialogWeatherSearchResult");
If certain conditions are met.
At the moment the best hack I can think of goes something along the lines of:
<ControlTemplate.Triggers>
<DataTrigger Binding="{Binding Loaded}" Value="False">
<!--<Command Source="{StaticResource Model}" Path="DetectLocation"/>-->
<Setter Property="{Binding Loaded}" Value="True"/>
</DataTrigger>
</ControlTemplate.Triggers>
Note the above doesn't work but the idea was to set a property and use that to trigger the function in the code behind (sharp learning curve with XAML at the moment).
I've been focusing of the XAML because I can't see a IWorkflowModel function that is called after the Screen has focus.
Any advice / thoughts would be appreciated.