I have a TextBlock
with dynamic data (Timer). The Text property is updated once per second.
The narrator sometimes (not always) reads the text twice in scan mode, because it have two properties with text: Text
and AutomationProperty.Name
. I tried to write data directly to the text block TextBlock.Text = Text;
(not a binding) and to change different parameters AutomatonProperties
, it didn't help.
XAML:
<TextBlock Text="{x:Bind Text, Mode=OneWay}"/>
C#:
private string _text;
public string Text
{
get { return _text; }
set
{
_text = value;
OnPropertyChanged("Text");
}
}
How correctly to adjust the TextBlock
that the Narrator in a Scan Mode read it once?