I changed styles of some controls using Blend and it auto generated some styles. But for some random users this error occurs:
Cannot find a Resource with the Name/Key PivotPreviousButtonBorderBrush [Line: 0 Position: 0]
Key sometimes is ListViewItemBackground
etc.
Why are these default resources missing in some devices? how to prevent it? Thanks.
ListViewItemBackground
was first introduced in Windows 10 Anniversary Update (14393) and if your users are still using 10586, they will encounter the error you listed above.
This is why it's always safer to generate styles targeting SDK 10586. But if you want the new styles, like in this case, you can define them manually in your App.xaml
.
To check all available styles and other resources, have a look at all the generic.xaml files under each versioning folder inside
C:\Program Files (x86)\Windows Kits\10\DesignTime\CommonConfiguration\Neutral\UAP