Skip to content

{Mistakes Will Be Made}

Hobby projects in game dev, crochet and whatever else takes my fancy

Menu
  • Home
  • Game Dev
  • C# projects
  • Crochet
  • Contact
Menu

.NET Maui Radio Buttons: Accessing content after a state change

Posted on 26/12/202426/12/2024 by Cheryl

This blog post is based on the Microsoft documentation for .Net Maui Radio Buttons.  Microsoft’s code samples also show how to access the content of Radio Buttons following a “CheckedChange” event, and I’ve summarised it below.

.Xmal file

This is my example of Radio Button code. The “DigitLength” method in the code-behind (see below) is called when the CheckedChanged event fires.

Code-behind (.xmal.cs file)

To access the Radio Button that has been checked, in the code-behind create a variable for the Radio Button and assign the sender object to it.

About me

Hi, I’m Cheryl and thanks for popping by! This blog is about some of the creative projects I’m getting up to in my spare time.

Find me here:

  • GitHub
  • Etsy
© 2026 {Mistakes Will Be Made} | Powered by Minimalist Blog WordPress Theme