mirror of
https://github.com/microsoft/PowerToys.git
synced 2025-12-16 03:37:59 +01:00
fix navigation issue
Signed-off-by: Shawn Yuan (from Dev Box) <shuaiyuan@microsoft.com>
This commit is contained in:
@@ -77,6 +77,7 @@
|
||||
BorderThickness="0,1,0,0"
|
||||
Click="OnSettingsCardClick"
|
||||
CornerRadius="0"
|
||||
Tag="{x:Bind}"
|
||||
IsClickEnabled="{Binding (tk:FrameworkElementExtensions.Ancestor).IsItemClickable, RelativeSource={RelativeSource Self}}">
|
||||
<tkcontrols:SettingsCard.Header>
|
||||
<StackPanel Orientation="Horizontal">
|
||||
|
||||
@@ -84,7 +84,7 @@ namespace Microsoft.PowerToys.Settings.UI.Controls
|
||||
|
||||
private void OnSettingsCardClick(object sender, RoutedEventArgs e)
|
||||
{
|
||||
if (sender is FrameworkElement element && element.DataContext is ModuleListItem item)
|
||||
if (sender is FrameworkElement element && element.Tag is ModuleListItem item)
|
||||
{
|
||||
item.ClickCommand?.Execute(item.Tag);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user