• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

WPF control on NTTabPage

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

    WPF control on NTTabPage

    Hi there,

    I my AddOn I have to add a special WPF control on NTTabPage.
    Unfortunately I cannot set some properties of this WPF control (Padding, Margin and Panel.ZIndex) to desired values - either in XAML or code behind.
    My attempts to change the properties are being ignored completely.
    It seems that these properties are inherited or overwritten somehow by NTTabPage.
    I have tried to set my WPF control's style to null but it's not working. Style="{x:Null}"

    What can I do to suppress the inheritance of styles or ressources?
    Any ideas are wellcome!

    #2
    Hello ruppschtaler,

    In general removing styles is discouraged as these styles also provide functionality for some objects.
    For example ATM Selected has 'hover' controls in the drop down to edit templates. This is a 'style'. Removing the style, also removes the selectors ability to create the drop-down of templates.

    That said, it is possible to do with a loop through the visual tree.
    I recommending searching for: "Set a style dynamically at runtime for WPF controls"
    Below are publicly available links to 3rd party sites to nudge you in the right direction.
    http://stackoverflow.com/questions/7...ble-at-runtime
    http://stackoverflow.com/questions/1...runtime-in-wpf
    Chelsea B.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Abilene, Today, 01:27 AM
    0 responses
    4 views
    0 likes
    Last Post Abilene
    by Abilene
     
    Started by simjs, Yesterday, 08:11 PM
    0 responses
    3 views
    0 likes
    Last Post simjs
    by simjs
     
    Started by mrlucky1x, Yesterday, 06:01 PM
    0 responses
    3 views
    0 likes
    Last Post mrlucky1x  
    Started by dedouglas, Yesterday, 03:17 PM
    1 response
    9 views
    0 likes
    Last Post NinjaTrader_Jesse  
    Started by Jugado, Yesterday, 02:22 PM
    2 responses
    30 views
    0 likes
    Last Post Jugado
    by Jugado
     
    Working...
    X