adospace / reactorui-maui

MauiReactor is a MVU UI framework built on top of .NET MAUI
MIT License
588 stars 49 forks source link

Unable to set ToolTipProperties on button control #197

Closed cris-m closed 8 months ago

cris-m commented 8 months ago

I was trying to set a ToolTipPropertieson button using Set (use to set a specific dependency property of the native control).

 new Button("text")
      .Set(MauiControls.ToolTipProperties.TextProperty, "Test"),
adospace commented 8 months ago

seems working for me on windows app image

are you on a Mac? have you tested with a normal MAUI app?

cris-m commented 8 months ago

I have test it in normal MAUI app and it work perfectly.

adospace commented 8 months ago

may I ask the the version of MauiReactor and the system you're testing? windows or Mac?

cris-m commented 8 months ago

I am testing on Mac and the MauiReactor version is 2.0.7-beta

adospace commented 8 months ago

Working on Mac using the latest MauiReactor version: Screenshot 2024-01-18 at 14 47 17

  <ItemGroup>
    <PackageReference Include="Reactor.Maui" Version="2.0.19" />
    <PackageReference Include="Reactor.Maui.Canvas" Version="2.0.19" />
  </ItemGroup>
cris-m commented 8 months ago

updating Reactor.Maui and Reactor.Maui.Canvas throw an error when using inline component on Component.Render: example:

 public VisualNode OutlinedTextField(string label, string supportText)
  => Component.Render(context =>
  {
  }

I get the following error: error CS0411: The type arguments for method 'Component.Render<S>(Func<ComponentContextState<S>, VisualNode>, S?)' cannot be inferred from the usage. Try specifying the type arguments explicitly.

adospace commented 8 months ago

Yes you have to specify the type of the state, for example Render < double > (...) or Render<(double param1, int param2)>(...)

https://adospace.gitbook.io/mauireactor/whats-new-in-version-2

cris-m commented 8 months ago

I got an other issue which is unrelated. The simulator cannot start the app.

Microsoft.iOS: Socket error while connecting to IDE on 127.0.0.1:10000: Connection refused

I will close this issue because I was unable to test.