Search
Setup for Free
C
C#
•
4y ago
Tiger
✅ bind prop or field to Entry in MAUI
Hey how do I directly bind a prop or field to an Entry or Label in MAUI
? The docs aren
’t clear
C#
Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,155
Members
View on Discord
Similar Threads
Was this page helpful?
Yes
No
© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Similar Threads
MAUI Entry Point - MauiProgram.cs [Answered]
C
C# / help
4y ago
❔ Unable to bind to list in picker, MAUI
C
C# / help
3y ago
How to Bind ViewModels Correctly in Prism for .NET MAUI TabbedPage Navigation?
C
C# / help
7mo ago
3
333fred
•
12/4/22, 8:28 AM
https://learn.microsoft.com/en-us/dotnet/maui/fundamentals/data-binding/basic-bindings?view=net-maui-7.0
Basic bindings - .NET MAUI
.NET MAUI data binding links a pair of properties between two objects
, at least one of which is usually a user
-interface object
. These two objects are called the target and the source
.
3
333fred
•
12/4/22, 8:28 AM
The docs go over that in detail
3
333fred
https://learn.microsoft.com/en-us/dotnet/maui/fundamentals/data-binding/basic-bi...
T
Tiger
OP
•
12/4/22, 2:16 PM
I can
't find an example of where it binds to a field
, only binds to another component
/control value
T
Tiger
OP
•
12/4/22, 2:16 PM
maybe I
'm blind
T
Tiger
maybe I'm blind
C
chilldog
•
12/4/22, 4:38 PM
If you read through the article it is talking about a few different solutions to your question I think
. I would go through and try out the demo
.
T
Tiger
I can't find an example of where it binds to a field, only binds to another comp...
3
333fred
•
12/4/22, 4:48 PM
Your problem is that you are thinking there
's a difference
3
333fred
•
12/4/22, 4:48 PM
There isn
't
3
333fred
Your problem is that you are thinking there's a difference
T
Tiger
OP
•
12/4/22, 4:49 PM
so if you know how to can you share a snippet of an control having it
's value bound to a field
?
3
333fred
•
12/4/22, 4:50 PM
It
's literally exactly the same as any other binding
3
333fred
•
12/4/22, 4:50 PM
But no
, I
'm on my phone right now
3
333fred
•
12/4/22, 4:50 PM
You set the binding context
, and bind to the field you want
T
Tiger
OP
•
12/4/22, 4:53 PM
so how do I have
this
this
as a binding context
? it
's not shown
@Orannis
3
333fred
•
12/4/22, 4:56 PM
That
's the default
3
333fred
•
12/4/22, 4:57 PM
The reason why the very first example works is because that
's the default
3
333fred
•
12/4/22, 4:57 PM
If you ever need to explicitly say this
, you use
.
.
as the path
3
333fred
If you ever need to explicitly say this, you use `.` as the path
T
Tiger
OP
•
12/5/22, 9:14 AM
oh thanks a lot
A
Accord
APP
•
12/6/22, 1:48 AM
Closed
!
this
this