Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
これはばかばかしいほど単純な質問のようですが、GoogleとStackOverflowの検索では何も得られません。アイテムがボックスで使用できるよりも多くの水平方向のスペースを占める場合、WPFリストボックスで水平方向のスクロールを無効にするにはどうすればよいですか?
XAMLの場合:
<ListBox ScrollViewer.HorizontalScrollBarVisibility="Disabled" />
C#の場合:
myListBox.SetValue( ScrollViewer.HorizontalScrollBarVisibilityProperty, ScrollBarVisibility.Disabled);