CodeBehind gone?

Has the ability to provide a CodeBehind compile at runtime source file been removed from WPF altogether

used to be a CodeBehind element in http://schemas.microsoft.com/winfx/xaml/2005

None of the samples that use it work anymore.




Answer this question

CodeBehind gone?

  • smiledotnet

    So, there's no ability to provide source code that is compiled at runtime

     



  • Toghian

    I do not believe there ever has been the ability to provide source code that is compiled at runtime. The x:Code element that allows you to put a block of code in your XAML file takes that block and inserts it into the .g.cs file corresponding to the XAML file as part of the compilation process, not during runtime. The x:CodeBehind attribute pointed to the corresponding code-behind file which helped tooling, but didn't actually mean anything in the compilation process.


  • Laurence1215

    Does anyone from Microsoft, WPF team monitor and can respond

  • Blue9000

    If you are talking about x:CodeBehind attribute, then it has been removed a long time ago.  You do not need it to specify the code behind.
  • CodeBehind gone?