Click here to Skip to main content
14,865,752 members
Home / Discussions / WPF
   

WPF

 
GeneralRe: Microsoft Documentation Pin
RichardChiles8-Mar-19 13:46
MemberRichardChiles8-Mar-19 13:46 
GeneralRe: Microsoft Documentation Pin
Richard Deeming11-Mar-19 9:03
mveRichard Deeming11-Mar-19 9:03 
QuestionPlot LineSeries with out point Markers. Pin
RichardChiles8-Mar-19 12:39
MemberRichardChiles8-Mar-19 12:39 
I want to plot my line series without data markers and set the color of the line. I am using WPF, but populating my data in the C# code. Below is my WPF

<chart:Chart
                    Name="PerfChart"
                    Grid.Row="1"
                    HorizontalAlignment="Stretch"
                    Margin="0,0,0,0"
                    Title="Chart Title"
                    VerticalAlignment="Stretch"
                    Height="Auto" Width="Auto"
               >
    <chart:Chart.LegendStyle>
        <Style TargetType="dv:Legend">
            <Setter Property="VerticalAlignment" Value="Top"></Setter>
            <Setter Property="HorizontalAlignment" Value="Center"></Setter>
        </Style>
    </chart:Chart.LegendStyle>

</chart:Chart>
I am populating the in c#

public void LoadLineChartData()
{

    Dictionary<Date,double> cbHist =
        Controller.CostBasisHistory(strDate, endDate, finInstFilter, port);
    List < KeyValuePair<DateTime, double> > cbList = new List<KeyValuePair<DateTime, double>>();
    foreach(Date dt in cbHist.Keys)
    {
        cbList.Add(new KeyValuePair<DateTime, double>(dt.ToDateTime(),cbHist[dt]) );
    }


    Style pointStyle = new Style(typeof(Control));


    LineSeries series1 = new LineSeries();

    series1.DependentValuePath = "Value";
    series1.IndependentValuePath = "Key";
    series1.Title = "Cost Basis";
    series1.DataPointStyle = pointStyle;
    series1.ItemsSource = cbList;


    PerfChart.Series.Clear();
    PerfChart.Series.Add(series1);
}

I believe I am suppose to use the Style class to do this but do not know how to use it.
Questiondynamic tabitems with dynamic buttons in each tabitem Pin
siebren beens4-Mar-19 1:47
Membersiebren beens4-Mar-19 1:47 
AnswerRe: dynamic tabitems with dynamic buttons in each tabitem Pin
Super Lloyd6-Mar-19 12:18
MemberSuper Lloyd6-Mar-19 12:18 
QuestionEnum Filtering Pin
Kevin Marois27-Feb-19 12:58
professionalKevin Marois27-Feb-19 12:58 
AnswerRe: Enum Filtering Pin
Richard Deeming28-Feb-19 1:28
mveRichard Deeming28-Feb-19 1:28 
GeneralRe: Enum Filtering Pin
Kevin Marois28-Feb-19 4:13
professionalKevin Marois28-Feb-19 4:13 
QuestionListBox with Hyperlinks Problem Pin
Kevin Marois24-Feb-19 8:41
professionalKevin Marois24-Feb-19 8:41 
AnswerRe: ListBox with Hyperlinks Problem Pin
Gerry Schmitz24-Feb-19 9:21
mveGerry Schmitz24-Feb-19 9:21 
GeneralRe: ListBox with Hyperlinks Problem Pin
Kevin Marois27-Feb-19 4:53
professionalKevin Marois27-Feb-19 4:53 
AnswerRe: ListBox with Hyperlinks Problem Pin
Richard Deeming27-Feb-19 8:00
mveRichard Deeming27-Feb-19 8:00 
QuestionHow to solve erroneous designer intellisense error report Pin
Super Lloyd26-Jan-19 19:29
MemberSuper Lloyd26-Jan-19 19:29 
AnswerRe: How to solve erroneous designer intellisense error report Pin
Gerry Schmitz28-Jan-19 8:24
mveGerry Schmitz28-Jan-19 8:24 
GeneralRe: How to solve erroneous designer intellisense error report Pin
Super Lloyd28-Jan-19 14:42
MemberSuper Lloyd28-Jan-19 14:42 
QuestionHave two controls fill the MainWindow and resize automatically Pin
Mc_Topaz16-Jan-19 4:14
MemberMc_Topaz16-Jan-19 4:14 
AnswerRe: Have two controls fill the MainWindow and resize automatically Pin
Richard Deeming16-Jan-19 8:07
mveRichard Deeming16-Jan-19 8:07 
GeneralRe: Have two controls fill the MainWindow and resize automatically Pin
Mc_Topaz16-Jan-19 19:22
MemberMc_Topaz16-Jan-19 19:22 
QuestionHyperlink Context Menu Pin
Kevin Marois9-Jan-19 15:30
professionalKevin Marois9-Jan-19 15:30 
AnswerRe: Hyperlink Context Menu Pin
Richard Deeming10-Jan-19 0:32
mveRichard Deeming10-Jan-19 0:32 
GeneralRe: Hyperlink Context Menu Pin
Kevin Marois10-Jan-19 4:32
professionalKevin Marois10-Jan-19 4:32 
GeneralRe: Hyperlink Context Menu Pin
Kevin Marois10-Jan-19 5:31
professionalKevin Marois10-Jan-19 5:31 
QuestionTreeView Item Show Button Using Trigger Pin
Kevin Marois1-Jan-19 11:41
professionalKevin Marois1-Jan-19 11:41 
AnswerRe: TreeView Item Show Button Using Trigger Pin
Gerry Schmitz5-Jan-19 7:22
mveGerry Schmitz5-Jan-19 7:22 
GeneralRe: TreeView Item Show Button Using Trigger Pin
Kevin Marois7-Jan-19 7:31
professionalKevin Marois7-Jan-19 7:31 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.