unoplatform / uno

Open-source platform for building cross-platform native Mobile, Web, Desktop and Embedded apps quickly. Create rich, C#/XAML, single-codebase apps from any IDE. Hot Reload included! 90m+ NuGet Downloads!!
https://platform.uno
Apache License 2.0
9.06k stars 735 forks source link

Update include-mainpage-xaml.md to updated xaml code #18945

Closed 0xharkirat closed 4 hours ago

0xharkirat commented 1 day ago

This code is changed to the code generated using the template. Unless it is causing a build error on the old code.

GitHub Issue (If applicable): closes #

PR Type

What kind of change does this PR introduce?

CLAassistant commented 1 day ago

CLA assistant check
All committers have signed the CLA.

unodevops commented 1 day ago

⚠️⚠️ The build 148755 has failed on Uno.UI - docs.

morning4coffe-dev commented 13 hours ago

Thank you for your contribution, @0xharkirat! Can you please reword (https://docs.github.com/en/pull-requests/committing-changes-to-your-project/creating-and-editing-commits/changing-a-commit-message) your commit to follow the Conventional commits standard? https://www.conventionalcommits.org/en/v1.0.0/ Thank you 😇

eriklimakc commented 10 hours ago

Hi @0xharkirat, I just created a new Uno app following the instructions in the Counter tutorial, and everything seems to be working correctly on my end. Could you double-check to ensure you used the blank preset rather than the recommended one?

For reference the MainPage xaml from a newly created app with the latest template, using the blank preset.

<Page x:Class="Counter.MainPage"
      xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
      xmlns:local="using:Counter"
      Background="{ThemeResource ApplicationPageBackgroundThemeBrush}">
  <ScrollViewer>
    <Grid>
      <StackPanel
        HorizontalAlignment="Center"
        VerticalAlignment="Center">
        <TextBlock AutomationProperties.AutomationId="HelloTextBlock"
          Text="Hello Uno Platform!"
          HorizontalAlignment="Center" />
      </StackPanel>
    </Grid>
  </ScrollViewer>
</Page>
0xharkirat commented 5 hours ago

Oh, I was creating the app from the recommended preset (not the blank one). I think then this request is unnecessary. I can close this one.

agneszitte commented 4 hours ago

Oh, I was creating the app from the recommended preset (not the blank one). I think then this request is unnecessary. I can close this one.

Hi @0xharkirat, thank you for the confirmation. Yes, the Counter tutorial documentation mentions using the blank preset. I am closing this pull request