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

Windows: TMSpinner crash at start up - Beta 0.1.2 #281

Open
JRosanowski opened this issue Oct 27, 2023 · 1 comment
Open

Windows: TMSpinner crash at start up - Beta 0.1.2 #281

JRosanowski opened this issue Oct 27, 2023 · 1 comment
Assignees

Comments

@JRosanowski
Copy link

JRosanowski commented Oct 27, 2023

I'm getting an "Unable to find main thread." InvalidOperationException. This is occurring because I have a TMButton on my MainPage. The TMButton creates a TMSpinner in it's constructor and the TMSpinner creates a 10 millisecond timer in it's constructor that ends up calling MainThread.BeginInvokeOnMainThread too early in the App lifecycle.

I can reproduce this in the DemoApp by changing the MainPage.xaml layout to this.

<Grid>
  <modus:TMListView ItemTapped="ItemTapped" ItemsSource="{Binding ControlNames}">
    <modus:TMListView.ItemTemplate>
      <DataTemplate>
        <modus:TextCell Title="{Binding}" />
      </DataTemplate>
    </modus:TMListView.ItemTemplate>
  </modus:TMListView>
  <modus:TMButton/>
</Grid>
@ElishaSamPeterPrabhu
Copy link
Collaborator

Issue is reproducible, Working on this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

No branches or pull requests

2 participants