Showing results 1 to 3 of 3

Thread: WPF with code behind (update of changes behavior)

  1. #1

    Default WPF with code behind (update of changes behavior)


    when I change something in code behind project, when I load xaml to wpf object in zenon Supervisor, no changes mades. First version of that xaml loads.

    If I change background at xaml only oproject, than that changes accepts correctly. So I suppose that that project updates correctly.

    If I load that changed version on new project in zenon project tree, than changed version loads correctly. And then repeats.

    How to inform zenon Supervisor, that changes made in code behind project?

    I had made: repick of project reference and clean, rebuild for both projects, deleted used wpf and xaml, dll form project.
    In WPF App, all changes in that 2 projects accepts correctly.

  2. #2

    Default Re: WPF with code behind (update of changes behavior)

    I had deleted wpf cache xaml and dll file, and after that it works correctly. When I reload zenon Supervisor, seems chehe updated. M

    ay zenon Supervisor make it by it owns without reloading editor?

  3. #3
    Join Date

    Default Re: WPF with code behind (update of changes behavior)

    Hi Oleksandr,

    you have to consider 2 things:
    1. You have to restart the zenon runtime/service engine. A relaod will not work.
    2. The .dll in wpf cache folder will be replaced with a newer one at runtime start if it has a higher file version.
      You may have to add a line in your AssemblyInfo.cs file:
      [assembly: AssemblyFileVersion("")]

    Now you are able to set a specific file version for the compiled dll.

    Kind regards,

Similar Threads

  1. Entity Freamwork add-ins integration behavior
    By Oleksandr in forum Add-In Framework
    Replies: 2
    Last Post: 21st January 2022, 11:18
  2. How to change? VBA code -> c# code
    By backjahyun in forum VSTA
    Replies: 1
    Last Post: 22nd March 2016, 07:46
  3. Update von 6.22 SP1 auf 6.5 SP0
    By martin@bmw in forum Engineering Studio & Service Engine (former zenon Editor & Runtime)
    Replies: 4
    Last Post: 2nd June 2010, 13:35
  4. strange behavior
    By flajoso in forum VBA
    Replies: 4
    Last Post: 3rd September 2008, 16:08

Posting Rules

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts