Skip to content

Commit

Permalink
View samples (dotnet#227)
Browse files Browse the repository at this point in the history
* More samples.

* Readme's and sample updates.
  • Loading branch information
davidbritch authored Jun 30, 2022
1 parent 977c096 commit aa3ccd2
Show file tree
Hide file tree
Showing 576 changed files with 21,150 additions and 19 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,15 @@
HorizontalOptions="Center" />

<Button Text="Click Me!"
FontSize="Large"
FontSize="20"
BorderWidth="1"
HorizontalOptions="Center"
VerticalOptions="CenterAndExpand"
Clicked="OnButtonClicked" />

<Label x:Name="label"
Text="0 button clicks"
FontSize="Large"
FontSize="20"
HorizontalOptions="Center"
VerticalOptions="CenterAndExpand" />
</StackLayout>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
<StackLayout>
<Label Text="{Binding Name}"
FontAttributes="Bold"
FontSize="Large"
FontSize="20"
HorizontalOptions="Center"
VerticalOptions="Center" />
<Image Source="{Binding ImageUrl}"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
VerticalOptions="CenterAndExpand" />

<Label Text="CheckBox is now False"
FontSize="Large"
FontSize="20"
HorizontalOptions="Center"
VerticalOptions="CenterAndExpand">
<Label.Triggers>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,18 @@
HorizontalOptions="Center" />

<Label Text="ContentPage is the simplest type of page."
FontSize="Large" />
FontSize="20" />

<Label Text=
"The content of a ContentPage is generally a
layout of some sort that can then be a parent
to multiple children."
FontSize="Large" />
FontSize="20" />

<Label Text=
"This ContentPage contains a StackLayout, which
in turn contains four Label views (including the
large one at the top)."
FontSize="Large" />
FontSize="20" />
</StackLayout>
</ContentPage>
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
HeightRequest="30"
WidthRequest="30" />
<Label Text="Red"
FontSize="Large" />
FontSize="20" />
</HorizontalStackLayout>
</VerticalStackLayout>
</ContentPage>
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

<Label x:Name="label"
Text="0 ImageButton clicks"
FontSize="Large"
FontSize="20"
HorizontalOptions="Center"
VerticalOptions="Center" />
</StackLayout>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<StackLayout>
<Label Text="{Binding Name}"
FontAttributes="Bold"
FontSize="Large"
FontSize="20"
HorizontalOptions="Center"
VerticalOptions="Center" />
<Image Source="{Binding ImageUrl}"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ backed UI toolkit abstraction that allows
developers to easily create user interfaces
that can be shared across Android, iOS, macOS,and
Windows."
FontSize="Large"
FontSize="20"
VerticalOptions="CenterAndExpand"
Margin="10, 0" />
</StackLayout>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,25 +17,25 @@
<StackLayout HorizontalOptions="Center">

<Button Text=" Go to Label Demo Page "
FontSize="Large"
FontSize="20"
BorderWidth="1"
StyleId="LabelDemoPage"
Clicked="OnButtonClicked" />

<Button Text=" Go to Image Demo Page "
FontSize="Large"
FontSize="20"
BorderWidth="1"
StyleId="ImageDemoPage"
Clicked="OnButtonClicked" />

<Button Text=" Go to BoxView Demo Page "
FontSize="Large"
FontSize="20"
BorderWidth="1"
StyleId="BoxViewDemoPage"
Clicked="OnButtonClicked" />

<Button Text=" Go to WebView Demo Page "
FontSize="Large"
FontSize="20"
BorderWidth="1"
StyleId="WebViewDemoPage"
Clicked="OnButtonClicked" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ only at runtime, you should probably put it in
a ScrollView just to be sure your stuff doesn't
go running off the bottom of the screen."

FontSize="Large" />
FontSize="20" />
</ScrollView>
</StackLayout>
</ContentPage>
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<Label Text="{Binding Source={x:Reference slider},
Path=Value,
StringFormat='Slider value is {0:F1}'}"
FontSize="Large"
FontSize="20"
HorizontalOptions="Center"
VerticalOptions="CenterAndExpand" />
</StackLayout>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<Label Text="{Binding Source={x:Reference stepper},
Path=Value,
StringFormat='Stepper value is {0:F1}'}"
FontSize="Large"
FontSize="20"
HorizontalOptions="Center"
VerticalOptions="CenterAndExpand" />
</StackLayout>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
VerticalOptions="CenterAndExpand" />

<Label Text="Switch is now False"
FontSize="Large"
FontSize="20"
HorizontalOptions="Center"
VerticalOptions="CenterAndExpand">
<Label.Triggers>
Expand Down
27 changes: 27 additions & 0 deletions 6.0/UserInterface/Views/CarouselViewDemos/CarouselViewDemos.sln
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 17
VisualStudioVersion = 17.0.31611.283
MinimumVisualStudioVersion = 10.0.40219.1
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "CarouselViewDemos", "CarouselViewDemos\CarouselViewDemos.csproj", "{D24D6565-62CE-4AE5-B065-D99DFDE649D4}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{D24D6565-62CE-4AE5-B065-D99DFDE649D4}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{D24D6565-62CE-4AE5-B065-D99DFDE649D4}.Debug|Any CPU.Build.0 = Debug|Any CPU
{D24D6565-62CE-4AE5-B065-D99DFDE649D4}.Debug|Any CPU.Deploy.0 = Debug|Any CPU
{D24D6565-62CE-4AE5-B065-D99DFDE649D4}.Release|Any CPU.ActiveCfg = Release|Any CPU
{D24D6565-62CE-4AE5-B065-D99DFDE649D4}.Release|Any CPU.Build.0 = Release|Any CPU
{D24D6565-62CE-4AE5-B065-D99DFDE649D4}.Release|Any CPU.Deploy.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {61F7FB11-1E47-470C-91E2-47F8143E1572}
EndGlobalSection
EndGlobal
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<?xml version = "1.0" encoding = "UTF-8" ?>
<Application xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:local="clr-namespace:CarouselViewDemos"
x:Class="CarouselViewDemos.App">
<Application.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="Resources/Styles/Colors.xaml" />
<ResourceDictionary Source="Resources/Styles/Styles.xaml" />
</ResourceDictionary.MergedDictionaries>

<Style TargetType="StackLayout">
<Setter Property="Spacing" Value="6" />
</Style>
<Style TargetType="Grid">
<Setter Property="RowSpacing" Value="6" />
<Setter Property="ColumnSpacing" Value="6" />
</Style>

</ResourceDictionary>
</Application.Resources>
</Application>
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
namespace CarouselViewDemos;

public partial class App : Application
{
public App()
{
InitializeComponent();

MainPage = new AppShell();
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?xml version="1.0" encoding="UTF-8" ?>
<Shell
x:Class="CarouselViewDemos.AppShell"
xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:local="clr-namespace:CarouselViewDemos"
Shell.FlyoutBehavior="Disabled">

<ShellContent
Title="Home"
ContentTemplate="{DataTemplate local:MainPage}"
Route="MainPage" />

</Shell>
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
namespace CarouselViewDemos;

public partial class AppShell : Shell
{
public AppShell()
{
InitializeComponent();
}
}
Loading

0 comments on commit aa3ccd2

Please sign in to comment.