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 function x: key directive in xaml?

1 Answers  


How to add windows form in wpf application?

1 Answers  


What are windows presentation foundation applications?

1 Answers  


What is Property Invalidation?

1 Answers  


Is wpf easy to learn?

1 Answers  


Describe the types of documents supported by WPF?

1 Answers  


How does "updatesourcetrigger" affect bindings?

1 Answers  


Does wpf use directx?

1 Answers  


What is the use of Data Templates in binding in WPF binding controls?

1 Answers  


What is an attached property?

1 Answers  


What is system windows forms dll?

1 Answers  


What are the types of inlines that can be used in a textblock?

1 Answers  


Categories