For any types outside of the basic framework itself which is included under the default xml namespace (xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
) you need to specify an xml namespace. For your own custom types in code this is usually done using an xmlns
with clr-namespace
. So if your Window
classes are declared in a C# namespace "WPF
" then that line should look like:
<local:ValidOKWindow x:Class="WPF.WindowToInheritValidOK" xmlns:local="clr-namespace:WPF"