View Issue Details

IDProjectCategoryView StatusLast Update
0004288NoesisGUIC# SDKpublic2026-04-27 12:17
Reporterdarthmaule2 Assigned Tosfernandez  
PrioritynormalSeverityminor 
Status assignedResolutionopen 
Product Version3.2.8 
Target Version3.2.14 
Summary0004288: Margin seems to be ignored while scrolling a ListBox when CanContentScroll=False
Description

I've encountered a difference in behavior, which I think might be a bug.

Here's how I have my ListBox defined:

<ListBox
  Style=SettingListBoxStyle
  VirtualizingStackPanel.IsVirtualizing=False
  VirtualizingPanel.CacheLength=10 />

<Style x:Key=SettingListBoxStyle>
  <Setter Property=Template>
    <Setter.Value>
      <ControlTemplate>
        <ScrollViewer CanContentScroll=False>
          <ItemsPresenter Margin=15,10,0,185

Here's the behavior I'm seeing:

  • With it defined as listed above:
    • Using the mouse, I can click-drag to scroll down, and end up with 185 pixels of blank space at the bottom of the list box.
      • This is what I want. We have other things on the screen, and we want the list box contents to not be underneath them.
    • Using the keyboard, I can move down to the last item in the list, but it's all the way at the bottom of the screen. There's no gap of 185 pixels of blank space.
      • This is not what I want.
  • If I switch it to IsVirtualizing=True and CanContentScroll=True:
    • Using the mouse, I can click-drag to end up with 185 pixels of blank space at the bottom of the list box.
    • Using the keyboard, I can move down to the list item on the list. As I scroll down, the focused item is always kept 185 pixels from the bottom, and when I reach the last item, there is 185 pixels of blank space.
      • Both of these is what I want.

I'm wondering if this is a bug. It's obviously aware of the focused item so it can scroll it to be on the screen, but it should be taking the 185 pixel margin into account and scrolling a bit further.

PlatformAny

Activities

There are no notes attached to this issue.

Issue History

Date Modified Username Field Change
2025-07-08 17:57 darthmaule2 New Issue
2025-07-08 17:58 darthmaule2 Description Updated
2025-07-08 18:00 sfernandez Assigned To => sfernandez
2025-07-08 18:00 sfernandez Status new => assigned
2025-07-08 18:00 sfernandez Target Version => 3.2.9
2025-07-08 20:14 sfernandez Description Updated
2025-07-08 20:15 sfernandez Description Updated
2025-07-09 16:04 darthmaule2 Summary Margin seems to be ignored while scrolling a ListBox => Margin seems to be ignored while scrolling a ListBox when CanContentScroll=False
2025-08-06 17:00 sfernandez Relationship added child of 0003762
2025-08-06 17:01 sfernandez Relationship deleted child of 0003762
2025-10-02 00:48 jsantos Target Version 3.2.9 => 3.2.10
2025-10-20 18:25 jsantos Target Version 3.2.10 => 3.2.11
2026-01-20 19:32 jsantos Target Version 3.2.11 => 3.2.12
2026-03-04 00:39 jsantos Target Version 3.2.12 => 3.2.13
2026-04-27 12:17 jsantos Target Version 3.2.13 => 3.2.14