Skip to content

Commit

Permalink
Article - TTS | mentioning Binding context to the TTS button
Browse files Browse the repository at this point in the history
  • Loading branch information
bricefriha committed Jan 30, 2025
1 parent 669f70c commit e975cda
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions App/Views/ArticlePage.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -157,9 +157,13 @@
<Border Grid.Column="2"
Style="{StaticResource ButtonBorder}"
Padding="0"
BackgroundColor="{Binding TtsColour}">
BackgroundColor="{Binding TtsColour}"
x:Name="TtsButton">
<Border.Behaviors>
<mct:TouchBehavior Command="{Binding PlayTextToSpeech}"/>
<mct:TouchBehavior Command="{Binding PlayTextToSpeech}"
BindingContext="{Binding BindingContext,
Source={x:Reference thy},
x:DataType=ContentPage}"/>
</Border.Behaviors>

<Label TextColor="{StaticResource Primary}"
Expand Down

0 comments on commit e975cda

Please sign in to comment.