1
創建我有這樣的代碼在我的Menu.xaml後面的代碼(Menu.xaml.vb)創建一個列表框:隱藏列表框滾動條的代碼
Dim mm As New ListBox()
AddHandler mm.SelectionChanged, AddressOf Me.ListBox_SelectionChanged
mm.FontSize = 20
Dim nn As New ListBoxItem
nn.Content = "NOTIFICATIONS:"
nn.Foreground = Brushes.White
nn.Background = Brushes.DarkSlateBlue
nn.FontSize = 44
nn.FontWeight = FontWeights.Bold
mm.Items.Add(nn)
現在我想禁用滾動,或在其他案件隱藏滾動條,但如果我檢查mm屬性沒有參考滾動
任何幫助或線索?
在此先感謝