by

Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • Aug 03 22:11

    punker76 on GH-3894-Accessibility-WindowCommands

    (compare)

  • Aug 03 22:11

    punker76 on develop

    (GH-3894) Fix Accessibility Ins… Merge pull request #3895 from M… (compare)

  • Aug 03 22:11
    punker76 closed #3895
  • Aug 03 22:11
    punker76 closed #3894
  • Aug 03 21:57
    punker76 opened #3895
  • Aug 03 21:57
    punker76 labeled #3895
  • Aug 03 21:57
    punker76 milestoned #3895
  • Aug 03 21:49

    punker76 on GH-3894-Accessibility-WindowCommands

    (GH-3894) Fix Accessibility Ins… (compare)

  • Aug 03 18:46
    punker76 milestoned #3894
  • Aug 03 12:32
    mrlacey labeled #3894
  • Aug 03 12:32
    mrlacey opened #3894
  • Aug 01 21:04
    batzen commented #3880
  • Jul 28 16:47
    dnobrerochapt commented #3886
  • Jul 27 21:53

    punker76 on develop

    Fix DependencyProperty.Register… (compare)

  • Jul 25 13:58

    punker76 on develop

    Remove unused internal SafeRais… (compare)

  • Jul 25 13:54

    punker76 on develop

    More checks in GetMonitorWorkSi… (compare)

  • Jul 24 21:55

    punker76 on GH-3892-GetWindowText-Win32Exception

    (compare)

  • Jul 24 21:55

    punker76 on develop

    (GH-3892) Add MetroWindowAutoma… Merge pull request #3893 from M… (compare)

  • Jul 24 21:55
    punker76 closed #3893
  • Jul 24 21:55
    punker76 closed #3892
AKruimink
@AKruimink
i would opt for Debug.Writeline as when a project is build those are automaticly left out
in this case ofcourse
if for wat ever reason your are hard set on using console then you need to manualy create one using win32
which ofcourse would make no sense, since what your doing is just debugging, it's not like a user would ever see said output, hence use Debug.WriteLine
when debugging
Console.WriteLine when you wanna print text to a console that a user interacts with
AKruimink
@AKruimink
and trace.Writeline you might wanna use together with debug.writeline, unlike Debug.WriteLine, trace will be included in a release confguration
this might be usefull for logging in a released version
Console.WriteLine = visual console for a user (mainly a console application) (does not refere to the visual studio console)
Debug.WriteLine = prints log to the visual studio console only during debug mode
Trace.WriteLine = prints logs to the visual studio console during both Debug and release mode (could be incorporated into a log system)
hope that clears it up
DeeJayhX
@DeeJayhX
@AKruimink I do understand the purposes of Debug.WriteLine and Trace.WriteLine. I was only expressing that a regular WPF application through a MainWindow inheriting from a Window will, in fact, write a Console.WriteLine to the debugging output console. So, too, should a MetroWindow in order to maintain the standard, unless there is some very specific reason not to that I am misunderstanding. To clarify, in my WPF applications, I generally use Console.WriteLine for my Temporary debugging outputs that I plan to remove later, such as this instance. Permanent debugging outputs, of course, go to Debug.Writeline. It makes it easier to remember to remove at a later time without haveing to leave a comment reminder to do so. I hope that clears things up. I appreciate all the help and guidance. Thank you!
Tim
@timunie
@DeeJayhX as far as I know also a normal Window will not handle Console.WriteLine().
If it really works with a normal Window please make a sample and show it to us. Because then we need to investigate it further.
AKruimink
@AKruimink
hmm very peculiar, i just tried it, and i neither App.cs nor my MetroWindow am i able to ptint using Console.WriteLine (as would be expected might i add)
Do you start your app through a console app by any change?
ow, normal window, let me test that quickly as well
image.png
clean wpf project using .net core Console.WriteLine does not print in App.cs
image.png
AKruimink
@AKruimink
image.png
image.png
nor does it print in MainWindow (that inherits Window)
So im not sure how you are getting it towork, unless u possibly host it through a console application
but even then im doubtfull, like @timunie mentiont earlier, any change you could upload a project in which Console.Writeline works @DeeJayhX rather curiouse as to how and why :thumbsup:
DeeJayhX
@DeeJayhX
I started with a clean wpf .net framework application. Maybe it's a difference between framework and core, but it works with an untouched, fresh wpf framework app.
Tim
@timunie
please please send it via github. On my PC it does NOT run
:pray: I could really learn something new from it
DeeJayhX
@DeeJayhX
@timunie
Password is "writelineworksinwpf" without the quotes.
@AKruimink since you also asked, tagging you
proof is in the GIF, solution is in the archive
ConsoleWriteLineWPF.gif
Now, a new question. I re-skinned a program with MahApps. Prior, all the controls, like Button's content, were using the FontSize that I set inside of <Window>. Now, they no longer use that font size. If there a new way to enforce this with the <mah:MetroWindow>?
DeeJayhX
@DeeJayhX
image.png
image.png
just override this
The x:Keys not the whole file
Tim
@timunie
@DeeJayhX thank you for the sample. But in your sample it also works for MetroWindow.
I thought it should open a Console but it redirects to the outputwindow
So no bug in MahApps and learned something new. Thank you
AKruimink
@AKruimink
@timunie u tried .net core as well? doesnt seem to work there
does indeed work in framework tho, for me as well
AKruimink
@AKruimink
i know this has nothing todo with mahapps, but rather instresting, still looking into it but seems like there are limitations
.net core it does not seem to work what so ever
.net framework it does, but it seems like only a handfull of console commands work, defenitly not all.
Add the same time the Console.WriteLine seems to not fully function either as text like こんにちは! doesnt print, while it does work with Trace and Debug
rather curiouse as to why it is the way it is
DeeJayhX
@DeeJayhX
It's definitely strange, but I only use it to write basic things to be removed later, and honestly, lately, I've been trying to remember to use Tracepoints instead, since they are the epitome of temporary.
Jan Karger ツ ☀
@punker76
@AKruimink @DeeJayhX Using Debug.WriteLine has the benefit that it will be ignored in release. The Trace is good for errors or information in release mode.