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

[Android][MVUX] Binding to IFeed Property Requires Accessing Value for AppBarButton #2603

Open
2 of 15 tasks
eriklimakc opened this issue Nov 6, 2024 · 0 comments
Open
2 of 15 tasks
Labels
kind/bug Something isn't working triage/untriaged Indicates an issue requires triaging or verification.

Comments

@eriklimakc
Copy link
Contributor

Current behavior

Android only. It works fine on other platforms.

When trying to bind a property from an IFeed to a AppBarButton, for example, its Visibility, it is necessary to use the Value property to access the IFeed properties. For exmaple:

public SecondModel(Entity Entity)
{
    var user = new User("John", true);

    Profile = State.Value(this, () => user);
}
public IFeed<User> Profile { get; }
    <utu:NavigationBar.PrimaryCommands>
        <AppBarButton Visibility="{Binding Profile.Value.IsCurrent}">
            <AppBarButton.Icon>
                <PathIcon Data="..." />
            </AppBarButton.Icon>
        </AppBarButton>
    </utu:NavigationBar.PrimaryCommands>

Expected behavior

No need to use .Value.

How to reproduce it (as minimally and precisely as possible)

Repro1323.zip

Environment

Nuget Package (s):

    <UnoToolkitVersion>6.4.0-dev.51</UnoToolkitVersion>
    <UnoExtensionsVersion>5.1.2</UnoExtensionsVersion>

Affected platform(s):

  • iOS
  • macOS (AppKit)
  • Mac Catalyst
  • Android
  • WebAssembly
  • Windows
  • Skia (WPF)
  • Skia (GTK on Linux/macOS/Windows)
  • Skia (Linux Framebuffer)
  • Build tasks

IDE:

  • 2019 (version: )
  • 2022 (version: )
  • Visual Studio Code (version: )
  • Rider Windows (version: )
  • Rider macOS (version: )
@eriklimakc eriklimakc added kind/bug Something isn't working triage/untriaged Indicates an issue requires triaging or verification. labels Nov 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Something isn't working triage/untriaged Indicates an issue requires triaging or verification.
Projects
None yet
Development

No branches or pull requests

1 participant