首页 / C# / c# – 使用StaticResource作为MarkupExtension的参数会导致WPF中出现NullReferenceException