Showing results 1 to 9 of 9

Thread: XAML property

  1. #1
    Join Date
    03.03.2019
    Posts
    17

    Default XAML property

    Hi guys,

    I created own XAML control image (see attached file Screenshot#1). Now I would like to change its frame color via some variable. The problem is that I don`t see any such properties in WPF links configuration (see attached file Screenshot#2). How to fix this problem? Did I miss something in XAML or should I add some C# code behind? Please help me to solve this problem. 

    Best regards,

    Primoz
    Attached Thumbnails Attached Thumbnails Screenshot#2.PNG   Screenshot#1.PNG  

  2. #2
    Join Date
    28.02.2013
    Posts
    164

    Default Re: XAML property

    Dear Primoz,

    what are you trying to achieve?
    Why don't you use a simple zenon symbol for that?

    Regards,
    Felix

  3. #3
    Join Date
    03.03.2019
    Posts
    17

    Default Re: XAML property

    Hi Felix,

    Thanks for a quick reply. My symbol library is quite limited. I haven`t found anything with the similar look to icons. I would like to design a unique, nice looking GUI for our customer. The idea is that in case of alarms or night vision look the color of the symbols is changed, nothing else.

    Br,

    Primoz



  4. #4
    Join Date
    28.02.2013
    Posts
    164

    Default Re: XAML property

    Hello Primoz,

    you can create your own symbols within zenon and add them to your library. One approach is to simply draw your bell by the use of zenon elements (line, circle, ...), then select all of them and rightclick. In that context menu you are then able to create a symbol and afterwards (again by rightclicking and context menu) add this symbol to your library.

    You can also contact your sales representative to check for a zenon training. There also online courses for free for our partners.

    Regards,
    Felix

  5. #5
    Join Date
    03.03.2019
    Posts
    17

    Default Re: XAML property

    Hi Felix,

    Yes, I know it`s possible in this way, but I wanted to find a faster solution, i.e. download icon graphics in eps format, convert it into xaml via Microsoft Expression Design and export it into Zenon. Designing all the graphics in Zenon supposed to be a rather time-consuming task don`t you think so?

    Regards,

    Primoz

  6. #6
    Join Date
    28.02.2013
    Posts
    164

    Default Re: XAML property

    Hi Primoz,

    in my eyes it depends on what functionality you want to use in your graphics.
    zenon mostly offers more than one way to reach a goal and what way is the best depends on the specific needs of a project and also the preferences of the project engineer.
    If you also consider project maintainability or scalability investing more time in the engineering might pay of during the lifetime of your solution.

    Creating dynamic WPF controls will need you to include code behind, work with dependency properties etc. which is described in detail in our manual in the section WPF-Element.

    If you just want to include vector graphics, I suggest to take a look on the native SVG-Element.

    Still, depending on amount and complexity of your symbols, creating them natively could still be an option here.

    Best regards,
    Felix

  7. #7
    Join Date
    03.03.2019
    Posts
    17

    Default Re: XAML property

    Hi Felix,

    Yes, the purpose is to add some custom designed vector graphics. Native SVG-Elements? I guess that you mean available graphics in Zenon workspace (e.g. circle, rectangle, line etc)?

    Regards,

    Primoz

  8. #8
    Join Date
    28.02.2013
    Posts
    164

    Default Re: XAML property

    Hi Primoz,

    from zenon Version 8.10 on there is a native SVG-Element. Just like the WPF-Element or other screen elements.

    Regards,
    Felix

  9. #9
    Join Date
    21.11.2019
    Posts
    1

    Default Re: XAML property

    Quote Originally Posted by felixst View Post
    Hi Primoz, google street view

    from zenon Version 8.10 on there is a native SVG-Element. Just like the WPF-Element or other screen elements.

    Regards,
    Felix
    Thanks for the thorough explanations, I appreciate it.




Similar Threads

  1. Replies: 3
    Last Post: 26th February 2019, 16:34
  2. WPF : XAML + Code-behind C#
    By loanvar in forum VSTA
    Replies: 1
    Last Post: 16th February 2015, 13:18
  3. XAML lässt sich nicht einbinden
    By schirgitom in forum VSTA
    Replies: 3
    Last Post: 28th April 2014, 09:52
  4. Changing Iamge BackgroundImage property
    By davide.galigani in forum VBA
    Replies: 1
    Last Post: 1st June 2010, 01:13
  5. Parameters in Property window greyed out?
    By dak2483 in forum zenon Supervisor
    Replies: 1
    Last Post: 25th September 2008, 14:24

Posting Rules

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