how to get executable path in wpf

Code Example - how to get executable path in wpf

                
                        Directory.GetParent(System.Reflection.Assembly.GetExecutingAssembly().Location);