Category "c++sharp"

Certain objects in unity 2d cinemachine target group camera offsetted

Im making a star wars game for fun, im using cinemachine to have a target group camera to get the camera between the 2 players and sized appropiatly. The player

How to use WhenActivated with properties in avalonia

I am trying to use ReactiveUI along with Avalonia. Due to initialization order in Avalonia 0.10 preview following code fails: class ViewModel : IActivatableView

C# appending values to empty array int[] doesn't work

I'm doing a windows form app and I need to declare empty array for some listbox operations. But i can't add value to array. When I try to print the lenght of th

Getting an invalidcastexception when trying to retrieve data

When running the get method to return a view populated with details, I get the exception saying: System.InvalidCastException: 'Unable to cast object of type 'Sy

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