Skip to content

How do I integrate User Control? #1562

Answered by beto-rodriguez
Bodden007 asked this question in Q&A
Discussion options

You must be logged in to vote

Hello, the full code is in this repository:

https://github.com/beto-rodriguez/LiveCharts2/tree/master/samples

In your case you need the WPF sample.

In the WPF sample you can find the main window, the important part is that the <ContentControl></ContentControl> tag is where the user control is displayed in the app.

But that should be irrelevant, you should be able to place the chart directly inside your window without any UserControl instance, a UserControl is not required to render a chart, just ignore that UserControl, it should work the same if you place the chart inside your MainWindow class.

If you want to learn more, you could clone this repo, and focus only in the WPF sample, try to…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@Bodden007
Comment options

Answer selected by Bodden007
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #1560 on August 07, 2024 15:11.