-
-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix TapGestureRecognizer not working
- Loading branch information
Showing
12 changed files
with
134 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
using System; | ||
namespace Sample.ViewModels; | ||
|
||
public class TapSurveyViewModel:BindableBase | ||
{ | ||
public TapSurveyViewModel() | ||
{ | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
<?xml version="1.0" encoding="utf-8" ?> | ||
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui" | ||
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" | ||
xmlns:sv="clr-namespace:AiForms.Settings;assembly=SettingsView" | ||
x:Class="Sample.Views.TapSurveyPage" | ||
Title="TapSurveyPage"> | ||
<sv:SettingsView> | ||
|
||
<sv:Section> | ||
<sv:Section.HeaderView> | ||
<HorizontalStackLayout> | ||
<Label Text="Header" HeightRequest="44"> | ||
<Label.GestureRecognizers> | ||
<TapGestureRecognizer Tapped="TapGestureRecognizer_Tapped_3" /> | ||
</Label.GestureRecognizers> | ||
</Label> | ||
</HorizontalStackLayout> | ||
</sv:Section.HeaderView> | ||
|
||
<sv:Section.FooterView> | ||
<HorizontalStackLayout> | ||
<Label Text="Footer" HeightRequest="44"> | ||
<Label.GestureRecognizers> | ||
<TapGestureRecognizer Tapped="TapGestureRecognizer_Tapped_4" /> | ||
</Label.GestureRecognizers> | ||
</Label> | ||
</HorizontalStackLayout> | ||
</sv:Section.FooterView> | ||
|
||
<sv:CustomCell IsSelectable="True"> | ||
|
||
<Grid ColumnDefinitions="*,*,*"> | ||
<StackLayout Grid.Column="0"> | ||
<StackLayout.GestureRecognizers> | ||
<TapGestureRecognizer Tapped="TapGestureRecognizer_Tapped" /> | ||
</StackLayout.GestureRecognizers> | ||
<Image /> | ||
<Label Text="A" | ||
FontAttributes="Bold" | ||
HorizontalOptions="Center"/> | ||
</StackLayout> | ||
<StackLayout Grid.Column="1"> | ||
<StackLayout.GestureRecognizers> | ||
<TapGestureRecognizer Tapped="TapGestureRecognizer_Tapped_1" /> | ||
</StackLayout.GestureRecognizers> | ||
<Image /> | ||
<Label Text="B" | ||
FontAttributes="Bold" | ||
HorizontalOptions="Center"/> | ||
</StackLayout> | ||
<StackLayout Grid.Column="2"> | ||
<StackLayout.GestureRecognizers> | ||
<TapGestureRecognizer Tapped="TapGestureRecognizer_Tapped_2" /> | ||
</StackLayout.GestureRecognizers> | ||
<Image /> | ||
<Label Text="C" | ||
FontAttributes="Bold" | ||
HorizontalOptions="Center"/> | ||
</StackLayout> | ||
</Grid> | ||
|
||
</sv:CustomCell> | ||
|
||
</sv:Section> | ||
|
||
</sv:SettingsView> | ||
</ContentPage> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
namespace Sample.Views; | ||
|
||
public partial class TapSurveyPage : ContentPage | ||
{ | ||
public TapSurveyPage() | ||
{ | ||
InitializeComponent(); | ||
} | ||
|
||
void TapGestureRecognizer_Tapped(System.Object sender, Microsoft.Maui.Controls.TappedEventArgs e) | ||
{ | ||
} | ||
|
||
void TapGestureRecognizer_Tapped_1(System.Object sender, Microsoft.Maui.Controls.TappedEventArgs e) | ||
{ | ||
} | ||
|
||
void TapGestureRecognizer_Tapped_2(System.Object sender, Microsoft.Maui.Controls.TappedEventArgs e) | ||
{ | ||
} | ||
|
||
void TapGestureRecognizer_Tapped_3(System.Object sender, Microsoft.Maui.Controls.TappedEventArgs e) | ||
{ | ||
} | ||
|
||
void TapGestureRecognizer_Tapped_4(System.Object sender, Microsoft.Maui.Controls.TappedEventArgs e) | ||
{ | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.