-
Notifications
You must be signed in to change notification settings - Fork 113
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #844 from unoplatform/dev/erli/828-CardView
chore: Update CardView to Uno.Sdk 5.4
- Loading branch information
Showing
13 changed files
with
133 additions
and
159 deletions.
There are no files selected for viewing
2 changes: 0 additions & 2 deletions
2
UI/CardViewMigration/CardViewMigration/CardViewMigration/App.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 |
---|---|---|
@@ -1,5 +1,3 @@ | ||
using System; | ||
using Microsoft.Extensions.Logging; | ||
using Uno.Resizetizer; | ||
|
||
namespace CardViewMigration; | ||
|
6 changes: 1 addition & 5 deletions
6
UI/CardViewMigration/CardViewMigration/CardViewMigration/CardViewCodePage.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
21 changes: 10 additions & 11 deletions
21
UI/CardViewMigration/CardViewMigration/CardViewMigration/CardViewCodePage.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 |
---|---|---|
@@ -1,12 +1,11 @@ | ||
<Page | ||
x:Class="CardViewMigration.CardViewCodePage" | ||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | ||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | ||
xmlns:local="using:CardViewMigration" | ||
xmlns:utu="using:Uno.Toolkit.UI" | ||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" | ||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" | ||
mc:Ignorable="d" | ||
Background="{ThemeResource ApplicationPageBackgroundThemeBrush}" | ||
utu:SafeArea.Insets="Top"> | ||
<Page x:Class="CardViewMigration.CardViewCodePage" | ||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | ||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | ||
xmlns:local="using:CardViewMigration" | ||
xmlns:utu="using:Uno.Toolkit.UI" | ||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" | ||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" | ||
mc:Ignorable="d" | ||
Background="{ThemeResource ApplicationPageBackgroundThemeBrush}" | ||
utu:SafeArea.Insets="Top"> | ||
</Page> |
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
12 changes: 0 additions & 12 deletions
12
UI/CardViewMigration/CardViewMigration/CardViewMigration/CardViewXamlPage.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
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
8 changes: 0 additions & 8 deletions
8
UI/CardViewMigration/CardViewMigration/CardViewMigration/ControlTemplatePage.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
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
38 changes: 20 additions & 18 deletions
38
UI/CardViewMigration/CardViewMigration/CardViewMigration/MainPage.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 |
---|---|---|
@@ -1,27 +1,29 @@ | ||
<Page | ||
x:Class="CardViewMigration.MainPage" | ||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | ||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | ||
xmlns:local="using:CardViewMigration" | ||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" | ||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" | ||
mc:Ignorable="d" | ||
Background="{ThemeResource ApplicationPageBackgroundThemeBrush}"> | ||
<Page x:Class="CardViewMigration.MainPage" | ||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | ||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | ||
xmlns:local="using:CardViewMigration" | ||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" | ||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" | ||
mc:Ignorable="d" | ||
Background="{ThemeResource ApplicationPageBackgroundThemeBrush}"> | ||
|
||
<Grid HorizontalAlignment="Center" MinWidth="200"> | ||
<Grid.RowDefinitions> | ||
<RowDefinition Height="*"/> | ||
<RowDefinition Height="*"/> | ||
<RowDefinition Height="*"/> | ||
</Grid.RowDefinitions> | ||
<Button Grid.Row="0" Content="CardView XAML
Create CardView items with XAML." | ||
Command="{Binding NavigateCommand}" | ||
CommandParameter="CardViewMigration.CardViewXamlPage" /> | ||
<Button Grid.Row="1" Content="CardView Code
Create CardView items with code." | ||
Command="{Binding NavigateCommand}" | ||
CommandParameter="CardViewMigration.CardViewCodePage" /> | ||
<Button Grid.Row="2" Content="CardView ControlTemplate
Use a ControlTemplate to change control appearance." | ||
Command="{Binding NavigateCommand}" | ||
CommandParameter="CardViewMigration.ControlTemplatePage" /> | ||
<Button Grid.Row="0" | ||
Content="CardView XAML
Create CardView items with XAML." | ||
Command="{Binding NavigateCommand}" | ||
CommandParameter="CardViewMigration.CardViewXamlPage" /> | ||
<Button Grid.Row="1" | ||
Content="CardView Code
Create CardView items with code." | ||
Command="{Binding NavigateCommand}" | ||
CommandParameter="CardViewMigration.CardViewCodePage" /> | ||
<Button Grid.Row="2" | ||
Content="CardView ControlTemplate
Use a ControlTemplate to change control appearance." | ||
Command="{Binding NavigateCommand}" | ||
CommandParameter="CardViewMigration.ControlTemplatePage" /> | ||
</Grid> | ||
</Page> |
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
Oops, something went wrong.