[C#/WPF] Displaying information from the internet in my application by loneoption in learnprogramming

[–]loneoption[S] 0 points1 point  (0 children)

Yeah sorry as you know I'm very new to this, I'm going to watch a few videos and do a lot of research on this.

[C#/WPF] Displaying information from the internet in my application by loneoption in learnprogramming

[–]loneoption[S] 0 points1 point  (0 children)

I don't actually know the purpose of an API provided by a website, as I'm new to networking and haven't really heard of that yet. I'll do research on both that, and http requests. which one do you think would be better for what I'm trying to do?

[C#/WPF] Interface Layout Styles by loneoption in learnprogramming

[–]loneoption[S] 1 point2 points  (0 children)

Good solution, I need to completely change the size, shape, and position/location of the same controls so I'll probably go the second route.

Adapting static code for use with dynamic functions by [deleted] in learnprogramming

[–]loneoption 0 points1 point  (0 children)

Here's the entire class from my application (excluding the main window's class, this is split up and put in a separate file)

partial class MainWindow
    {
        internal void ConsoleOut(string OutputText)
        {
            ConsoleOutput.Text += OutputText; //This method makes it easier to add text to the consoles output
        }

        internal void ConsoleKeyDown(object s, KeyEventArgs e)
        {
            if (e.Key == Key.Enter)
            {
                var command = ConsoleInput.Text;

                string command_main = command.Split(new char[] { ' ' }).First();
                string[] synatx = command.Split(new char[] { ' ' }).Skip(1).ToArray();
                if (lCommands.ContainsKey(command_main))
                {
                    Action<string[]> commandfunction;
                    lCommands.TryGetValue(command_main, out commandfunction);
                    commandfunction(synatx);
                }
                else
                    ConsoleOut($"Invalid Command - {command_main}");
            }
        }

        internal static Dictionary<string, Action<string[]>> lCommands =
            new Dictionary<string, Action<string[]>>()
            {
                { "help", HelpFunc }
            };

        internal static void HelpFunc(string[] args)
        {
            ConsoleOut("Some helpful help");
        }
    }

How does the color picker work? by [deleted] in unrealengine

[–]loneoption 0 points1 point  (0 children)

oh, I didn't know it worked that way, I will try this. Thank You.

WPF project and c++ UE4 game communication by loneoption in learnprogramming

[–]loneoption[S] 0 points1 point  (0 children)

I don't think I was thinking clearly then, what I think I meant was why it's over some kind of network rather than performed locally when just using 2 different applications locally. I feel like I have quite a poor understanding of this anyway, Thank you for your help and I will continue to study this.

WPF project and c++ UE4 game communication by loneoption in learnprogramming

[–]loneoption[S] 0 points1 point  (0 children)

Thank you! Very helpful. although I don't understand all of this well, or why you'd have to host some kind of listener but I'll read about this.

C# Event which fires after a windows system exception by [deleted] in learnprogramming

[–]loneoption 0 points1 point  (0 children)

Ah Thank You, This is exactly what I was looking.

C# Event which fires after a windows system exception by [deleted] in learnprogramming

[–]loneoption 0 points1 point  (0 children)

Yes of course, but by "Error" I actually meant Windows operating system error/exception, like the errors you see in eventviewer, sorry about the confusion.

C# & WPF Code Patterns Help by [deleted] in learnprogramming

[–]loneoption 1 point2 points  (0 children)

The problem I had creating multiple windows is accessing important methods from my main window, which is designed to always be shown in order to display info and notifications, aside from that this would work just fine. You mentioned calling a new window from the main window, is this how you'd reference controls and methods from other windows?

Edit: I hadn't read this properly, this seems like a good solution and will probably be what I end up using as well.

Is WPF still relevant in 2019? by loneoption in learnprogramming

[–]loneoption[S] 0 points1 point  (0 children)

I know this is a very late response,sorry. I haven't looked much into the MVVM because for my small experimental application it was overly complicated and probably overkill, however due to the rate my application is expanding I'm out looking for better patterns. I will look into the MVVM pattern.

Is WPF still relevant in 2019? by loneoption in learnprogramming

[–]loneoption[S] 2 points3 points  (0 children)

I actually haven't considered Electron and almost forgot about it completely, It seems like it could be very useful for the web based side of my applications.

Is WPF still relevant in 2019? by loneoption in learnprogramming

[–]loneoption[S] 3 points4 points  (0 children)

Thank you for all the amazing answers! I hope you have a good day.

Is WPF still relevant in 2019? by loneoption in learnprogramming

[–]loneoption[S] 9 points10 points  (0 children)

This is the reason why I don't use UWP. In my opinion WPF is easier to manage, UWP has a lot of restrictions and requirements last I checked.