Я хочу просмотреть информацию о файле из папки в datagrid.
MainWindow.xaml:
<TabItem Header="Happy" Width="60" Height="30">
<Grid Margin="0,0,0,0">
<DataGrid x:Name="MusicTabHappy" AutoGenerateColumns="False" Margin="10">
<DataGrid.Columns>
<DataGridTextColumn Header="File Name"/>
<DataGridTextColumn Header="Time"/>
<DataGridTextColumn Header="Format"/>
<DataGridTextColumn Header="Size"/>
<DataGridTextColumn Header="*"/>
</DataGrid.Columns>
</DataGrid>
</Grid>
</TabItem>
MainWindow.xaml.vb:
Public Class MusicLibrary
Private Sub MusicTabHappy_SelectionChanged(sender As Object, e As SelectionChangedEventArgs) Handles MusicTabHappy.SelectionChanged
(###)
End Sub
Public Shared Function GetFileName(path As String) As String
Dim filename As String = "C:\User\Desktop\A"
result = path.GetFileName(filename)
(###)
End Function
End Class
Пожалуйста Помогите мне, большое вам спасибо.