Click here to Skip to main content
15,892,768 members
Home / Discussions / WPF
   

WPF

 
AnswerRe: Using MVVM approach to open different views on button clicking Pin
Abhinav S23-Jun-10 18:21
Abhinav S23-Jun-10 18:21 
GeneralRe: Using MVVM approach to open different views on button clicking Pin
tarun2323-Jun-10 21:43
tarun2323-Jun-10 21:43 
GeneralRe: Using MVVM approach to open different views on button clicking Pin
Pete O'Hanlon23-Jun-10 22:02
mvePete O'Hanlon23-Jun-10 22:02 
GeneralRe: Using MVVM approach to open different views on button clicking Pin
tarun2324-Jun-10 0:17
tarun2324-Jun-10 0:17 
GeneralRe: Using MVVM approach to open different views on button clicking Pin
Pete O'Hanlon24-Jun-10 2:43
mvePete O'Hanlon24-Jun-10 2:43 
QuestionDoes Anyone Feel Like an Adventure? [modified] Pin
#realJSOP22-Jun-10 2:20
mve#realJSOP22-Jun-10 2:20 
AnswerRe: Does Anyone Feel Like an Adventure? Pin
Abhinav S23-Jun-10 2:40
Abhinav S23-Jun-10 2:40 
GeneralRe: Does Anyone Feel Like an Adventure? [modified] Pin
#realJSOP23-Jun-10 3:14
mve#realJSOP23-Jun-10 3:14 
It's a null reference exception. The DataPoint is null. I don't know why.

I have to admit that I've kind of given up on that particular approach (I feel so.... French), and am about to embark on an alternative, but I still have questions about why stuff that I think *should* work but doesn't appear to.

I wanted to create a new type of line series that

a) Accepts just one data value for the Y axis

b) Extends the line from the left axis line all the way to the opposite edge of the chart

In the Toolkit solution, I started out by copying the LineSeries.CS and LineSeries.XAML files to LineTrendSeries.CS and LineTrendSeries.XAML respectively, and renamed all of the internal LineSeries references to LineTrendSeries. With these minor changes, you would think that instantiating the series on a chart would result in a standard LineSeries appearance (because I haven't actually changed anything in the class with respect to what it displays), but nothing except the associated legend item shows up on the chart area. I have no idea why, and requests for help in the "official Silverlight forum" go unanswered for days at a time.

EDIT ========================

The LineTrendSeries object has a Points collection in it that is null. For some reason, the UpdateShapeFromPoints method isn't being called. By all rights, it SHOULD be called because at this point, the object is IDENTICAL to a LineSeries object in terms of content. It's almost like the chart doesn't recognize that the series exists in its series collection.

EDIT ========================

I found that if I put a regular LineSeries object on the same chart AFTER the LineTrendSeries object, the LineSeries.UpdateShapeFromPoints method is called *twice*.

EDIT ========================

On the off chance it had something to do with the LineDataPoint object, I created a version of that class for my trend line series, and it didn't change anything.
.45 ACP - because shooting twice is just silly
-----
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997
-----
"The staggering layers of obscenity in your statement make it a work of art on so many levels." - J. Jystad, 2001
modified on Wednesday, June 23, 2010 10:50 AM

GeneralRe: Does Anyone Feel Like an Adventure? Pin
Abhinav S23-Jun-10 5:13
Abhinav S23-Jun-10 5:13 
GeneralRe: Does Anyone Feel Like an Adventure? [modified] Pin
#realJSOP23-Jun-10 5:31
mve#realJSOP23-Jun-10 5:31 
GeneralRe: Does Anyone Feel Like an Adventure? Pin
Abhinav S23-Jun-10 18:23
Abhinav S23-Jun-10 18:23 
GeneralRe: Does Anyone Feel Like an Adventure? Pin
#realJSOP24-Jun-10 0:00
mve#realJSOP24-Jun-10 0:00 
GeneralRe: Does Anyone Feel Like an Adventure? Pin
#realJSOP24-Jun-10 2:47
mve#realJSOP24-Jun-10 2:47 
GeneralRe: Does Anyone Feel Like an Adventure? Pin
Abhinav S24-Jun-10 4:16
Abhinav S24-Jun-10 4:16 
GeneralRe: Does Anyone Feel Like an Adventure? Pin
#realJSOP24-Jun-10 6:36
mve#realJSOP24-Jun-10 6:36 
GeneralRe: Does Anyone Feel Like an Adventure? Pin
#realJSOP25-Jun-10 9:22
mve#realJSOP25-Jun-10 9:22 
GeneralRe: Does Anyone Feel Like an Adventure? Pin
Abhinav S25-Jun-10 17:20
Abhinav S25-Jun-10 17:20 
QuestionHow to : textbox got focus, label is be bigger Pin
milica121-Jun-10 23:35
milica121-Jun-10 23:35 
AnswerRe: How to : textbox got focus, label is be bigger Pin
Michael Eber22-Jun-10 6:06
Michael Eber22-Jun-10 6:06 
GeneralRe: How to : textbox got focus, label is be bigger Pin
milica122-Jun-10 21:04
milica122-Jun-10 21:04 
GeneralRe: How to : textbox got focus, label is be bigger Pin
Venkatesh Mookkan22-Jun-10 23:06
Venkatesh Mookkan22-Jun-10 23:06 
GeneralRe: How to : textbox got focus, label is be bigger Pin
Pete O'Hanlon23-Jun-10 1:29
mvePete O'Hanlon23-Jun-10 1:29 
Questionsilverlight, wcf and nhibernate Pin
ctlqt1221-Jun-10 21:43
ctlqt1221-Jun-10 21:43 
QuestionWPF: Drawing a line with animation Pin
Prasoon Chaudhary21-Jun-10 20:21
Prasoon Chaudhary21-Jun-10 20:21 
QuestionWCF Chart: how to have fixed axis labels with mutliple LineSeries objects Pin
Michael Eber21-Jun-10 13:25
Michael Eber21-Jun-10 13:25 

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.