現象#
カスタムコントロールを作るときにできるGeneric.xaml
このファイル内で日本語のコメントを入れると指定されたエンコードに無効な文字があります
というエラーが出てコンパイルできなくなった。
解決#
xaml
<?xml version="1.0" encoding="Shift_JIS"?> ★これを追加
<ResourceDictionary
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
<!--カスタムTextBox-->
</ResourceDictionary>