Skip to content

Commit 8f8654e

Browse files
committed
Port Text page over
1 parent 255f1a0 commit 8f8654e

File tree

9 files changed

+580
-32
lines changed

9 files changed

+580
-32
lines changed

CSharpMath.Maui.Example/App.xaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,11 @@
1111
</ResourceDictionary.MergedDictionaries>
1212
<Style TargetType="math:MathView">
1313
<Setter Property="TextColor" Value="{AppThemeBinding Light={StaticResource Black}, Dark={StaticResource Primary}}" />
14+
<Setter Property="FontSize" Value="36" />
1415
</Style>
1516
<Style TargetType="math:TextView">
1617
<Setter Property="TextColor" Value="{AppThemeBinding Light={StaticResource Black}, Dark={StaticResource Primary}}" />
18+
<Setter Property="FontSize" Value="36" />
1719
</Style>
1820
</ResourceDictionary>
1921
</Application.Resources>

CSharpMath.Maui.Example/AppShell.xaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@
1818
Title="Editor"
1919
ContentTemplate="{DataTemplate local:EditorPage}"
2020
Route="EditorPage" />
21+
<ShellContent
22+
Title="Text"
23+
ContentTemplate="{DataTemplate local:TextPage}"
24+
Route="TextPage" />
2125
<ShellContent
2226
Title="Clock"
2327
ContentTemplate="{DataTemplate local:ClockPage}"

CSharpMath.Maui.Example/CSharpMath.Maui.Example.csproj

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,12 +71,18 @@
7171
</ItemGroup>
7272

7373
<ItemGroup>
74+
<Compile Update="TextPage.xaml.cs">
75+
<DependentUpon>TextPage.xaml</DependentUpon>
76+
</Compile>
7477
<Compile Update="ExamplesPage.xaml.cs">
7578
<DependentUpon>ExamplesPage.xaml</DependentUpon>
7679
</Compile>
7780
</ItemGroup>
7881

7982
<ItemGroup>
83+
<MauiXaml Update="TextPage.xaml">
84+
<Generator>MSBuild:Compile</Generator>
85+
</MauiXaml>
8086
<MauiXaml Update="ExamplesPage.xaml">
8187
<Generator>MSBuild:Compile</Generator>
8288
</MauiXaml>

CSharpMath.Maui.Example/ExamplesPage.xaml

Lines changed: 3 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -5,19 +5,8 @@
55
xmlns:local="clr-namespace:CSharpMath.Maui.Example"
66
x:Class="CSharpMath.Maui.Example.ExamplesPage"
77
Title="Examples">
8-
<Grid>
9-
<Grid.RowDefinitions>
10-
<RowDefinition Height="Auto"/>
11-
<RowDefinition Height="Auto"/>
12-
<RowDefinition Height="*"/>
13-
</Grid.RowDefinitions>
14-
<HorizontalStackLayout>
15-
<Picker x:Name="Picker" HorizontalOptions="Start"/>
16-
<Picker x:Name="Size" HorizontalOptions="Start"/>
17-
<Button Text="Reset pan" Clicked="Button_Clicked" HorizontalOptions="End"/>
18-
</HorizontalStackLayout>
19-
<Label x:Name="Label" Grid.Row="1"/>
20-
<math:MathView x:Name="View" Grid.Row="2" FontSize="36" EnablePanning="True"/>
21-
</Grid>
8+
<ScrollView>
9+
<StackLayout x:Name="Stack"/>
10+
</ScrollView>
2211

2312
</ContentPage>

0 commit comments

Comments
 (0)