-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
namespace DeveloperBalance.Pages.Controls; | ||
|
||
public class ChipDataTemplateSelector : DataTemplateSelector | ||
{ | ||
public required DataTemplate SelectedTagTemplate { get; set; } | ||
public required DataTemplate NormalTagTemplate { get; set; } | ||
|
||
protected override DataTemplate OnSelectTemplate(object item, BindableObject container) | ||
{ | ||
return (item as Tag)?.IsSelected ?? false ? SelectedTagTemplate : NormalTagTemplate; | ||
Check failure on line 10 in 9.0/Apps/DeveloperBalance/DeveloperBalance/Pages/Controls/ChipDataTemplateSelector.cs GitHub Actions / build (windows-latest)
Check failure on line 10 in 9.0/Apps/DeveloperBalance/DeveloperBalance/Pages/Controls/ChipDataTemplateSelector.cs GitHub Actions / build (windows-latest)
Check failure on line 10 in 9.0/Apps/DeveloperBalance/DeveloperBalance/Pages/Controls/ChipDataTemplateSelector.cs GitHub Actions / build (windows-latest)
Check failure on line 10 in 9.0/Apps/DeveloperBalance/DeveloperBalance/Pages/Controls/ChipDataTemplateSelector.cs GitHub Actions / build (windows-latest)
Check failure on line 10 in 9.0/Apps/DeveloperBalance/DeveloperBalance/Pages/Controls/ChipDataTemplateSelector.cs GitHub Actions / build (windows-latest)
Check failure on line 10 in 9.0/Apps/DeveloperBalance/DeveloperBalance/Pages/Controls/ChipDataTemplateSelector.cs GitHub Actions / build (windows-latest)
Check failure on line 10 in 9.0/Apps/DeveloperBalance/DeveloperBalance/Pages/Controls/ChipDataTemplateSelector.cs GitHub Actions / build (windows-latest)
Check failure on line 10 in 9.0/Apps/DeveloperBalance/DeveloperBalance/Pages/Controls/ChipDataTemplateSelector.cs GitHub Actions / build (windows-latest)
Check failure on line 10 in 9.0/Apps/DeveloperBalance/DeveloperBalance/Pages/Controls/ChipDataTemplateSelector.cs GitHub Actions / build (macos-15)
Check failure on line 10 in 9.0/Apps/DeveloperBalance/DeveloperBalance/Pages/Controls/ChipDataTemplateSelector.cs GitHub Actions / build (macos-15)
Check failure on line 10 in 9.0/Apps/DeveloperBalance/DeveloperBalance/Pages/Controls/ChipDataTemplateSelector.cs GitHub Actions / build (macos-15)
Check failure on line 10 in 9.0/Apps/DeveloperBalance/DeveloperBalance/Pages/Controls/ChipDataTemplateSelector.cs GitHub Actions / build (macos-15)
Check failure on line 10 in 9.0/Apps/DeveloperBalance/DeveloperBalance/Pages/Controls/ChipDataTemplateSelector.cs GitHub Actions / build (macos-15)
|
||
} | ||
} |