0

I'm able to select files through through folder browser dialog but I need to show the selected file in treelist control (Note: I'm using WPF and devexpress controls). How can I achieve this? Please check the image: enter image description here

*******************Code**********************

 private void loadFilePst ()
    {
        try
        {
            Microsoft.Win32.OpenFileDialog dlg = new Microsoft.Win32.OpenFileDialog();
            dlg.DefaultExt = ".pst";
            dlg.Filter = "PST Files(*.pst)|*.pst";
            Nullable<bool> output = dlg.ShowDialog();
            if (dlg.ShowDialog() != true)
                return;
            using (Stream stream = dlg.OpenFile())
            { 

            }
            //if(output == true)
            //{
            //  stgPath = dlg.FileName;
            //  string fileName = dlg.FileName;
            //  treePstSelect.Visibility = Visibility.Visible;
            //}
            //System.Windows.MessageBox.Show("Hola");
        }
        catch(Exception ae)
        {
            System.Windows.MessageBox.Show(ae.Message);
        }
    }
Delimitry
  • 2,987
  • 4
  • 30
  • 39
abc
  • 75
  • 11
  • You can populate TreeList nodes in code behind as demonstrated here: https://documentation.devexpress.com/#WPF/CustomDocument9936 – Uranus Jun 02 '14 at 09:51
  • @Uranus Thanks for the link . I'll work on this link and i wish desired results will be achieved. – abc Jun 03 '14 at 04:39

0 Answers0