• 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 kujista, Today, 12:59 AM
    0 responses
    1 view
    0 likes
    Last Post kujista
    by kujista
     
    Started by Gerik, Today, 12:14 AM
    0 responses
    3 views
    0 likes
    Last Post Gerik
    by Gerik
     
    Started by Bionian, Yesterday, 11:47 PM
    0 responses
    2 views
    0 likes
    Last Post Bionian
    by Bionian
     
    Started by adambrul, Yesterday, 11:34 PM
    0 responses
    2 views
    0 likes
    Last Post adambrul  
    Started by benjamind10, Yesterday, 07:27 PM
    0 responses
    6 views
    0 likes
    Last Post benjamind10  
    Working...
    X