I have a camera function that is giving me a hard time.
When the user selects the option to add a photo to the record in the app, the code launches a popup, to ask options for the image, but the thread continues on since the
PopupView is non
There are only two ways I can think to handle this,
CarouselViewor just signal to refresh display by rerunning the
Repository<T>().GetItems()call. The main problem with this I can see, is that since the callback would be called from a different thread, I wouldn't necessarily have access to the instance of the database object on the display. (I could try some
ExecuteOnMainThreadtype thing, but I don't know how well that would work.
DoWhilethread that refreshes the database objects on the screen, blocked on a
GlobalClass.Semaphoreand then signal that same
Global.Semaphorefrom the camera function.
I don't know, perhaps that is the best method to use for this? I always figured C# is just a easier to use more automated C++. I just don't know enough about standards of C# threading vs C/C++. In some ways I miss the old
Main thread loop, other times, I am glad to not have to deal with it....
Any advice greatly appreciated!