Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compile all bindings #552

Merged
merged 12 commits into from
Dec 12, 2024
  •  
  •  
  •  
4 changes: 3 additions & 1 deletion 9.0/Animations/Animations/Pages/EasingEditorPage.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,10 @@
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:toolkit="http://schemas.microsoft.com/dotnet/2022/maui/toolkit"
xmlns:controls="clr-namespace:Animations.Controls"
xmlns:local="clr-namespace:Animations"
Title="{Binding Card.CardTitle}"
x:Class="Animations.EasingEditorPage">
x:Class="Animations.EasingEditorPage"
x:DataType="local:EasingEditorPage">
<ContentPage.Resources>
<toolkit:BoolToObjectConverter
x:Key="BoolToPlayPause"
Expand Down
3 changes: 2 additions & 1 deletion 9.0/Animations/Animations/Resources/Styles/Styles.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
xmlns:controls="clr-namespace:Animations.Controls">


<ControlTemplate x:Key="EasingBox">
<ControlTemplate x:Key="EasingBox"
x:DataType="controls:EasingCard">
<Border Stroke="{AppThemeBinding Dark=#000000, Light=#f1f1f1}"
BackgroundColor="{AppThemeBinding Dark=#000000, Light=#f1f1f1}"
Margin="6"
Expand Down
2 changes: 1 addition & 1 deletion 9.0/Apps/BugSweeper/BugSweeper/App.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ public App()
InitializeComponent();
}

protected override Window CreateWindow(IActivationState activationState)
protected override Window CreateWindow(IActivationState? activationState)
{
return new Window(new AppShell());
}
Expand Down
106 changes: 53 additions & 53 deletions 9.0/Apps/BugSweeper/BugSweeper/MainPage.xaml
Original file line number Diff line number Diff line change
@@ -1,97 +1,97 @@
<?xml version="1.0" encoding="utf-8" ?>
<?xml version="1.0" encoding="utf-8" ?>
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:local="clr-namespace:BugSweeper"
x:Class="BugSweeper.MainPage"
Title="Bug Sweeper">
<Grid RowDefinitions="Auto,*">
<VerticalStackLayout>
Title="Bug Sweeper">
<Grid RowDefinitions="Auto,*">
<VerticalStackLayout x:DataType="local:Board">
<Label Text="Tap to flag/unflag a potential bug."
HorizontalTextAlignment="Center" />
HorizontalTextAlignment="Center" />
<Label Text="Double-tap if you're sure it's not a bug."
Margin="0,10,0,0"
VerticalOptions="Center"
HorizontalTextAlignment="Center" />
HorizontalTextAlignment="Center" />
<Label Text="The first double-tap is always safe!"
Margin="0,10,0,0"
VerticalOptions="Center"
HorizontalTextAlignment="Center" />
HorizontalTextAlignment="Center" />
<Label Margin="0,10,0,0"
HorizontalTextAlignment="Center">
<Label.FormattedText>
<FormattedString>
HorizontalTextAlignment="Center">
<Label.FormattedText>
<FormattedString>
<Span Text="{Binding FlaggedTileCount, StringFormat='Flagged {0} '}"
BindingContext="{x:Reference board}" />
BindingContext="{x:Reference board}" />
<Span Text="{Binding BugCount, StringFormat=' out of {0} bugs.'}"
BindingContext="{x:Reference board}" />
</FormattedString>
</Label.FormattedText>
</Label>
BindingContext="{x:Reference board}" />
</FormattedString>
</Label.FormattedText>
</Label>
<Label x:Name="timeLabel"
Text="0:00"
Margin="0,10,0,0"
HorizontalTextAlignment="Center" />
</VerticalStackLayout>

<!-- Single-cell Grid for Board and overlays. -->
HorizontalTextAlignment="Center" />
</VerticalStackLayout>
<!-- Single-cell Grid for Board and overlays. -->
<Grid Grid.Row="1"
SizeChanged="OnBoardGridSizeChanged">
<local:Board x:Name="board" />
SizeChanged="OnBoardGridSizeChanged">
<local:Board x:Name="board" />
<StackLayout x:Name="congratulationsText"
Orientation="Horizontal"
HorizontalOptions="Center">
HorizontalOptions="Center">
<Label Text="C"
TextColor="Red" />
TextColor="Red" />
<Label Text="O"
TextColor="Red" />
TextColor="Red" />
<Label Text="N"
TextColor="Red" />
TextColor="Red" />
<Label Text="G"
TextColor="Red" />
TextColor="Red" />
<Label Text="R"
TextColor="Red" />
TextColor="Red" />
<Label Text="A"
TextColor="Red" />
TextColor="Red" />
<Label Text="T"
TextColor="Red" />
TextColor="Red" />
<Label Text="U"
TextColor="Red" />
TextColor="Red" />
<Label Text="L"
TextColor="Red" />
TextColor="Red" />
<Label Text="A"
TextColor="Red" />
TextColor="Red" />
<Label Text="T"
TextColor="Red" />
TextColor="Red" />
<Label Text="I"
TextColor="Red" />
TextColor="Red" />
<Label Text="O"
TextColor="Red" />
TextColor="Red" />
<Label Text="N"
TextColor="Red" />
TextColor="Red" />
<Label Text="S"
TextColor="Red" />
TextColor="Red" />
<Label Text="!"
TextColor="Red" />
</StackLayout>
TextColor="Red" />
</StackLayout>
<HorizontalStackLayout x:Name="consolationText"
HorizontalOptions="Center">
HorizontalOptions="Center">
<Label Text="T"
TextColor="Red" />
TextColor="Red" />
<Label Text="O"
TextColor="Red" />
TextColor="Red" />
<Label Text="O"
TextColor="Red" />
TextColor="Red" />
<Label Text=" "
TextColor="Red" />
TextColor="Red" />
<Label Text="B"
TextColor="Red" />
TextColor="Red" />
<Label Text="A"
TextColor="Red" />
TextColor="Red" />
<Label Text="D"
TextColor="Red" />
TextColor="Red" />
<Label Text="!"
TextColor="Red" />
</HorizontalStackLayout>
TextColor="Red" />
</HorizontalStackLayout>
<Button x:Name="playAgainButton"
Text=" Play Another Game? "
HorizontalOptions="Center"
Expand All @@ -100,7 +100,7 @@
BorderColor="Black"
BorderWidth="2"
BackgroundColor="White"
TextColor="Black" />
</Grid>
</Grid>
</ContentPage>
TextColor="Black" />
</Grid>
</Grid>
</ContentPage>
Loading
Loading