Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

InstrumentSelector Control Not Respecting FontSize

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

    InstrumentSelector Control Not Respecting FontSize

    The InstrumentSelector control appears to ignore setting of FontSize. No matter what font size I set, the control always has the same size text. This applies when trying to set the property in XAML or code behind.

    I presume the control should respect FontSize setting? If so, can anyone confirm this is a bug ... or am I missing something obvious?

    Thanks.
    Multi-Dimensional Managed Trading
    jeronymite
    NinjaTrader Ecosystem Vendor - Mizpah Software

    #2
    Hello jeronymite,

    Thank you for the post.

    How are you trying to set the font size on the control? This may be a situation where you need to set the nested text controls font size rather than the instrument selector directly. This could also relate to the controls default style being applied, replacing your modification. You could try setting the style to null to check that. I am otherwise not aware of a specific example of changing the font for this control which I could link to, if you have a sample you want to upload of what you are trying we can try to work with that to resolve the question.

    I look forward to being of further assistance.

    Comment


      #3
      Thanks, Jesse.

      The code is part of an Addon and is very simple, of the following in nature in code behind ...
      Code:
      private InstrumentSelector instSelector = new InstrumentSelector();
      instSelector.FontSize = 42;
      ... or in XAML ...
      Code:
      <tools:InstrumentSelector x:Name="instSelector" Grid.Row="0" Grid.Column="1" FontSize="42"/>
      I have tried both approaches without success. The font remains stubbornly the same, small size. Here is a screenshot of the control in situ with a TextBlock above it.

      Click image for larger version

Name:	InstrumentSelector Example.png
Views:	484
Size:	12.6 KB
ID:	1100432

      Hope this is enough to pursue the issue, but let me know if there's anything else I can add/do.

      Thanks, as always, for your very kind assistance!
      Attached Files
      Multi-Dimensional Managed Trading
      jeronymite
      NinjaTrader Ecosystem Vendor - Mizpah Software

      Comment


        #4
        Interestingly, I've just noticed that IntervalSelector also does not honour FontSize.

        Grateful for further advice on both these.

        Thanks.
        Multi-Dimensional Managed Trading
        jeronymite
        NinjaTrader Ecosystem Vendor - Mizpah Software

        Comment


          #5
          Hello jeronymite,

          Thank you for the reply.

          I tried changing the font here however I was unable to see a change. This is likely being applied from the controls this uses to build the menu and their styles. I tried setting the overall instrument selectors style to null however there was no change to the menu item being shown.

          Are you trying to increase just your addons font size or have this applied across the platform? This may be something that could be controlled in the skin however this may also affect other controls as the instrument selector is made up of a collection of WPF controls.


          I look forward to being of further assistance.


          Comment


            #6
            Thanks, Jesse. Always grateful for your assistance and insights.

            I'm adding these two selector types to an Addon. I simply attempt to change FontSize and find it does not change, as you also have seen.

            As supported controls for Addons, it would be appropriate for them to honour changes to the standard control properties. I hope this can be rectified and the controls made capable of honouring changes to standard control properties.

            Thanks.
            Multi-Dimensional Managed Trading
            jeronymite
            NinjaTrader Ecosystem Vendor - Mizpah Software

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by Geovanny Suaza, 02-11-2026, 06:32 PM
            0 responses
            606 views
            0 likes
            Last Post Geovanny Suaza  
            Started by Geovanny Suaza, 02-11-2026, 05:51 PM
            0 responses
            353 views
            1 like
            Last Post Geovanny Suaza  
            Started by Mindset, 02-09-2026, 11:44 AM
            0 responses
            105 views
            0 likes
            Last Post Mindset
            by Mindset
             
            Started by Geovanny Suaza, 02-02-2026, 12:30 PM
            0 responses
            560 views
            1 like
            Last Post Geovanny Suaza  
            Started by RFrosty, 01-28-2026, 06:49 PM
            0 responses
            561 views
            1 like
            Last Post RFrosty
            by RFrosty
             
            Working...
            X