WPF
27 TopicsMicrosoft Store Service APIs v9.0 publisherQuery - Uniquely identifying user subscription
I'm working on a WPF app that will be published to the Windows Store. It supports an add-on monthly subscription. That subscription comes with consumable credits for using my app. Per user, per month, I want to track the user's credit balance. I'm using the following Microsoft Store Service API endpoint to get the user's subscription details from my backend service: collections.mp.microsoft.com/v9.0/collections/publisherQuery Here's an example response (with identifying information replaced with fake data): { "ContinuationToken": null, "Items": [ { "RecurrenceId": null, "AcquiredDate": "2025-04-28T20:34:54.2761169+00:00", "AcquisitionType": "Recurring", "EndDate": "2025-05-31T00:00:00+00:00", "Id": "11111111111122222222222333333333", "ModifiedDate": "2025-04-28T20:34:54.277868+00:00", "ProductId": "AAAAAAAAAAAA", "ProductKind": "Durable", "Quantity": 1, "SatisfiedByProductIds": [], "SkuId": "0020", "StartDate": "2025-04-28T00:00:00+00:00", "Status": "Active", "Tags": [], "TransactionId": "11111111-1111-1111-1111-111111111111", "TrialData": { "IsInTrialPeriod": false, "IsTrial": false, "TrialTimeRemaining": "00:00:00" } } ] } Based on this response, I can see there's an active subscription, with the start and end date. I'm trying to determine whether anything in this response uniquely represents this user's subscription for this month, and could be used as my own identifier when tracking user credit consumption. It looks like Id and TransactionId are the only two potential candidates, but I don't know for certain that I can count on either of these for this scenario. Can anyone confirm? Is there some altogether better approach I should be using?13Views0likes0CommentsMYSYS2 Installation Guide for Cross-Compilation on Visual Studio 2017, 2019, 2022, and WSL2
Use Notepad to create this file on your desktop or another folder: MYSYS2.txt MYSYS2 Paths: Use Notepad to create this file on your desktop or another folder: MYSYS2_Path_Win.txt NOTE: This folder layout, which can be easily edited, was generated with a batch file that utilizes the default configuration that comes with the UI-based setup program / installer. Use Notepad to create this file on your desktop or another folder: Generate_MYSYS2_Folder_Paths_Win.bat60Views0likes0CommentsAutomation testing for ToastNotifications
I am testing a WPF application, and I want to access a button on a Toast Notification. I am using the Microsoft UI Automation framework, but cannot locate the Notification window in the RawView tree or from the RootElement (.Find*). However tools like Inspect do find the Notification window. => what is the issue here? I could use NotificationListener, but that doesn't give access to any button. Correct me if I'm wrong. So how can I access those Toast Notifications with MS UI Automation?79Views0likes0CommentsHow can I find CPE of dll in .NET?
For example, System.IO.Packaging 8.0.0 hav weakness. https://www.nuget.org/packages/System.IO.Packaging/8.0.0 I have Vulnerability Management tool, I can receive notice of the weakness by registering CPE. I want to obtain CPE of System.IO.Packaging, but where is it available from? Thanks38Views0likes0CommentsBest design software for personal project
I'm starting to develop a WPF software, with some components like Ribbon Menu and Docking Layouts, but I find an intuitive design, better organized and cleaner, an interface that does not seem to be WinForms. Does anyone know of any components or frameworks that can do this type of design? My cordial greetings.94Views0likes0CommentsCan We add migration file from c#, instead of PackageManagerConsole
Hi, is there any possibilities to add migration file from c# in core project, entity framework code first project. I can able to add the migration file from PackageManagerConsole, but could not able to add from c#144Views0likes1CommentForce SSL DB Connection
As per AWS Guidelines we can force all connections to DB to use SSL & Client doesn't have to do any work to use SSL. Does it mean that whatever value we pass on to Connection String for following parameters, it'll still use SSL or we need to be specific about both these parameters? TrustServerCertificate=true;Encrypt=true Kindly advice.167Views0likes0CommentsHow to add attachements to new outlook programmatically?
Hello, We have developped C# UWP application that send an email with attachement file through Courier app and its work fine). Our customers migrate from Courier to New Outlook and our programs still open New Outlook mail message with Recipient, Subject, and body, but attachement files not appears ! Default Mail App - is New Outlook Do you have any ideas to add attachement to new outlook ? We use the following code : protected async void SendMail(Email mail) { try { var emailMessage = new Windows.ApplicationModel.Email.EmailMessage(); emailMessage.AllowInternetImages = true; emailMessage.To.Add(new Windows.ApplicationModel.Email.EmailRecipient(mail.Destinataire)); emailMessage.Subject = mail.Sujet; emailMessage.Body = mail.Corps; var stream = Windows.Storage.Streams.RandomAccessStreamReference.CreateFromFile(mail.fichier); var attachment = new Windows.ApplicationModel.Email.EmailAttachment(fichier.Name, stream); emailMessage.Attachments.Add(attachment); await Windows.ApplicationModel.Email.EmailManager.ShowComposeNewEmailAsync(emailMessage); } catch (Exception ex) { } } Regards, Thibaud281Views0likes0CommentsSet EXE language in EXE properties in C# WPF
I am working in C# WPF and want to change EXE Language which appears in EXE Properties-Details Page- Language. Originally the "Language" is "Language Neutral". Even though I am changing the "Assembly Neutral Language" from project properties, the EXE properties from explore are not showing the changes language from Visual Studio 2022. However C++ have an option to use .RC file but I need option which will work in C#.Net. Please let us know way to achieve this. Thanks in advance for any suggestions.358Views0likes0CommentsWPF: Project doesn't find its own Classes ("tag not found in namespace")
Hi there, I've got a problem that's driving me crazy: c# WPF Custom Controls Project (NET 7), Base Namespace "UserControls". All the controls, styles and Converters existing in the project are in that namespace (I tripple checked, it's the only namespace used). All the controls and Converters are public classes. In the project, there is a Class named "EqualityToBooleanConverter.cs" Additionally, there is a Style file called Button.xaml. I need to use the aforementioned converter here, so I am referencing it like this: <ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:local="clr-namespace:UserControls;assembly=UserControls"> <local:EqualityToBooleanConverter x:Key="ETBConverter" /> Intellisense does find the Namespace "UserControls", in fact, the namespace declaration AND the ressource declaration was done using intellisense. BUT as soon as I compile the project, the following error pops up: MC3074 - type "EqualityToBooleanConverter" does not exist in "clr-namespace:UserControls;assembly=UserControls" I just don't get it, as I said, all the files are in the same project, and they are - as of now - all using the root namespace "UserControls". Everything is fine until I start compiling. What I have tried so far: removing the "assembly"-part of the namespace-declaration changing the compile target from AnyCPU to x86 and back cleaning the solution creating a new solution, and re-adding all the files to it Also noteworthy: The same problem occurs when I try using one of the Usercontrols in that project WITHIN the project itself (like: creating a Window.xaml, defining the local-namespace, and trying to add the control leads to the same error as soon as I compile). I don't know what else could cause this...does anyone have any idea?4.2KViews2likes5Comments