File tree Expand file tree Collapse file tree 11 files changed +39
-39
lines changed
src/Acr.UserDialogs/Platforms/ios Expand file tree Collapse file tree 11 files changed +39
-39
lines changed Original file line number Diff line number Diff line change 1
1
<?xml version =" 1.0" encoding =" utf-8" ?>
2
2
<ContentPage xmlns =" http://schemas.microsoft.com/dotnet/2021/maui"
3
3
xmlns : x =" http://schemas.microsoft.com/winfx/2009/xaml"
4
- xmlns : local =" clr-namespace=Samples.ViewModels"
4
+ xmlns : local =" clr-namespace:Samples.ViewModels"
5
+ x : DataType =" local:ProgressViewModel"
5
6
x : Class =" Samples.ProgressPage"
6
7
Title =" Progress" >
7
8
<ContentPage .Content>
8
9
<ListView ItemsSource =" {Binding Commands}" >
9
10
<ListView .ItemTemplate>
10
- <DataTemplate >
11
- <TextCell Text =" {Binding Text}" Command =" {Binding Command}" />
11
+ <DataTemplate x : DataType =" local:CommandViewModel" >
12
+ <TextCell Text =" {Binding Text}"
13
+ Command =" {Binding Command}" />
12
14
</DataTemplate >
13
15
</ListView .ItemTemplate>
14
16
</ListView >
Original file line number Diff line number Diff line change 1
1
<?xml version =" 1.0" encoding =" utf-8" ?>
2
2
<ContentPage xmlns =" http://schemas.microsoft.com/dotnet/2021/maui"
3
3
xmlns : x =" http://schemas.microsoft.com/winfx/2009/xaml"
4
- xmlns : local =" clr-namespace=Samples.ViewModels"
4
+ xmlns : local =" clr-namespace:Samples.ViewModels"
5
+ x : DataType =" local:SettingsViewModel"
5
6
x : Class =" Samples.SettingsPage"
6
7
Title =" Settings/Themes" >
7
8
<ContentPage .Content>
8
- <StackLayout >
9
+ <VerticalStackLayout >
9
10
<Button Text =" Load Standard Theme" Command =" {Binding StandardSettings}" />
10
11
<Button Text =" Load Funny Theme" Command =" {Binding LoadAbnormalSettings}" />
11
- </StackLayout >
12
+ </VerticalStackLayout >
12
13
</ContentPage .Content>
13
14
</ContentPage >
Original file line number Diff line number Diff line change 1
1
<?xml version =" 1.0" encoding =" utf-8" ?>
2
2
<ContentPage xmlns =" http://schemas.microsoft.com/dotnet/2021/maui"
3
3
xmlns : x =" http://schemas.microsoft.com/winfx/2009/xaml"
4
- xmlns : local =" clr-namespace=Samples.ViewModels"
4
+ xmlns : local =" clr-namespace:Samples.ViewModels"
5
+ x : DataType =" local:SpecificCasesViewModel"
5
6
x : Class =" Samples.SpecificCasesPage"
6
7
Title =" Specific Cases" >
7
8
<ContentPage .Content>
8
9
<CollectionView ItemsSource =" {Binding Commands}" >
9
10
<CollectionView .ItemTemplate>
10
- <DataTemplate >
11
- <Button Text =" {Binding Text}" Command =" {Binding Command}" />
11
+ <DataTemplate x : DataType =" local:CommandViewModel" >
12
+ <Button Text =" {Binding Text}"
13
+ Command =" {Binding Command}" />
12
14
</DataTemplate >
13
15
</CollectionView .ItemTemplate>
14
16
</CollectionView >
Original file line number Diff line number Diff line change 1
1
<?xml version =" 1.0" encoding =" utf-8" ?>
2
2
<ContentPage xmlns =" http://schemas.microsoft.com/dotnet/2021/maui"
3
3
xmlns : x =" http://schemas.microsoft.com/winfx/2009/xaml"
4
- xmlns : local =" clr-namespace=Samples.ViewModels"
4
+ xmlns : local =" clr-namespace:Samples.ViewModels"
5
+ x : DataType =" local:StandardViewModel"
5
6
x : Class =" Samples.StandardPage"
6
7
Title =" Standard Dialogs" >
7
8
<ContentPage .Content>
8
- <StackLayout >
9
- <StackLayout Orientation = " Horizontal " >
9
+ <VerticalStackLayout >
10
+ <HorizontalStackLayout >
10
11
<Switch IsToggled =" {Binding AutoCancel}" />
11
12
<Label Text =" Cancel After 3 Seconds" />
12
- </StackLayout >
13
+ </HorizontalStackLayout >
14
+
13
15
<ListView ItemsSource =" {Binding Commands}" >
14
16
<ListView .ItemTemplate>
15
- <DataTemplate >
16
- <TextCell Text =" {Binding Text}" Command =" {Binding Command}" />
17
+ <DataTemplate x : DataType =" local:CommandViewModel" >
18
+ <TextCell Text =" {Binding Text}"
19
+ Command =" {Binding Command}" />
17
20
</DataTemplate >
18
21
</ListView .ItemTemplate>
19
22
</ListView >
20
- </StackLayout >
23
+ </VerticalStackLayout >
21
24
</ContentPage .Content>
22
25
</ContentPage >
Original file line number Diff line number Diff line change 1
1
<?xml version =" 1.0" encoding =" utf-8" ?>
2
2
<ContentPage xmlns =" http://schemas.microsoft.com/dotnet/2021/maui"
3
3
xmlns : x =" http://schemas.microsoft.com/winfx/2009/xaml"
4
- xmlns : local =" clr-namespace=Samples.ViewModels"
4
+ xmlns : local =" clr-namespace:Samples.ViewModels"
5
+ x : DataType =" local:ToastsViewModel"
5
6
x : Class =" Samples.ToastsPage"
6
7
Title =" Toasts" >
7
8
<ContentPage .Content>
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 25
25
<SupportedOSPlatformVersion Condition =" $([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'android'" >21.0</SupportedOSPlatformVersion >
26
26
</PropertyGroup >
27
27
28
+ <PropertyGroup Condition =" '$(Configuration)|$(TargetFramework)|$(Platform)'=='Debug|net8.0-ios|AnyCPU'" >
29
+ <CreatePackage >false</CreatePackage >
30
+ </PropertyGroup >
28
31
<ItemGroup >
29
32
<MauiIcon Include =" Resources\AppIcon\appicon.svg" ForegroundFile =" Resources\AppIcon\appiconfg.svg" Color =" #512BD4" />
30
33
31
34
<MauiSplashScreen Include =" Resources\Splash\splash.svg" Color =" #512BD4" BaseSize =" 128,128" />
32
35
33
36
<MauiImage Include =" Resources\Images\*" />
34
37
<MauiFont Include =" Resources\Fonts\*" />
35
- <MauiAsset Include =" Resources\Raw\**" LogicalName =" %(RecursiveDir)%(Filename)%(Extension)" />
36
38
</ItemGroup >
37
39
38
40
<ItemGroup >
39
41
<PackageReference Include =" Microsoft.Maui.Controls" Version =" 8.0.14" />
40
42
<ProjectReference Include =" ..\..\src\Acr.UserDialogs\Acr.UserDialogs.csproj" />
41
43
</ItemGroup >
44
+ <ItemGroup >
45
+ <None Remove =" Resources\Raw\" />
46
+ </ItemGroup >
47
+ <ItemGroup >
48
+ <Folder Include =" Resources\Raw\" />
49
+ </ItemGroup >
42
50
</Project >
Original file line number Diff line number Diff line change 1
- using System ;
2
- using System . Collections . Generic ;
3
- using System . Threading ;
4
- using System . Threading . Tasks ;
5
- using System . Windows . Input ;
1
+ using System . Windows . Input ;
6
2
using Acr . UserDialogs ;
7
3
8
4
Original file line number Diff line number Diff line change 3
3
using UIKit ;
4
4
5
5
6
-
7
6
namespace TTG
8
7
{
9
8
public enum TTGSnackbarAnimationType
You can’t perform that action at this time.
0 commit comments