using Microsoft.UI.Xaml; using Microsoft.UI.Xaml.Controls; using Microsoft.UI.Xaml.Media; using Microsoft.UI.Xaml.Shapes; using System; using Uno.Extensions.Markup; using Uno.Toolkit.UI; namespace Uno.Flights.Template.Community; public partial class Uno_Flight : Page { public Uno_Flight() { this .Background(Theme.Brushes.Background.Default) .StatusBar ( s => s .Foreground(StatusBarForegroundTheme.Auto) .Background(Theme.Brushes.Surface.Default) ) .Resources ( r => r .Add("Icon_Explore","F1 M 10 8.899999618530273 C 9.389999985694885 8.899999618530273 8.899999618530273 9.389999985694885 8.899999618530273 10 C 8.899999618530273 10.610000014305115 9.389999985694885 11.100000381469727 10 11.100000381469727 C 10.610000014305115 11.100000381469727 11.100000381469727 10.610000014305115 11.100000381469727 10 C 11.100000381469727 9.389999985694885 10.610000014305115 8.899999618530273 10 8.899999618530273 Z M 10 0 C 4.480000019073486 0 0 4.480000019073486 0 10 C 0 15.519999980926514 4.480000019073486 20 10 20 C 15.519999980926514 20 20 15.519999980926514 20 10 C 20 4.480000019073486 15.519999980926514 0 10 0 Z M 12.1899995803833 12.1899995803833 L 4 16 L 7.810000419616699 7.810000419616699 L 16 4 L 12.1899995803833 12.1899995803833 Z") .Add("Icon_Filter_List_Alt","F1 M 0.25 1.6599998474121094 C 0.3500000014901161 1.7899998426437378 5.989999771118164 8.989999771118164 5.989999771118164 8.989999771118164 L 5.989999771118164 15 C 5.989999771118164 15.550000011920929 6.439999997615814 16 7 16 L 9.010000228881836 16 C 9.560000240802765 16 10.020000457763672 15.550000011920929 10.020000457763672 15 L 10.020000457763672 8.979999542236328 C 10.020000457763672 8.979999542236328 15.510000467300415 1.9599998593330383 15.770000457763672 1.6399998664855957 C 16.03000044822693 1.319999873638153 16 1 16 1 C 16 0.44999998807907104 15.54999977350235 0 14.989999771118164 0 L 1.010000228881836 0 C 0.4000002145767212 0 0 0.48000001907348633 0 1 C 0 1.2000000029802322 0.06000000238418579 1.4399998486042023 0.25 1.6599998474121094 Z") .Add("Icon_Keyboard_Arrow_Down","F1 M 1.4099998474121094 0 L 6 4.579999923706055 L 10.59000015258789 0 L 12 1.4099998474121094 L 6 7.409999847412109 L 0 1.4099998474121094 L 1.4099998474121094 0 Z") .Add("Icon_Library_Books","F1 M 2 4 L 0 4 L 0 18 C 0 19.100000023841858 0.8999999761581421 20 2 20 L 16 20 L 16 18 L 2 18 L 2 4 Z M 18 0 L 6 0 C 4.899999976158142 0 4 0.8999999761581421 4 2 L 4 14 C 4 15.100000023841858 4.899999976158142 16 6 16 L 18 16 C 19.100000023841858 16 20 15.100000023841858 20 14 L 20 2 C 20 0.8999999761581421 19.100000023841858 0 18 0 Z M 17 9 L 7 9 L 7 7 L 17 7 L 17 9 Z M 13 13 L 7 13 L 7 11 L 13 11 L 13 13 Z M 17 5 L 7 5 L 7 3 L 17 3 L 17 5 Z") .Add("Icon_Local_Offer","F1 M 19.40999984741211 9.579999923706055 L 10.40999984741211 0.5799999237060547 C 10.049999833106995 0.21999990940093994 9.550000011920929 0 9 0 L 2 0 C 0.8999999761581421 0 0 0.8999999761581421 0 2 L 0 9 C 0 9.550000011920929 0.21999990940093994 10.050000071525574 0.5899999141693115 10.420000076293945 L 9.59000015258789 19.420000076293945 C 9.950000166893005 19.78000009059906 10.449999988079071 20 11 20 C 11.550000011920929 20 12.049999833106995 19.77999985218048 12.40999984741211 19.40999984741211 L 19.40999984741211 12.40999984741211 C 19.77999985218048 12.049999833106995 20 11.550000011920929 20 11 C 20 10.449999988079071 19.769999861717224 9.93999993801117 19.40999984741211 9.579999923706055 Z M 3.5 5 C 2.6700000166893005 5 2 4.3299999833106995 2 3.5 C 2 2.6700000166893005 2.6700000166893005 2 3.5 2 C 4.3299999833106995 2 5 2.6700000166893005 5 3.5 C 5 4.3299999833106995 4.3299999833106995 5 3.5 5 Z") .Add("Icon_Person","F1 M 8 8 C 10.210000038146973 8 12 6.210000038146973 12 4 C 12 1.7899999618530273 10.210000038146973 0 8 0 C 5.789999961853027 0 4 1.7899999618530273 4 4 C 4 6.210000038146973 5.789999961853027 8 8 8 Z M 8 10 C 5.329999923706055 10 0 11.339999914169312 0 14 L 0 16 L 16 16 L 16 14 C 16 11.339999914169312 10.670000076293945 10 8 10 Z") .Add("Icon_Search","F1 M 12.5 11 L 11.710000038146973 11 L 11.430000305175781 10.729999542236328 C 12.410000324249268 9.589999556541443 13 8.110000014305115 13 6.5 C 13 2.9100000858306885 10.089999914169312 0 6.5 0 C 2.9100000858306885 0 0 2.9100000858306885 0 6.5 C 0 10.089999914169312 2.9100000858306885 13 6.5 13 C 8.110000014305115 13 9.589999556541443 12.410000324249268 10.729999542236328 11.430000305175781 L 11 11.710000038146973 L 11 12.5 L 16 17.489999771118164 L 17.489999771118164 16 L 12.5 11 L 12.5 11 Z M 6.5 11 C 4.009999990463257 11 2 8.990000009536743 2 6.5 C 2 4.009999990463257 4.009999990463257 2 6.5 2 C 8.990000009536743 2 11 4.009999990463257 11 6.5 C 11 8.990000009536743 8.990000009536743 11 6.5 11 Z") ) .Content ( new AutoLayout() .Background(Theme.Brushes.Background.Default) .Children ( new ScrollViewer() .AutoLayout(primaryAlignment: AutoLayoutPrimaryAlignment.Stretch) .Content ( new AutoLayout() .Spacing(8) .Padding(8) .Children ( new TextBox() .PlaceholderText("Search") .CornerRadius(20) .BorderThickness(0) .Style(Theme.TextBox.Styles.Outlined), new AutoLayout() .Spacing(129) .PrimaryAxisAlignment(AutoLayoutAlignment.Center) .Orientation(Orientation.Horizontal) .Children ( new TextBlock() .Text("10 Results") .Foreground(Theme.Brushes.OnBackground.Medium) .Style(Theme.TextBlock.Styles.LabelLarge) .AutoLayout(counterAlignment: AutoLayoutAlignment.Center), new AutoLayout() .Spacing(12) .Orientation(Orientation.Horizontal) .AutoLayout ( counterAlignment: AutoLayoutAlignment.Center, primaryAlignment: AutoLayoutPrimaryAlignment.Stretch ) .Children ( new AutoLayout() .PrimaryAxisAlignment(AutoLayoutAlignment.Center) .Orientation(Orientation.Horizontal) .AutoLayout ( counterAlignment: AutoLayoutAlignment.Start, primaryAlignment: AutoLayoutPrimaryAlignment.Stretch ) .Children ( new Button() .Foreground(Theme.Brushes.OnBackground.Medium) .Style(Theme.Button.Styles.Icon) .AutoLayout(counterAlignment: AutoLayoutAlignment.Center) .Content ( new PathIcon() .Data(StaticResource.Get("Icon_Keyboard_Arrow_Down")) .Foreground(Theme.Brushes.OnBackground.Medium) ), new TextBlock() .Text("Sort") .Foreground(Theme.Brushes.OnBackground.Medium) .Style(Theme.TextBlock.Styles.LabelMedium) .AutoLayout(counterAlignment: AutoLayoutAlignment.Center) ), new AutoLayout() .PrimaryAxisAlignment(AutoLayoutAlignment.Center) .Orientation(Orientation.Horizontal) .AutoLayout ( counterAlignment: AutoLayoutAlignment.Start, primaryAlignment: AutoLayoutPrimaryAlignment.Stretch ) .Children ( new Button() .Foreground(Theme.Brushes.OnBackground.Medium) .Style(Theme.Button.Styles.Icon) .AutoLayout(counterAlignment: AutoLayoutAlignment.Center) .Content ( new PathIcon() .Data(StaticResource.Get("Icon_Filter_List_Alt")) .Foreground(Theme.Brushes.OnBackground.Medium) ), new TextBlock() .Text("Filter") .Foreground(Theme.Brushes.OnBackground.Medium) .Style(Theme.TextBlock.Styles.LabelMedium) .AutoLayout(counterAlignment: AutoLayoutAlignment.Center) ) ) ), new AutoLayout() .Background(Theme.Brushes.Primary.Container.Default) .Spacing(12) .CornerRadius(8) .PrimaryAxisAlignment(AutoLayoutAlignment.Center) .Padding(24,8,16,8) .AutoLayout(counterAlignment: AutoLayoutAlignment.Start) .Children ( new AutoLayout() .Padding(0,8,0,0) .AutoLayout(counterAlignment: AutoLayoutAlignment.Center) .Children ( new AutoLayout() .Spacing(212) .PrimaryAxisAlignment(AutoLayoutAlignment.Center) .Orientation(Orientation.Horizontal) .Children ( new TextBlock() .Text("1:25 PM") .Foreground(Theme.Brushes.Primary.Default) .Style(Theme.TextBlock.Styles.TitleMedium) .AutoLayout(counterAlignment: AutoLayoutAlignment.Center), new TextBlock() .Text("4:30 PM") .Foreground(Theme.Brushes.Primary.Default) .Style(Theme.TextBlock.Styles.TitleMedium) .AutoLayout(counterAlignment: AutoLayoutAlignment.Center), new Rectangle() .RadiusX(1.5) .RadiusY(1.5) .Fill(Theme.Brushes.OnSecondary.Default) .Margin(111,10,0,0) .VerticalAlignment(VerticalAlignment.Top) .HorizontalAlignment(HorizontalAlignment.Left) .Width(100) .Height(3) .AutoLayout(isIndependentLayout: true) ), new AutoLayout() .Spacing(88) .PrimaryAxisAlignment(AutoLayoutAlignment.Center) .Orientation(Orientation.Horizontal) .Padding(0,4,0,0) .Children ( new TextBlock() .Text("YUL") .Foreground(Theme.Brushes.OnBackground.Medium) .Style(Theme.TextBlock.Styles.LabelLarge) .AutoLayout(counterAlignment: AutoLayoutAlignment.Start), new TextBlock() .Text("7H 45M | On Time") .Foreground(Theme.Brushes.OnBackground.Low) .Style(Theme.TextBlock.Styles.LabelMedium) .AutoLayout(counterAlignment: AutoLayoutAlignment.Start), new TextBlock() .Text("LAX") .Foreground(Theme.Brushes.OnBackground.Medium) .Style(Theme.TextBlock.Styles.LabelLarge) .AutoLayout(counterAlignment: AutoLayoutAlignment.Start) ), new Path() .Data("F1 M 0 6 L 1.3499999046325684 6 L 2.6999998092651367 8.5 L 7.649999618530273 8.5 L 5.399999618530273 0 L 7.199999809265137 0 L 11.699999809265137 8.5 L 16.649999618530273 8.5 C 16.649999618530273 8.5 18 8.600000023841858 18 10 C 18 11.399999976158142 16.649999618530273 11.5 16.649999618530273 11.5 L 11.699999809265137 11.5 L 7.199999809265137 20 L 5.309999942779541 20 L 7.559999465942383 11.5 L 2.6999998092651367 11.5 L 1.3499999046325684 14 L 0 14 L 0.809999942779541 10 L 0 6 Z") .Fill(Theme.Brushes.Primary.Default) .Margin(0,9,207,0) .VerticalAlignment(VerticalAlignment.Top) .HorizontalAlignment(HorizontalAlignment.Right) .Width(18) .Height(20) .AutoLayout(isIndependentLayout: true) ), new Divider() .Foreground(Theme.Brushes.OnSecondary.Default) .Style(StaticResource.Get