Click here to Skip to main content
15,868,016 members
Home / Discussions / C#
   

C#

 
AnswerRe: C#.net 2010 textbox Pin
ScottM122-Sep-11 21:23
ScottM122-Sep-11 21:23 
QuestionHow can I show an animated loding icon beside teh dropdown box when postback occurs. Pin
JUNEYT22-Sep-11 2:52
JUNEYT22-Sep-11 2:52 
AnswerRe: How can I show an animated loding icon beside teh dropdown box when postback occurs. Pin
Nagy Vilmos22-Sep-11 3:12
professionalNagy Vilmos22-Sep-11 3:12 
AnswerRe: How can I show an animated loding icon beside teh dropdown box when postback occurs. Pin
Morgs Morgan22-Sep-11 4:21
Morgs Morgan22-Sep-11 4:21 
GeneralRe: How can I show an animated loding icon beside teh dropdown box when postback occurs. Pin
BobJanova26-Sep-11 3:32
BobJanova26-Sep-11 3:32 
GeneralRe: How can I show an animated loding icon beside teh dropdown box when postback occurs. Pin
Morgs Morgan26-Sep-11 3:56
Morgs Morgan26-Sep-11 3:56 
GeneralRe: How can I show an animated loding icon beside teh dropdown box when postback occurs. Pin
BobJanova26-Sep-11 5:54
BobJanova26-Sep-11 5:54 
QuestionWPF MVVM Dispose ViewModel Pin
Flowent5721-Sep-11 22:23
Flowent5721-Sep-11 22:23 
Hi,

I have a treeview with one root node. This node has some children.

The root not is a "TreeViewItemViewModel". This class contains : "ObservableCollection<TreeViewItemViewModel> Items" which are Children nodes.

At beginning, the root node is not expanded and "Children" is empty.

When I expand root node, I load data from DataBase in Children collection :

C#
public override void LoadChildren()
        {
            this.Items.Clear();
            List<Operation> lstOp = DataBAse.GetAllOperations();
            foreach (Operation op in lstOp)
            {
                this.Items.Add(new TreeViewItemViewModel(op));
            }
        }


If I "unexpand" and expand the root node, I reload children...

C#
public bool IsExpanded
        {
            get 
            {
                return _isExpanded; 
            }
            set
            {
                if (value != this._isExpanded)
                {
                    this._isExpanded = value;
                    RaisePropertyChanged("IsExpanded");

                    if (this._isExpanded)
                    {
                        this.LoadChildren();
                    }
                }
            }
        }



My issue : when I call "LoadChildren", Items list is cleared but viewmodel are always in memory...

Can someone help me ?
AnswerRe: WPF MVVM Dispose ViewModel Pin
Pete O'Hanlon22-Sep-11 2:22
subeditorPete O'Hanlon22-Sep-11 2:22 
GeneralRe: WPF MVVM Dispose ViewModel Pin
Daniel.Grondal22-Sep-11 21:13
Daniel.Grondal22-Sep-11 21:13 
GeneralRe: WPF MVVM Dispose ViewModel Pin
Pete O'Hanlon22-Sep-11 21:43
subeditorPete O'Hanlon22-Sep-11 21:43 
AnswerRe: WPF MVVM Dispose ViewModel Pin
BobJanova26-Sep-11 3:38
BobJanova26-Sep-11 3:38 
QuestionREG: C# programs Pin
Member 825718321-Sep-11 17:52
Member 825718321-Sep-11 17:52 
AnswerRe: REG: C# programs Pin
Pravin Patil, Mumbai21-Sep-11 18:46
Pravin Patil, Mumbai21-Sep-11 18:46 
AnswerRe: REG: C# programs Pin
uspatel21-Sep-11 20:06
professionaluspatel21-Sep-11 20:06 
AnswerRe: REG: C# programs Pin
Richard MacCutchan21-Sep-11 21:39
mveRichard MacCutchan21-Sep-11 21:39 
AnswerRe: REG: C# programs Pin
Nagy Vilmos22-Sep-11 0:45
professionalNagy Vilmos22-Sep-11 0:45 
QuestionREG: C# tutorials Pin
Member 825718321-Sep-11 17:52
Member 825718321-Sep-11 17:52 
AnswerRe: REG: C# tutorials Pin
Luc Pattyn21-Sep-11 18:28
sitebuilderLuc Pattyn21-Sep-11 18:28 
GeneralRe: REG: C# tutorials Pin
Mycroft Holmes21-Sep-11 19:37
professionalMycroft Holmes21-Sep-11 19:37 
QuestionCreating an ActiveX control to work in PowerPoint Pin
Wjousts21-Sep-11 10:50
Wjousts21-Sep-11 10:50 
GeneralSettings not saving correctly. Pin
Herboren21-Sep-11 7:56
Herboren21-Sep-11 7:56 
GeneralRe: Settings not saving correctly. Pin
Eddy Vluggen21-Sep-11 9:51
professionalEddy Vluggen21-Sep-11 9:51 
GeneralRe: Settings not saving correctly. Pin
BillWoodruff22-Sep-11 4:18
professionalBillWoodruff22-Sep-11 4:18 
QuestionNamespace problem Pin
CCodeNewbie21-Sep-11 5:45
CCodeNewbie21-Sep-11 5:45 

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.