-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Added SwipeTemplates - Added a class to the template ResourceDictionary
- Loading branch information
1 parent
94f8a62
commit 80ecb6f
Showing
17 changed files
with
219 additions
and
25 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
29 changes: 29 additions & 0 deletions
29
...iXamlStylesLibrary/SharedMauiXamlStylesLibrary/Themes/Controls/Core/EnhancedListView.xaml
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 @@ | ||
<?xml version="1.0" encoding="utf-8" ?> | ||
<?xaml-comp compile="true" ?> | ||
<ResourceDictionary | ||
xmlns="http://schemas.microsoft.com/dotnet/2021/maui" | ||
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" | ||
|
||
xmlns:controls="clr-namespace:AndreasReitberger.Shared.Controls" | ||
xmlns:listView="clr-namespace:Syncfusion.Maui.ListView;assembly=Syncfusion.Maui.ListView" | ||
> | ||
<ResourceDictionary.MergedDictionaries> | ||
<ResourceDictionary Source="/Themes/SharedColors.xaml" /> | ||
<ResourceDictionary Source="/Themes/ItemTemplates/ListViewSwipeTemplates.xaml" /> | ||
</ResourceDictionary.MergedDictionaries> | ||
<Style TargetType="controls:EnhancedListView"> | ||
<Setter Property="SelectionBackground" Value="{AppThemeBinding Light={StaticResource Gray200}, Dark={StaticResource Gray800}}" /> | ||
<Style.Triggers> | ||
<Trigger Property="IsEnabled" Value="False" TargetType="controls:EnhancedListView"> | ||
<Setter Property="BackgroundColor" Value="{AppThemeBinding Light={StaticResource Gray600}, Dark={StaticResource Gray400}}" /> | ||
</Trigger> | ||
</Style.Triggers> | ||
</Style> | ||
|
||
<Style x:Key="ListViewDeleteEditSwipeableStyle" TargetType="controls:EnhancedListView"> | ||
<Setter Property="AllowSwiping" Value="True" /> | ||
<Setter Property="SwipeThreshold" Value="70" /> | ||
<Setter Property="StartSwipeTemplate" Value="{StaticResource DeleteSwipeTemplate}" /> | ||
<Setter Property="EndSwipeTemplate" Value="{StaticResource EditSwipeTemplate}" /> | ||
</Style> | ||
</ResourceDictionary> |
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
20 changes: 20 additions & 0 deletions
20
...tylesLibrary/SharedMauiXamlStylesLibrary/Themes/Controls/Syncfusion/SfCartesianChart.xaml
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,20 @@ | ||
<?xml version="1.0" encoding="utf-8" ?> | ||
<?xaml-comp compile="true" ?> | ||
<ResourceDictionary | ||
xmlns="http://schemas.microsoft.com/dotnet/2021/maui" | ||
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" | ||
|
||
xmlns:chart="clr-namespace:Syncfusion.Maui.Charts;assembly=Syncfusion.Maui.Charts" | ||
> | ||
<ResourceDictionary.MergedDictionaries> | ||
<ResourceDictionary Source="/Themes/SharedIcons.xaml" /> | ||
<ResourceDictionary Source="/Themes/SharedFonts.xaml" /> | ||
<ResourceDictionary Source="/Themes/SharedColors.xaml" /> | ||
</ResourceDictionary.MergedDictionaries> | ||
|
||
<Style x:Key="DefaultChartAxisLabelStyle" TargetType="chart:ChartAxisLabelStyle"> | ||
<Setter Property="TextColor" Value="{AppThemeBinding Light={StaticResource Gray900}, Dark={StaticResource Gray100}}" /> | ||
<Setter Property="FontFamily" Value="{StaticResource MontserratRegular}" /> | ||
</Style> | ||
|
||
</ResourceDictionary> |
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
49 changes: 49 additions & 0 deletions
49
...ibrary/SharedMauiXamlStylesLibrary/Themes/ItemTemplates/ListViewGroupHeaderTemplates.xaml
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,49 @@ | ||
<?xml version="1.0" encoding="UTF-8" ?> | ||
<?xaml-comp compile="true" ?> | ||
<ResourceDictionary | ||
xmlns="http://schemas.microsoft.com/dotnet/2021/maui" | ||
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" | ||
x:Class="AndreasReitberger.Shared.Themes.ItemTemplates.ListViewGroupHeaderTemplates" | ||
|
||
xmlns:eventLogger="clr-namespace:AndreasReitberger.Shared.Core.EventLogger;assembly=SharedMauiCoreLibrary" | ||
xmlns:documentation="clr-namespace:AndreasReitberger.Shared.Core.Documentation;assembly=SharedMauiCoreLibrary" | ||
xmlns:language="clr-namespace:AndreasReitberger.Shared.Core.Localization;assembly=SharedMauiCoreLibrary" | ||
|
||
xmlns:converters="clr-namespace:AndreasReitberger.Shared.Core.Converters;assembly=SharedMauiCoreLibrary" | ||
|
||
xmlns:listView="clr-namespace:Syncfusion.Maui.ListView;assembly=Syncfusion.Maui.ListView" | ||
> | ||
<converters:UriToStringConverter x:Key="UriToStringConverter" /> | ||
|
||
<DataTemplate x:Key="GroupHeaderTemplate"> | ||
<ViewCell> | ||
<StackLayout | ||
Style="{StaticResource StackLayoutHeaderStyle}" | ||
Orientation="Horizontal" | ||
> | ||
<!-- Icon --> | ||
<Label Margin="10,4"> | ||
<Label.Style> | ||
<Style TargetType="Label" BasedOn="{StaticResource IconLabelStyle}"> | ||
<Setter Property="Text" Value="{StaticResource DropDownButtonIcon}"/> | ||
<Style.Triggers> | ||
<DataTrigger TargetType="Label" Binding="{Binding IsExpand}" Value="True"> | ||
<Setter Property="Text" Value="{StaticResource UpArrow}"/> | ||
</DataTrigger> | ||
</Style.Triggers> | ||
</Style> | ||
</Label.Style> | ||
</Label> | ||
|
||
<Label | ||
Text="{Binding Key}" | ||
Style="{StaticResource GroupingHeaderLabelStyle}" | ||
FontAttributes="Bold" | ||
VerticalTextAlignment="Center" | ||
HorizontalTextAlignment="Start" | ||
Margin="0,4" | ||
/> | ||
</StackLayout> | ||
</ViewCell> | ||
</DataTemplate> | ||
</ResourceDictionary> |
9 changes: 9 additions & 0 deletions
9
...ary/SharedMauiXamlStylesLibrary/Themes/ItemTemplates/ListViewGroupHeaderTemplates.xaml.cs
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,9 @@ | ||
namespace AndreasReitberger.Shared.Themes.ItemTemplates; | ||
|
||
public partial class ListViewGroupHeaderTemplates : ResourceDictionary | ||
{ | ||
public ListViewGroupHeaderTemplates() | ||
{ | ||
InitializeComponent(); | ||
} | ||
} |
18 changes: 18 additions & 0 deletions
18
...ylesLibrary/SharedMauiXamlStylesLibrary/Themes/ItemTemplates/ListViewHeaderTemplates.xaml
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,18 @@ | ||
<?xml version="1.0" encoding="UTF-8" ?> | ||
<?xaml-comp compile="true" ?> | ||
<ResourceDictionary | ||
xmlns="http://schemas.microsoft.com/dotnet/2021/maui" | ||
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" | ||
x:Class="AndreasReitberger.Shared.Themes.ItemTemplates.ListViewHeaderTemplates" | ||
|
||
xmlns:eventLogger="clr-namespace:AndreasReitberger.Shared.Core.EventLogger;assembly=SharedMauiCoreLibrary" | ||
xmlns:documentation="clr-namespace:AndreasReitberger.Shared.Core.Documentation;assembly=SharedMauiCoreLibrary" | ||
xmlns:language="clr-namespace:AndreasReitberger.Shared.Core.Localization;assembly=SharedMauiCoreLibrary" | ||
|
||
xmlns:converters="clr-namespace:AndreasReitberger.Shared.Core.Converters;assembly=SharedMauiCoreLibrary" | ||
|
||
xmlns:listView="clr-namespace:Syncfusion.Maui.ListView;assembly=Syncfusion.Maui.ListView" | ||
> | ||
<converters:UriToStringConverter x:Key="UriToStringConverter" /> | ||
|
||
</ResourceDictionary> |
9 changes: 9 additions & 0 deletions
9
...sLibrary/SharedMauiXamlStylesLibrary/Themes/ItemTemplates/ListViewHeaderTemplates.xaml.cs
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,9 @@ | ||
namespace AndreasReitberger.Shared.Themes.ItemTemplates; | ||
|
||
public partial class ListViewHeaderTemplates : ResourceDictionary | ||
{ | ||
public ListViewHeaderTemplates() | ||
{ | ||
InitializeComponent(); | ||
} | ||
} |
Oops, something went wrong.