Referencing an observablecollection from the class
<p>I have a class called <code>NewsEntry</code> and news entry is part of an observable collection called <code>NewsItems</code>.</p>

<p>What I want to do is create two functions inside <code>NewsEntry</code> called <code>following</code> and <code>previous</code>.</p>

<p>in pseudo-c# it needs to do this.</p>

<pre><code>public class NewsEntry {
    public int id { get; set; }
    public String description { get; set; }

    public NewsEntry following () {
       // get the ObservableCollection containing this
       // find the index of this in the collection
       // return the next item
    }

    public previous ...
}

public ObservableCollection&lt;NewsEntry&gt; NewsItems { get; set; }
</code></pre>

<p>can I do this from the Entry class or should I really do this from the outside class and pass a <code>NewsEntry</code> as a parameter (which I think results in ugly code)</p>
