Skip to content

A base program involving an exploration into the .NET Desktop workflow, specifically targeting windows UI automation (this is not a cross-platform exploration). This project also involves aspects of Avalonia UI to interact with the code. This repository serves as an example or record of a specific use of these tools. Not a template.

Notifications You must be signed in to change notification settings

mwlgt/Intro-Avalonia-Dotnet-UIA

Repository files navigation

Intro to Avalonia and MS UI automation with .NET

This repository is an experiment on using Avalonia as a GUI framework and Microsoft's UI Automation for automating GUI on other applications. This uses .NET core to function, which is why it is written in C#. This project is in no way meant to be used as a template as there are flaws that prevent it from being scaleable (like potentially different notepad versions changing the UI structure). However, to test the functionality of this repository to be used as an example for these tools's potential uses, the following steps need to be followed:

Steps required to build and run this application.

  1. Have a windows machine
  2. Install the .NET 9.0 SDK
  3. Install the Avalonia extention for your preferred IDE or text editor.
  4. Install .NET Avalonia templates
  5. Open a terminal window and enter
git clone https://github.com/mwlgt/Intro-Avalonia-Dotnet-UIA
cd Intro-Avalonia-Dotnet-UIA
dotnet run Program.cs
  1. The application should open, and you should be greeted with an interface with four buttons, allowing you to open and close notepad, as well as set the text in its main window to "yes" or "no"

About

A base program involving an exploration into the .NET Desktop workflow, specifically targeting windows UI automation (this is not a cross-platform exploration). This project also involves aspects of Avalonia UI to interact with the code. This repository serves as an example or record of a specific use of these tools. Not a template.

Topics

Resources

Stars

Watchers

Forks

Languages