Skip to content

x:Bind to fields doesn't work #934

Closed

Description

@davidjohnoliver

I'm submitting a...

Feature request

Current behavior

Can't bind to fields with x:Bind.

Expected behavior

Can.

Minimal reproduction of the problem with instructions

XAML:

<TextBlock Text="{x:Bind PrivateField}"/>
<TextBlock Text="{x:Bind PublicField}"/>

Code-behind:

		public string PublicField = "Enemy";
		private string PrivateField = "Ryan";

Environment

Nuget Package:

Package Version(s):

Affected platform(s):

  • iOS
  • Android
  • WebAssembly
  • Windows
  • Build tasks

Visual Studio

  • 2017 (version: )
  • 2019 (version: )
  • for Mac (version: )

Relevant plugins

  • Resharper (version: )

Activity

  1. added
    platform/android 🤖
    platform/ios 🍎
    platform/wasm 🌐
    kind/enhancement
    on May 27, 2019
  2. added a commit that references this issue on Mar 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

kind/enhancementplatform/android 🤖platform/ios 🍎platform/wasm 🌐

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions