As lasseespeholt mentions in his (now deleted) answer, there is nothing wrong with the code, and you just need to add a link to System.dllhow this suggests an error message.
?
, , - System.dll ( ISupportInitialize, TextBlock), , , .
- :
let x = new TextBlock()
x.
IntelliSense ( ).