Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

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 DJ888, 04-16-2024, 06:09 PM
    3 responses
    10 views
    0 likes
    Last Post NinjaTrader_Erick  
    Started by RookieTrader, Today, 07:41 AM
    0 responses
    2 views
    0 likes
    Last Post RookieTrader  
    Started by maybeimnotrader, Yesterday, 05:46 PM
    1 response
    18 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by Perr0Grande, Yesterday, 08:16 PM
    1 response
    7 views
    0 likes
    Last Post NinjaTrader_Jesse  
    Started by f.saeidi, Yesterday, 08:12 AM
    3 responses
    26 views
    0 likes
    Last Post NinjaTrader_Jesse  
    Working...
    X