Click here to Skip to main content
15,918,330 members
Home / Discussions / WPF
   

WPF

 
QuestionRow Double Click in MVVM Pin
Ashfaque Hussain10-Mar-14 22:24
Ashfaque Hussain10-Mar-14 22:24 
QuestionWPF User Control Question Pin
Kevin Marois10-Mar-14 17:11
professionalKevin Marois10-Mar-14 17:11 
QuestionReagrding the Persistance of an radio buttion selection. Pin
pradeep surya10-Mar-14 7:36
pradeep surya10-Mar-14 7:36 
QuestionDomainServices adn [RequiresRoles()] Pin
picasso29-Mar-14 19:14
picasso29-Mar-14 19:14 
QuestionRe: DomainServices adn [RequiresRoles()] Pin
Richard MacCutchan9-Mar-14 22:35
mveRichard MacCutchan9-Mar-14 22:35 
AnswerRe: DomainServices adn [RequiresRoles()] Pin
picasso210-Mar-14 11:55
picasso210-Mar-14 11:55 
GeneralRe: DomainServices adn [RequiresRoles()] Pin
Richard MacCutchan10-Mar-14 22:16
mveRichard MacCutchan10-Mar-14 22:16 
QuestionHelp on drawing a line WPF Pin
abollmeyer9-Mar-14 2:46
abollmeyer9-Mar-14 2:46 
Ok, so I have this code:

C#
<pre>foreach (var item in getOriginalLoan)
            {
                if (index < getOriginalLoan.Count)
                {
                    x1 = (getOriginalLoan[index - 1].paymentNumber * 670 / 360) + 70;
                    y1 = 700 - (getOriginalLoan[index - 1].endingBalance * 600 / getOriginalLoan[0].endingBalance);
                    x2 = (getOriginalLoan[index - 1].paymentNumber * 670 / 360) + 70;
                    y2 = 700 - (getOriginalLoan[index - 1].endingBalance * 600 / getOriginalLoan[0].endingBalance);

                    if (y2 <= 600)
                    {
                        graphCanvas.Children.Add(new Line
                        {
                            X1 = x1 + 1,
                            Y1 = y1 + 0,
                            X2 = x2 + 0,
                            Y2 = y2 + 0,
                            Stroke = Brushes.Red
                        });
                    }

                    index++;
                }

            }


Twice in my code. One draws a blue line (which works, exact same code but different collection), and this one draws a yellow line. However, as per my code, it WILL draw the line (although a dotted line, which as actually kind of a cool effect for what I'm going for), but only when I add the +1 to x1.

I have verified all my data is being read. Why is this happening? Thanks.
Questiondisplay same result in different units: U.S. v.s. Metric Pin
Member 97807175-Mar-14 10:43
Member 97807175-Mar-14 10:43 
AnswerRe: display same result in different units: U.S. v.s. Metric Pin
Pete O'Hanlon5-Mar-14 10:51
mvePete O'Hanlon5-Mar-14 10:51 
GeneralRe: display same result in different units: U.S. v.s. Metric Pin
Member 97807175-Mar-14 13:05
Member 97807175-Mar-14 13:05 
GeneralRe: display same result in different units: U.S. v.s. Metric Pin
SledgeHammer015-Mar-14 13:47
SledgeHammer015-Mar-14 13:47 
QuestionWPF Detect Property Change In Entity In VM Pin
Kevin Marois4-Mar-14 7:46
professionalKevin Marois4-Mar-14 7:46 
AnswerRe: WPF Detect Property Change In Entity In VM Pin
Pete O'Hanlon4-Mar-14 8:16
mvePete O'Hanlon4-Mar-14 8:16 
GeneralRe: WPF Detect Property Change In Entity In VM Pin
Kevin Marois11-Mar-14 6:15
professionalKevin Marois11-Mar-14 6:15 
GeneralRe: WPF Detect Property Change In Entity In VM Pin
Pete O'Hanlon11-Mar-14 6:20
mvePete O'Hanlon11-Mar-14 6:20 
AnswerRe: WPF Detect Property Change In Entity In VM Pin
Matt T Heffron4-Mar-14 8:37
professionalMatt T Heffron4-Mar-14 8:37 
GeneralRe: WPF Detect Property Change In Entity In VM Pin
Kevin Marois11-Mar-14 5:50
professionalKevin Marois11-Mar-14 5:50 
GeneralRe: WPF Detect Property Change In Entity In VM Pin
Matt T Heffron11-Mar-14 7:51
professionalMatt T Heffron11-Mar-14 7:51 
GeneralRe: WPF Detect Property Change In Entity In VM Pin
Matt T Heffron11-Mar-14 7:53
professionalMatt T Heffron11-Mar-14 7:53 
GeneralRe: WPF Detect Property Change In Entity In VM Pin
Kevin Marois11-Mar-14 8:00
professionalKevin Marois11-Mar-14 8:00 
SuggestionRe: WPF Detect Property Change In Entity In VM Pin
Matt T Heffron11-Mar-14 8:13
professionalMatt T Heffron11-Mar-14 8:13 
GeneralRe: WPF Detect Property Change In Entity In VM Pin
Kevin Marois11-Mar-14 8:18
professionalKevin Marois11-Mar-14 8:18 
AnswerRe: WPF Detect Property Change In Entity In VM Pin
pradeep surya5-Mar-14 7:31
pradeep surya5-Mar-14 7:31 
QuestionWPF Bind Window Activated Event To Command Pin
Kevin Marois3-Mar-14 10:40
professionalKevin Marois3-Mar-14 10:40 

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.