0

フォルダー ブラウザー ダイアログからファイルを選択できますが、選択したファイルをツリーリスト コントロールに表示する必要があります (注: WPF と devexpress コントロールを使用しています)。どうすればこれを達成できますか?画像を確認してください:ここに画像の説明を入力

*******************コード**********************

 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);
        }
    }
4

0 に答える 0