Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


How can command-line arguments be retrieved in a WPF application?



How can command-line arguments be retrieved in a WPF application?..

Answer / Mamraj Singh

To retrieve command-line arguments in a WPF application, you can access the `args` property of the `System.Diagnostics.Process` class within your app's `App.xaml.cs`. Here's an example:

```csharp
public partial class App : Application
{
protected override void OnStartup(StartupEventArgs e)
{
var args = e.Args;
// Use the args array as needed...
}
}

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More WPF Interview Questions

What is the difference between xaml and baml?

1 Answers  


In xaml how graphic components are specified?

1 Answers  


What is xaml namespace?

1 Answers  


Describe about RelativeResource Property in WPF application?

1 Answers  


What is the dispatcher Object?

1 Answers  


You need to display a list of items. Which controls are possible options are made available to you if you need to display a list of items? Of those, which would you use and why?

1 Answers  


What is data binding with xaml?

1 Answers  


What is the use of wpf?

1 Answers  


What is a freezable?

1 Answers  


What is wpf and xaml?

1 Answers  


What are the names of main assemblies used by WPF?

1 Answers  


What are the types of bitmap effects?

1 Answers  


Categories