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.
    I've got style resources in WPF working so that in my App.xaml I can define whether the customer or administrator layout is used. This works nicely by getting all the style out of the main XAML in ...

    I am trying to allow the user to customize the elements in a WPF application. What I am trying to achieve is, if I have a list box which specifies all the form elements (TextBox, label etc.) user can
    Chelsea B.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Mindset, 04-21-2026, 06:46 AM
    0 responses
    94 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by M4ndoo, 04-20-2026, 05:21 PM
    0 responses
    140 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by M4ndoo, 04-19-2026, 05:54 PM
    0 responses
    68 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by cmoran13, 04-16-2026, 01:02 PM
    0 responses
    125 views
    0 likes
    Last Post cmoran13  
    Started by PaulMohn, 04-10-2026, 11:11 AM
    0 responses
    74 views
    0 likes
    Last Post PaulMohn  
    Working...
    X