ivi
ivi
CC#
Created by ivi on 6/9/2024 in #help
Canvas: Any benefit to "reusing" shapes vs. Canvas.Clear() and creating new shapes every render?
From a performance perspective. Anything significant?
1 replies
CC#
Created by ivi on 1/11/2024 in #help
C# programs cause 1.9KB of network traffic despite no online functionality
https://cdn.discordapp.com/attachments/1006281886089363456/1194881087076306984/image.png?ex=65b1f6ba&is=659f81ba&hm=c987805b307220451872a5bf49770e81f7218e5c03a7a3ead1076b9f10e1740e& How come? Seems to happen with various C#-based tools I'm using, all the same 1.9KB. Is there some kind of standard telemetry? Can I disable it?
2 replies
CC#
Created by ivi on 9/14/2023 in #help
❔ How to show users a message if missing NET Core Runtime?
My mostly-console application requires .NET 7. Unfortunately, when users don't have it, it just silently exits and they don't get the opportunity to read a helpful error message, if it even exists. Can I somehow change this and show a meaningful error popup if users are missing prerequisites?
7 replies
CC#
Created by ivi on 9/10/2023 in #help
❔ Net 7 console app insta-closes for users without runtime instead of notifying of missing runtime
8 replies
CC#
Created by ivi on 8/16/2023 in #help
✅ WPF thinks my collection has no items
2 replies
CC#
Created by ivi on 8/14/2023 in #help
✅ MVVM: Are models observable?
I never quite understood what the Model is in MVVM. My assumption is that this is any data you feed into the application, from any source, and can be swapped out for any other, and viewmodels have to support that. Yet it seems very convenient to put Observable collections/properties in your Model to make the rest of the code work. But would you be able to even expect that from the model you put in? Or is the Model a bespoke part of your application which in turn grabs & stores that external data, and therefore is free to be designed with Observability?
12 replies
CC#
Created by ivi on 4/10/2023 in #help
❔ WPF - Binding to last child of collection
2 replies
CC#
Created by ivi on 4/10/2023 in #help
✅ What does WPF want from me?
13 replies
CC#
Created by ivi on 3/28/2023 in #help
❔ XMLAttributeCollection -> Dictionary with LINQ?
It's a confusing class. It only allows turning it into a Queryable, but I have no experience with those and would rather not. How could I turn it into a dictionary of string->string?
17 replies
CC#
Created by ivi on 3/28/2023 in #help
❔ Find common substring at start of every string in list
I have a list of Windows path strings and I want to determine the common beginning shared by all of them, if such a thing exists. So, a list like:
C:\User\hi.txt
C:\User\b.txt
C:\User\hh.txt
C:\User\hi.txt
C:\User\b.txt
C:\User\hh.txt
would output the string C:\User\. How to smoothly accomplish such a thing?
2 replies
CC#
Created by ivi on 12/4/2022 in #help
❔ ASP.NET Core default template app fails with Electron.NET - I don't understand the ports
I'm making my first excursion in C# apps using ASP.NET Core and Electron.NET. I have a net6 project. I have created a basic NET6 ASP.NET Core app from the templates, and followed Electron.NET instructions to add support for it. I have changed nothing else about the example app. The example comes with a weatherforecast/ URL which calls a controller to return some weather forecast info. However, the app says: Error occurred while trying to proxy: localhost:44408/weatherforecast I seem to have the following various bits of info: - launchSettings.json iisSettings: applicationUrl localhost:15555 and sslPort 44342 - launchSettings.json ProjectNameHere profile: applicationUrl localhost:7092;localhost:5140 - app terminal says Use Electron Port: 8000 - app terminal says ASP.NET Core Watch Port: 8001 - app terminal says Now listening on: http://localhost:8001 - app terminal says stdout: warn: Microsoft.AspNetCore.HttpsPolicy.HttpsRedirectionMiddleware[3] Failed to determine the https port for redirect. - .env.development says PORT=44408 - spa.proxy.json says PORT=44408 - csproj file says <SpaProxyServerUrl>https://localhost:44408</SpaProxyServerUrl> I am launching the app via electronize start /watch. So... what the heck are these 50000 different ports in my application? I need 1 port for my JavaScript Electron output, and 1 port for the .NET API server. What are those other ones? How can I fix the issue and remove this superfluous information? Let me know if you need additional info.
5 replies