Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6918487
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T09:51:56+00:00 2026-05-27T09:51:56+00:00

<ListView x:Name=lstProductionOrders> <ListView.View> <GridView> <GridViewColumn Header=Production Order:/> … I’ve set the fontsize on the

  • 0
    <ListView x:Name="lstProductionOrders">
         <ListView.View>
              <GridView>
                   <GridViewColumn Header="Production Order:"/>
                        ...

I’ve set the fontsize on the grid, using textelement, I’ve set it on the listview, the columnheader, through styles, through styles using BasedOn. I even put in a brand new test window that had no other code in it but the default code and a listview created the same way above. Using all of the above, the font changes in design-time but not in run-time.

I’ve only got about 6 months of WPF/XAML experience, so I may be looking for the wrong thing. Is there some kind of global setting for fontsize or anything anyone can think of that would be causing this to be overridden.

For the record, I with the test window, there are no base classes.

———-EDIT———-

This was the source of the problem in App. xaml

<Style TargetType="TextBlock">
        <Setter Property="FontFamily" Value="Times New Roman"/>
        <Setter Property="FontSize" Value="20"/>
</Style>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T09:51:57+00:00Added an answer on May 27, 2026 at 9:51 am

    This sounds a lot like you have an implicit style for GridViewColumn that overwrites changes you made locally.

    At design time, that implicit style is not taken into account (could be for various reasons), but at runtime it is, and you get that strange behavior.

    I would start by looking into App.xaml’s Resources section, then move upwards until I reach the control I care about.

    Addition: implicit styles:

    <UserControl>
       <UserControl.Resources>
          <Style TargetType="TextBlock">
             <Setter Property="FontSize" Value="40" /> <!-- stupid value, just to make it obvious it changed something =) -->
          </Style>
       </UserControl.Resources>
    </UserControl>
    

    If you ever want to define an implicit style locally without overwriting another implicit style set higher up the chain, you can do this:

    <UserControl>
       <UserControl.Resources>
          <Style TargetType="TextBlock" BasedOn="{StaticResource {x:Type TextBlock}}">
             <Setter Property="FontSize" Value="60" /> <!-- ridiculous value, just to make it obvious it changed something =) -->
          </Style>
       </UserControl.Resources>
    </UserControl>
    

    It will inherit the implicit style in place and add changes for the local UserControl.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

My ListView is petty simple: <ListView ItemsSource={Binding Path=ActiveCounters}> <ListView.View> <GridView> <GridViewColumn Header=Name DisplayMemberBinding={Binding Path=Name}
A simple WPF ListView: <ListView Name=recordContainer ItemsSource={Binding Path=MyCollection}> <GridView> <GridViewColumn Width=260 Header=Name DisplayMemberBinding={Binding Path=Name}/>
A ListView with Datatemplate in GridViewColumn: <ListView Name =LogDataList IsSynchronizedWithCurrentItem=True ItemsSource={Binding LogDataCollection} Background=Cyan> <ListView.View>
I have a listview with following column <GridViewColumn Header=name local:GridViewSort.PropertyName=Name> <GridViewColumn.CellTemplate> <DataTemplate> <TextBox Text={Binding
This code generates a Listview with a grid, of multiple name and emails inside
I'm using listview control with the following parameters set: this.listView1.BackColor = System.Drawing.Color.Gainsboro; this.listView1.Columns.AddRange(new System.Windows.Forms.ColumnHeader[]
I m using hashmap for a listview. map = new HashMap<String, Object>(); map.put(name, R.string.information);
I've created list(containing name,mail,number,date) from server using listview extending by listactivity. And, i've also
I want to type in list view column ListView ID Name 001 Rajan 002
Doing the below will reproduce my problem: New WPF Project Add ListView Name the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.