Category "c++sharp"

Blazor: Drag & Drop list elements

I would like to know how to bind Drag & Drop events to rearrange items in a list. This is the code I have: <PageTitle>Drag & Drop</PageTitle>

Shorten JSON reading class

I have a simple JSON reading class that should grab values from a JSON object and put it in c# variables. Right now it uses 8 if statements, but I was wondering

OpenXML to Excel: CellFormat Problem - Open Excel-Template and insert datatable to existing Excel-Table with formatted columns

I am getting some data as JSON via RESTful web api and transforming it into a datatable. Afterwards I want to open an "Excel template" (*.xlsx) with OpenXML and

Subscriber don't receive delegate

Sorry if I bother again with a silly delegates-related question... I'll try to be as precise as possible. I have this situation: Object A + Script A, Object B,D

c#: How to popup uwp project in winform

I want to popup a UWP project when I click a button in a Winform project I tried to pop up WPF, but it didn't work in UWP. In WinForm I can't add a reference t

Azure Event Grid output binding not working

I have tried every variation of what this document has to offer to make an azure function that takes in an event grid event and outputs and event grid event: ht

Using INotifyPropertyChanged view models with Cocoa/AppKit bindings

I know this is pretty esoteric but hoping someone has a solution for me. I have an application that started life as WPF, moved to UWP and now lives primarily as

Two Identical applications which communicate over a TCP socket connection on the localhost

C#/XAML .NET WPF ... Both applications need to have the ability to connect with each other, and both should have listeners. How would I do this as I know that u

How can I re-write this input/output files so that my input file is a comma delimited file

How can I re-write this input/output files so that my input file is a comma delimited file (input.csv)? Input file (input.csv): Smith,John,87 Doe,Jane,93 Sacram

How do I use .Net Core Dependency Injection from within a custom Class

Bit of a newbie question. I am having trouble getting access to dependency injected services from within my own custom class in ASP.NET Core 3.1 I can access se

C# IDymanicParameters for powershell cmdlet required in both Parent and Child Class

We can define dynamic parameters for Powershell commandlets by adding IDynamicParameters and implementing it's GetDynamicParameters() method that creates the dy

Add different icons for teams custom apps outline?

I have a problem, I want to add different icons when my app is selected and when my app is not selected in teams, something similar to what we have for the defa

Show a list of all "Alt+Tab windows" (even full screen UWP windows) and retrieve the handle of the one picked by the user

I need to retrieve the handle of a window selected by the user and then retrieve its handle. This window must be one of those shown when ALT+TAB is pressed. I t

C# Word Interop cannot change "Creation Date" built in document property for some reason

Code I use: string fullPath = null; DateTime creationDate = new DateTime(); string creatorName = null; foreach (var arg in args) { if (arg.Contains("--path"

Angular grid with server side filtering, sorting and pagination?

I want to implement Angular grid with server side pagination, filtering and sorting> Ag grid provide these feature in enterprise edition only. Is there any o

NET5.0 Blazor WASM CORS client exception

I have a Blazor WASM app and a Web Api to get called by Blzor via HttpClient. Both programs run on the same machine (and also in production environment which sh

How to export a registry key in C#

I am trying to write a C# code, which will block exe files from running. I found a question about the same topic: example question. In the question suggested me

How can an authenticated user access the drive that is publicly accessible?

With this code, I am able to get the files that have been shared to the service account email. But, when I shared the folder (that was not owned by me, but is p

Is there a way in Fluent Validation library to remove the index from the collection validation errors?

I'm using Fluent Validation to validate this model: class MyModel { public int Id {get; set;} public List<ChildModel> Children {get; set;} } clas

Setting up IActionDescriptorCollectionProvider for a unit test

I am currently writing unit tests for a TagHelper that uses IActionDescriptorCollectionProvider in its constructor. My setupt looks as below so far - any ideas