Linked Questions
11 questions linked to/from WPF Command Line
64
votes
3
answers
87k
views
WPF Command Line Arguments, a smart way?
I'm looking for a way that I can parse command line arguments into my WPF application with just a way of reading the value of the argument that the user passed.
As an example
application.exe /...
26
votes
12
answers
16k
views
AttachConsole(-1), but Console.WriteLine won't output to parent command prompt?
If I have set my program to be a Windows Application, and used the AttachConsole(-1) API, how do I get Console.WriteLine to write to the console I launched the application from? It isn't working for ...
8
votes
2
answers
7k
views
WPF Window created in Application_Startup method is blank
I have a WPF window in a project with a XAML file and associated C# code behind file. If I set "StartupUri=MainWindow.xaml" in App.xaml to this window the window opens as expected when I start my ...
5
votes
2
answers
4k
views
How to capture command line arguments in WPF application?
How do I get the command line arguments in a Crystal Report WPF Application?
2
votes
2
answers
4k
views
WPF Application with GUI and Console modes
I understand that there are problems regarding running a WPF application from a console window and outputting to the console rather than showing a gui (aka This Question).
The 'conclusion' of that ...
5
votes
3
answers
6k
views
IOException was unhandled - Cannot locate resource app.xaml
In one of my WPF projects I get this error when I open the solution and start it up when debugging it. If I rebuild the solution and start it again, the error goes away.
I have implemented command ...
0
votes
3
answers
1k
views
Adding a program to run with Windows Startup to start in notifications in task bar
I have developed a C# wpf application with Visual Studio 2012. I published it with Inno Setup. When I start my program by double clicking the item it starts ans show me GUI "A". When I minimize, it ...
0
votes
1
answer
732
views
WPF Command Line and MvvmLight with designdata
I want to override the OnStartup like it is explained in this thread
WPF Command Line
Now is the problem that I'm using the MVVM Light Toolkit which throws a XamlParseException ,which says that the &...
2
votes
2
answers
185
views
Unable to Use BreakPoints After Trying to Add Command-Line Support
Update 3
This was actually being caused by a Post-Build action I included which uses ILMerge. See here for more details
Update2
It seems this was not directly caused by adding the command-line ...
1
vote
2
answers
429
views
C# WPF App crashes at the end
I have a simple program. Its job is to move files from A to B (a glorified bat file honestly).
The problem I'm having is that it crashes... at the end.
App.xaml.cs:
<Application x:Class="app.App"...
0
votes
1
answer
442
views
WPF application + command line arguments
I am trying to process command line arguments for my WPF application for this I have made following changes
I have converted the output type as - Console Application
commented the StartupUri ...