module ParasitemiaUI.About
-open System
open System.Windows
-open System.Windows.Controls
open System.Diagnostics
+open ParasitemiaUIControls
+
let showWindow (parent : Window) =
- let win = Views.AboutWindow ()
+ let win = AboutWindow ()
win.Owner <- parent
win.Left <- (if parent.WindowState = WindowState.Maximized then 0. else parent.Left) + parent.ActualWidth / 2. - win.Width / 2.
let navigateTo =
Navigation.RequestNavigateEventHandler (
fun obj args ->
- Process.Start (ProcessStartInfo args.Uri.AbsoluteUri) |> ignore
+ Process.Start (ProcessStartInfo (args.Uri.AbsoluteUri, UseShellExecute = true)) |> ignore
args.Handled <- true
)