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

Add code in class c# #2721

Closed
ronaldosys opened this issue Jan 10, 2025 · 1 comment · Fixed by #2728
Closed

Add code in class c# #2721

ronaldosys opened this issue Jan 10, 2025 · 1 comment · Fixed by #2728
Assignees
Labels
doc-enhancement Improve the current content [org] dotnet-maui/subsvc dotnet-mobile/svc Pri1 High priority, do before Pri2 and Pri3 📌 seQUESTered Identifies that an issue has been imported into Quest.

Comments

@ronaldosys
Copy link

ronaldosys commented Jan 10, 2025

Type of issue

Typo

Description

public partial class CardView : ContentView
{
public static readonly BindableProperty CardTitleProperty = BindableProperty.Create(nameof(CardTitle), typeof(string), typeof(CardView), string.Empty);

public string CardTitle
{
    get => (string)GetValue(CardView.CardTitleProperty);
    set => SetValue(CardView.CardTitleProperty, value);
}
// ...

public CardView()
{
    InitializeComponent();

    BindingContext = this;
}

}

Page URL

https://learn.microsoft.com/pt-br/dotnet/maui/user-interface/controls/contentview?view=net-maui-9.0

Content source URL

https://github.com/dotnet/docs-maui/blob/main/docs/user-interface/controls/contentview.md

Document Version Independent Id

fe0e2ced-1369-0fb5-bac9-d6678dfd913c

Article author

@davidbritch

Metadata

  • ID: fe0e2ced-1369-0fb5-bac9-d6678dfd913c
  • Service: dotnet-mobile
  • Sub-service: dotnet-maui

Related Issues


Associated WorkItem - 361501

@issues-automation issues-automation bot added dotnet-maui/subsvc dotnet-mobile/svc Pri1 High priority, do before Pri2 and Pri3 labels Jan 10, 2025
@dotnetrepoman dotnetrepoman bot added the ⌚ Not Triaged Not triaged label Jan 10, 2025
@davidbritch davidbritch self-assigned this Jan 12, 2025
@davidbritch davidbritch added doc-enhancement Improve the current content [org] 🗺️ reQUEST Triggers an issue to be imported into Quest. labels Jan 12, 2025
@dotnetrepoman dotnetrepoman bot removed ⌚ Not Triaged Not triaged labels Jan 12, 2025
@sequestor sequestor bot added 📌 seQUESTered Identifies that an issue has been imported into Quest. and removed 🗺️ reQUEST Triggers an issue to be imported into Quest. labels Jan 13, 2025
@davidbritch davidbritch moved this from Todo to In Progress in dotnet/docs-maui 2025 Sprints Jan 13, 2025
@davidbritch
Copy link
Contributor

Hi @ronaldosys

In this example the binding context is set in the XAML file, so doesn't need setting in code-behind. However, I get that this isn't clear at all so I'll upload all the sample code to dotnet/maui-samples and then link to the sample from the doc.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
doc-enhancement Improve the current content [org] dotnet-maui/subsvc dotnet-mobile/svc Pri1 High priority, do before Pri2 and Pri3 📌 seQUESTered Identifies that an issue has been imported into Quest.
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

2 participants