Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
59 changes: 37 additions & 22 deletions 10.0/Apps/DeveloperBalance/Pages/Controls/TaskView.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
StrokeShape="RoundRectangle 20"
Background="{AppThemeBinding Light={StaticResource LightSecondaryBackground}, Dark={StaticResource DarkSecondaryBackground}}"
x:DataType="models:ProjectTask">

<effectsView:SfEffectsView
TouchDownEffects="Highlight"
HighlightBackground="{AppThemeBinding Light={StaticResource DarkOnLightBackground}, Dark={StaticResource LightOnDarkBackground}}">
Expand All @@ -37,29 +37,44 @@
<shimmer:SfShimmer.Content>
<Grid ColumnDefinitions="*" ColumnSpacing="15" Padding="{OnIdiom 15, Desktop=20}">

<Grid SemanticProperties.Description="{Binding Title}" Margin="{OnIdiom -15, Desktop=-20}">
<Label
Margin="{OnIdiom '65,0,0,0', Desktop= '70,0,0,0'}"
Text="{Binding Title}"
HorizontalOptions="Start"
VerticalOptions="Center"
LineBreakMode="WordWrap"/>
<!-- Transparent button covering the task view to improve accessibility and make the entire area clickable. -->
<Button
BackgroundColor="Transparent"
BorderColor="Transparent"
BorderWidth="0"
Margin="{OnIdiom -15, Desktop=-20}"
Padding="0"
AutomationProperties.IsInAccessibleTree="True"
SemanticProperties.Description="{Binding Title}"
SemanticProperties.Hint="Double-tap or press Enter to open"
Text="{Binding Title}"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

SemanticProperties.Hint="Double-tap or press Enter to open"

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @jsuarezruiz , I’ve updated the changes , Kindly review and let me know if any further adjustments are needed.

TextColor="Transparent"
HorizontalOptions="Fill"
VerticalOptions="Fill"
Command="{Binding NavigateToTaskCommand, Source={RelativeSource AncestorType={x:Type pageModels:IProjectTaskPageModel}}, x:DataType=pageModels:IProjectTaskPageModel}"
CommandParameter="{Binding .}"
x:Name="TaskButton"/>

<Grid.GestureRecognizers>
<TapGestureRecognizer
Command="{Binding NavigateToTaskCommand, Source={RelativeSource AncestorType={x:Type pageModels:IProjectTaskPageModel}}, x:DataType=pageModels:IProjectTaskPageModel}"
CommandParameter="{Binding .}"/>
</Grid.GestureRecognizers>
</Grid>
<!-- Label displays the title visually without handling interaction. -->
<Label
Margin="{OnIdiom '65,0,0,0', Desktop= '70,0,0,0'}"
Text="{Binding Title}"
HorizontalOptions="Start"
VerticalOptions="Center"
LineBreakMode="WordWrap"
FontSize="Default"
AutomationProperties.IsInAccessibleTree="False"
TextColor="{AppThemeBinding Light={StaticResource Black}, Dark={StaticResource White}}"
InputTransparent="True"/>

<CheckBox Grid.Column="0"
WidthRequest="50"
HorizontalOptions="Start"
IsChecked="{Binding IsCompleted, Mode=OneTime}"
VerticalOptions="Center"
CheckedChanged="CheckBox_CheckedChanged"
AutomationProperties.IsInAccessibleTree="True"
SemanticProperties.Description="{Binding Title}"/>
<CheckBox
WidthRequest="50"
HorizontalOptions="Start"
IsChecked="{Binding IsCompleted, Mode=OneTime}"
VerticalOptions="Center"
CheckedChanged="CheckBox_CheckedChanged"
AutomationProperties.IsInAccessibleTree="True"
SemanticProperties.Description="{Binding Title}"/>
</Grid>
</shimmer:SfShimmer.Content>
</shimmer:SfShimmer>
Expand Down
Loading