-
-
Notifications
You must be signed in to change notification settings - Fork 122
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
macOS: TableView group name does not update #321
Comments
Thanks for reporting. |
Took a look. We were indeed missing the update of the title. I've added this code in the update of TableView.Items System.Console.WriteLine (sprintf "Try setting Title. Current '%s', New '%s'" target.Title newTitle)
target.Title <- newTitle
System.Console.WriteLine (sprintf "Value setted. Expected '%s', Got '%s'" newTitle target.Title) It prints
The title on the UI stays the same, even though the Xamarin.Forms control has been updated... |
The issue is also present on iOS and Android. |
Ok, it's not an XF issue. <StackLayout>
<TableView Intent="Form">
<TableRoot>
<TableSection x:Name="Section" Title="0">
<TextCell x:Name="Cell" Text="0" />
</TableSection>
</TableRoot>
</TableView>
<Button x:Name="Increment" Text="Increment" />
<Button x:Name="Decrement" Text="Decrement" />
</StackLayout> public partial class MainPage : ContentPage
{
public int _count = 0;
public MainPage()
{
InitializeComponent();
Increment.Clicked += Increment_Clicked;
Decrement.Clicked += Decrement_Clicked;
}
private void Decrement_Clicked(object sender, EventArgs e)
{
_count--;
Section.Title = _count.ToString();
Cell.Text = _count.ToString();
}
private void Increment_Clicked(object sender, EventArgs e)
{
_count++;
Section.Title = _count.ToString();
Cell.Text = _count.ToString();
}
} |
Sooo... It's a Xamarin.Forms bug finally. :) Fabulous reuses So I will change the way Fabulous works and raise an issue on the Xamarin.Forms repo. |
For those interested, here's the 2 issues I've raised on Xamarin.Forms: |
Thank you @TimLariviere |
I slightly modified view of template application
when I click buttons, content of
View.TextCell
updates correctly, but group name does notIf it is by design, then it is confusing.
Repro is here - https://github.com/sergey-tihon/Fabulous.BugRepros/tree/master/TableViewUpdate
The text was updated successfully, but these errors were encountered: