1

I have developed a UWP app, and recently observed a problem where the UI/Graphics disappear randomly.

enter image description here

enter image description here

This is what it looks like instead:

enter image description here

My client who is running the software also observes this problem.

I have tried to turn off transparency in Windows setting and updating my video card graphic driver, but no luck.

My computer is Windows 10 1803, GTX1070. My client's computer is also Windows 10 1803, integrated GPU.

This is one of the views that have this problem occurring frequently - I create the ViewModel inside OnNavigatedTo and set the DataContext to it.

I notice if I create the ViewModel inside the 'Loaded' event, some buttons will disappear.

The view uses a combination of {Binding} and {x:Bind}.

        protected override void OnNavigatedTo(NavigationEventArgs e)
        {
            base.OnNavigatedTo(e);
            ParseParameter(e.Parameter as BasePageParams);
            ViewModel = GetViewModel(e);
            OnViewModelCreated();
            ViewModel.Enabled();
            DataContext = ViewModel;
            _isViewModelEnabled = true;
        }

Any help appreciated!

Nam Duong
  • 96
  • 1
  • 3
  • It seems we are lack of info to understand what happened. If driver is the reason then I can see that the system buttons has been rendered. The loaded event means the UI is already rendered, so if some buttons are missing, can you debug and check your datasource to see details, do you have the data for those missing buttons in code behind? It's better if you can provide a [MVCE](https://stackoverflow.com/help/mcve) – Barry Wang May 13 '19 at 06:47
  • We've had the same issue on UWP, although we build via Xamarin. Icons randomly dissapear. When the icons also serve as buttons, it's a real problem... – wesmantooth Aug 30 '19 at 13:16

0 Answers0