dotnet / dotnet/maui

Easier way to read QueryProperty

Open
#10,133 6 comments 0 reactions 0 assignees View on GitHub
area-controls-shell proposal/open t/enhancement ☀️
Dominant language
C#
Stars
23.3k
Forks
2k
Avg merge
1d 15h
Merged PRs (30d)
290

Description

### Description

Currently, we have to use a class to get and set the QueryProperty.

This can be reduced to one line only by introducing a new **GetQueryProperty** method.

### Public API Changes

```
namespace MyApp;

[QueryProperty("Organization", "MyOrganization")]
public partial class StartVote : ContentPage
{
string organization = GetQueryProperty("MyOrganization");

public StartVote()
{
InitializeComponent();
}
.............
.............
.............
.............
.............
}

```

### Intended Use-Case

Make coding easier.

Contributor guide

Open the contributing guide

Research direction

The issue names QueryProperty and proposes a new GetQueryProperty method, but it does not identify implementation files or tests. Start by locating QueryProperty handling and its navigation/property-application tests; done means the proposed one-line access pattern works without the existing helper class and is covered by tests.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
api, mobile-dev
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.