写程序时一直报题中所示的错误,提示定义的某个静态资源(staticResource)无法找到。百思不得其解,百度了一下才意识到时资源定义顺序的问题。
App.xaml定义如下:
<Application x:Class="WpfApp2.App" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:local="clr-namespace:WpfApp2" StartupUri="FrmMain.xaml"