mirror of
https://github.com/MaSzyna-EU07/StarterNG.git
synced 2026-11-23 08:35:04 +01:00
fix: a screen reader says what the date and time hold and that a tree group opens
The date and time pickers were read as a grid: the button inside them now carries the field's label and its value. A scenery group in the tree says whether it is open or closed, and the weather fields are named by their labels.
This commit is contained in:
@@ -17,6 +17,7 @@ using Avalonia.Media.Imaging;
|
||||
using Avalonia.Threading;
|
||||
using Avalonia.VisualTree;
|
||||
using StarterNG.Classes;
|
||||
using StarterNG.Controls;
|
||||
using StarterNG.Domain;
|
||||
using StarterNG.Application;
|
||||
using StarterNG.Domain.Sceneries;
|
||||
@@ -101,7 +102,7 @@ public partial class Scenarios : UserControl
|
||||
|
||||
private TreeViewItem ToTreeItem(SceneryTreeNode node, bool expandGroups)
|
||||
{
|
||||
var item = new TreeViewItem
|
||||
var item = new ExpandableTreeViewItem
|
||||
{
|
||||
Header = node.IsGroup ? node.Label : SceneryHeader(node.Label, Sceneries[node.SceneryIndex]),
|
||||
Tag = node.IsGroup ? null : node.SceneryIndex,
|
||||
|
||||
Reference in New Issue
Block a user