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 7414847
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T07:10:55+00:00 2026-05-29T07:10:55+00:00

I am pretty new to WPF. I am working on a WPF based charting

  • 0

I am pretty new to WPF. I am working on a WPF based charting application. The application has roughly 20 charts. Each of the charts contains this exact same XAML in their respective XAML file:

<vf:Chart DockPanel.Dock="Top" ScrollingEnabled="False" ZoomingEnabled="True" ToolBarEnabled="True" IndicatorEnabled="{Binding Source={x:Reference DisplayIndicator}, Path=IsChecked}">

Is it possible for me to create some sort of template for this, and reference the template in each XAML file, so that if I add on to this, or change one of the properties, it’s automatically reflected in all the charts?

  • 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-29T07:10:55+00:00Added an answer on May 29, 2026 at 7:10 am

    You should use Style not Templates for that:

    <Resources>
        <Style TargetType="vf:Chart" x:Key="chartStyle">
            <Setter Property="ScrollingEnabled" Value="False" />
            <!-- the rest of setters here -->
        </Style>
    </Resources>
    
    ...
    
    <vf:Chart Style="{StaticResource chartStyle}" />
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a problem in wpf xaml and i'm pretty new on this so
I'm kinda new at both programming, and WPF. I know that this is pretty
I'm pretty new to WPF, so please understand if this question is too simple.
(I'm pretty new to WPF, so this question may seem obvious or inconsistent.) There
I'm new to WPF so this is probably a pretty easy problem. I open
I'm pretty new to WPF however i've got a solid understanding of WindowsForms. When
I'm pretty new to WPF and using the MVVM design pattern. To help learn
I'm pretty new to the idea of recursion and this is actually my first
sorry, I am pretty new in WPF and I think it's pretty easy, but
I am pretty new to WPF and I cannot figure out how to update

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.