Code has no issues apart from unresolved import for System.windows . I am not sure if this will have problems with compilation or if it is just intellisense. I have tried sw