Tree:
c04fa80b9d
0.10.0-diff-stable-0.9.11
0.8-backports
0.8-work
0.9/xamlx
5940-dragdrop-modal
7963-stable
Blaz
MikeCodesDotNET-coc-update
NumericUpDown_Fix_5318
Stylus
UnsafeAsSpan-logical-children
about-dialog-redesign
add-expanderAutomationPeer
add-integration-tests
add-missing-type-converters
add-remote-designer-test
android-profile
android/render_surface_lock
android_accessibility_focus
android_accessibility_position
android_clipboard
android_naot
android_native_window_crash
android_previewer
android_talkback_role_map
android_text_client
animation-fill-modes-test
animations-property-path
aot-test-pipeline
api-diff-demo
appium2-vm-test
archive/wieslop-pr-to-prevent-him-from-deleting-the-repo-again-and-claiming-that-stuff-didnt-happen
attach-dev-tools-conditional
attempt-datacontext-application-class
backport-11096
backports/19939
backup/fixes/catalina-red-window-15-16-08
baget-ci-test
border-clip-test
bug/focus-within-not-cleared
bump-diagnosticssupport
castxml-0.2
chart-control
china
codefreeze-0.7
codice/preview4-plus-10064
comp-size-implicitanim-repro
compile-bindings-by-default-property
composition/license
consistent-names
context-menu-refactor
control-theme-idea
critical-time-visual
customers/chaos-11.0
customers/outsystems-11.1.X
customers/outsystems-11.1.x-without-2-prs-for-testing
customers/outsystems-11.2
customers/outsystems-branches/11.2-test-port-19132
customers/outsystems/11.2-test-port-19132
customers/se-eae
dans-repro
dans-repro-without-1284
datagrid-combobox-column
dbus-tray-icon-fix-2
debug-wasm-clicks
debug/gl-texture-mem-intercept
debug/skia-sharp-vmem
demo
demo1
designer_protocol_theme_variant
dev/timill/EglExternalObjectsFeature
dev/timill/catalyst
dev/timill/dma-buf
dev/timill/init-impeller
dev/timill/macos-setup-app
dev/timill/metal
dev/timill/skiasharp-4-test
dev/timill/styles-animation
dev/timill/win-arm64-build
dev/timill/window-decorations-macos
dev/timill/winui-test
diagnose-ci
direct-comp-archive
disbar
dispatcher-scheduler
do-not-sign-rxui-attempt-2
doc-fixes
dont-self-register-font-manager
drawing-context-hack
droid
effective_viewport_bug_repro
emmaus/gradient_test
empty_text_run_fix
event-setter
exp/drawn-decorations-template
experiment-alpha-niner
experiment/fixing-key-events-macos-embedding
experiment/lazy-load-styles-resources
experiment/merged-fluent-theme
experiment/reflection-free
experiment/skia-known-extensions
experiment/styleinclude-filter
experiments/vulkan-interop-2025-10-29
expose-cut-copy-paste-textbox
feature-presentation-source-2
feature/17731-null-conditional-bindings
feature/2769-control-themes
feature/3109-listen
feature/ImePreeditText
feature/acrylic-brush-investigation
feature/add-get-pixels-to-IBitmapImpl
feature/backdrop-experiment
feature/background-fb-transfer
feature/client-frame-in-titlebar
feature/composition-tree-inspector
feature/crapium
feature/custom-visual-oob-message
feature/custom-visual-sync
feature/drawn-csd-template
feature/epoll-dispatcher-impl
feature/extract-harfbuzz
feature/flaui-webdriver
feature/fluent-calendar
feature/fluent-scrollbar
feature/fluent-slider
feature/fluent-slider-template
feature/fluent-text-box
feature/flyout-overlayinputpassthrough
feature/flyouts
feature/forced-csd
feature/fullscreen-window-state
feature/gpu-improvements
feature/headless-touch
feature/heterogeneous-item-containers
feature/icons
feature/ilogicalvisualchildren
feature/integer-clip-bak-1
feature/integration-tests-vm-migration
feature/linux-automation
feature/linux-automation-backup
feature/managed-chrome-buttons-api
feature/media-queries
feature/microcom-get-managed-reference
feature/offthread-composition-interop
feature/opengl-swapchain
feature/optimized-matrix
feature/pass-shadow-extents-to-platform
feature/pen-eraser-detection
feature/pluggable-input-methods
feature/presentation-source-2
feature/public-frost
feature/remove-legacy-renderers
feature/render-inside-windows-ui-composition-visual-tree
feature/resource-batch-update
feature/resource-dictionary-readonly
feature/resource-lookup-bench
feature/save-render-frames
feature/skia-cpu-copy
feature/staggeredlayout
feature/support-more-image-formats
feature/test-branch
feature/textbox-gestures-mac-cmd+
feature/typed-binding-2
feature/typedbinding
feature/ui-automation-atspi
feature/ui-automation-textprovider
feature/ui-automation-textprovider-2
feature/validate-draw-calls
feature/vulkan
feature/wasm-dispatcher-mt
feature/wayland-deps
feature/wayland-subcompositor
feature/wd/platform-specific-cookies-pointer-events
feature/windowstate-fullscreen
feature/wmt
feature/writablebitmap-drawingcontext
feature/x11-ime-preedit
feature/x11-incr
feature/x11-render-thread-child-resize
feature/xaml-immutable-brushes
features/atspi-peering-mode
features/dbus+atspi2+kdeappiumdriver
features/instant-dark-light-mode-switch
features/manually-managed-layer-textures
features/modal-windows
features/net6-apple-sillicon-support
features/prep1-nullable-reference-types
fies/15433-itemscontrol-interactions-to-containers
fix-ci
fix-mac-special-character-input
fix-mousedevice-not-reporting-clicks-when-any-mouse-button-is-pressed
fix-popup-topmost-windows
fix-windowicon-crash-linuxdrm
fix/DataGridCopyClearsContent
fix/avnview-hittest
fix/gvar-phantom-metrics
fix/ibus-committext-reset
fix/nativecontrolhost-automation
fix/osx-ax-frame-window
fix/osx-ax-honor-ignored-elements
fix/osx-ax-offscreen-noncontrol-children
fix/osx-ax-visible-children
fix/render-stall
fix_colors_change_event_spam
fixes-data-validation-errors-use-datatemplates
fixes/11167-pagetransition-flicker
fixes/11484-coercevalue-called-multiple-times
fixes/1399-dispatchertimer-disposable
fixes/1440-menu-navigation
fixes/1758-implement-non-recycling-virtualization-mode
fixes/17699-uniformgrid-snapping
fixes/20845-tabitem-datacontext-binding-2
fixes/2129-grid-textwrapping
fixes/21746-update-target-explicit
fixes/22580-macos-paint-runs-normal-jobs
fixes/2725-datatemplate-nested-types
fixes/2957-carousel-stackoverflow
fixes/2983-onewaytosource-twoway
fixes/4293-listbox-remove-item-selection
fixes/4496-selectionmodel-issues
fixes/6684-two-way-style-bindings-with-localvalue
fixes/7777-menu-accelerator
fixes/7925-attached-property-syntax
fixes/9007-priority-in-control-templates
fixes/971-selector-child-of-named
fixes/PreviewWithv12
fixes/android-perf-maybe
fixes/android-render-issue
fixes/appium2
fixes/automation-localization-issues
fixes/avalonia-win32-nullability
fixes/avdbus-impl2
fixes/build-stable-with-6.0.202
fixes/build-task-update-try-fix
fixes/caret-index-lost-when-selection-cleared
fixes/center-screen-maximized-parent
fixes/clear-batch-object-pool-sooner
fixes/compositing-renderer-invalidatevisual-sanity-checks
fixes/disable-fullscreen-overlay-for-border-only-mode
fixes/disable-fullscreenwindow-tests-osx
fixes/dispatcher-frame-dispatcher
fixes/dont-allow-focus-non-visible-elements
fixes/dragdrop-pointer-stuck
fixes/draw-line-on-deferred-renderer
fixes/effect-clip
fixes/effect-clip-rect
fixes/enable-multi-touch-by-default
fixes/fix-android-perf-maybe-2
fixes/gpu-interop-check-dedicated-allocation-needed
fixes/grcontext-options
fixes/hackfix-skia-gpu-interop
fixes/handle-invalid-dirty-rects
fixes/immutable-bitmap-bitmapmemory-backing
fixes/integration-tests-window-management
fixes/less-warnings
fixes/listbox-selecteditem-not-in-item-ignored
fixes/macos-dont-raise-text-input-if-key-handled
fixes/macos-duplicate-a11y-window
fixes/macos-uri-handling
fixes/make-iinlinehost-public
fixes/metal-resize-jitter
fixes/microcom-bump
fixes/ncrunch-references
fixes/nsopenpanel-shortcut
fixes/osx-hidden-window-activation
fixes/osx-rendering-glitches
fixes/pendevice-remove-global-state
fixes/publish-avalonia-native-osx-package-seperately
fixes/pump-dispatcher-before-invoking-native-loop
fixes/re-enable-full-sharpgentools
fixes/readd-references-file
fixes/remove-adorner-hack
fixes/remove-loaded-virtual-method
fixes/render-layers
fixes/resizing-wasm
fixes/round-corner-clip-border
fixes/selectionmodel-handle-move
fixes/stable-disable-roll-forward
fixes/stack-overflow-resources
fixes/standalone-content-presenter
fixes/tcc-333
fixes/text-layout
fixes/textLineMetrics
fixes/ticket-745
fixes/tmp
fixes/too-many-layers
fixes/transitions-property-changes
fixes/tree-selectionmodel
fixes/treeview-nonmaterialized-selection
fixes/wasm-layout-render-sync
fixes/win-ui-comp-global-lock
fixes/win32-maximize-not-applied-initially-when-height-set
fixes/window-close-crash
fixes/window-close-crash-testcode
fixes/window-management-stage-manager
fixes/xamlx-generic-type-resolution
fixes/yet-another-dbus-typing-fix
flickerRepo
fluent-textbox-update
focus-and-keyboard
focus_prototype
focus_tree_state
font-tests
force-ci/11.3-pr-22452
force-ci/composition-rework
force-ci/release-12.1.3-pre
force-ci/xaml-perf-improvements
foreign-embed-squash
foreign-embed-wip
foreign-embed2
git-pr_6982_rework
global-menu
gpu-optimised-deferred-rendering
grid-tests
grokys/experiment/appium-2
grokys/experiment/appium-2-2
grokys/experiment/more-benchmarks
grokys/experiment/new-itemscontrol
grokys/experiment/new-styling
grokys/framebuffer-skip-memcpy
grokys/trying-to-fix-integration-tests
grokys/update-net-5.0
gtk-solution
hack/emulate-touch-events
headless-tests
headless-timers
html-auto-port
ignore-capture-on-pointer-entered-exited
image-filters
image-scrolling-repro
implement-decorated-window-dragging
inlinesTheThird
integration-tests-selenium
ios-dev
ios-fix
issue-457
itemspresenterbase
jw/native-graphics
jw/wip/wayland
keyframe-binding
knock-knock-are-integration-tests-even-alive
layers-wtf-repro
linux-mono-down
main
managed-dialog-extras-0.9
managed-mouse-pointer
manual-fbo
maxkatz6-patch-1
memory-leak-repro-commit
menu-contexntmenu-slection-is-not-consistant
mergeWithDrawingRecording
microcom-net5-features
missing_content_repro
move
move_resize
nativeMenu-leak-fix
nativeMenuItem-leak-macOS-fix
nativeaot-llvm-experiment
ncomposition
new-weak-events
no-layer-hack
no-llvmpipe
no_composition_rounded
notify-test
old/2025-12-06
onformfactor_issue
open-contextmenu-with-keyboard
opentk-integration
osx-fixes
osx/maximised-set-in-xaml-fix
package-control-catalog
page_proto
parma-fixes-2020-10
pivot_touch
platform_feedback
popup-repro
port/wpf-uniformgrid
portable-xaml
pr3/glyph-colorv1
pr4i/variable-face-resolution
pr4j/stat-family-grouping
pr5/cff-cff2-outlines
pr6/glyph-ink-bounds
pr7/variation-cache-bounds
pr8/math-table
pre-lifetime-fixes
property-path
property_transition_stops_repro
psp-repro
pull/14157
rc1-testing
refactor/avaloniapropertystore
refactor/binding-refactor-2025
refactor/binding-to-reflectionbinding
refactor/bindingexpressions-in-valuestore
refactor/bindings-are-expressions
refactor/compiledbinding-refactor-2025
refactor/datavalidation-plugins
refactor/iavaloniaobject-nongeneric
refactor/itemsrepeater-as-itemspresenter
refactor/itemsrepeater-as-itemspresenter2
refactor/layout
refactor/logical-child-optimize
refactor/more-nullable-avalonia-base
refactor/onpropertychanged-nongeneric
refactor/style-priorities
refactor/visual-child-optimize
refactor_pointerover_backportable
release/0.10.0
release/0.10.0-preview1
release/0.10.0-preview2
release/0.10.0-preview3
release/0.10.0-preview4
release/0.10.0-preview5
release/0.10.0-preview6
release/0.10.0-rc1
release/0.10.0-rc2
release/0.10.1
release/0.10.10
release/0.10.11
release/0.10.11-rc.1
release/0.10.11-rc.2
release/0.10.12
release/0.10.13
release/0.10.14
release/0.10.15
release/0.10.16
release/0.10.17
release/0.10.18
release/0.10.19
release/0.10.2
release/0.10.20
release/0.10.21
release/0.10.22
release/0.10.3
release/0.10.4
release/0.10.5
release/0.10.6
release/0.10.7
release/0.10.8
release/0.10.9
release/0.7.0
release/0.8.0
release/0.8.1
release/0.8.2
release/0.8.3
release/0.8.4
release/0.9.0
release/0.9.0-preview1
release/0.9.0-preview10
release/0.9.0-preview2
release/0.9.0-preview3
release/0.9.0-preview4
release/0.9.0-preview5
release/0.9.0-preview6
release/0.9.0-preview7
release/0.9.0-preview8
release/0.9.0-preview9
release/0.9.0-rc.1
release/0.9.0-rc.2
release/0.9.0-rc0001
release/0.9.1
release/0.9.10
release/0.9.11
release/0.9.12
release/0.9.2
release/0.9.3
release/0.9.4
release/0.9.5
release/0.9.6
release/0.9.7
release/0.9.8
release/0.9.8.1
release/0.9.9
release/11.0
release/11.0.0
release/11.0.0-preview1
release/11.0.0-preview2
release/11.0.0-preview3
release/11.0.0-preview4
release/11.0.0-preview5
release/11.0.0-preview6
release/11.0.0-preview7
release/11.0.0-preview8
release/11.0.0-rc1.1
release/11.0.0-rc2.1
release/11.0.0-rc2.2
release/11.0.1
release/11.0.10
release/11.0.11
release/11.0.12
release/11.0.13
release/11.0.2
release/11.0.3
release/11.0.4
release/11.0.5
release/11.0.5-rc1
release/11.0.6
release/11.0.7
release/11.0.8
release/11.0.9
release/11.1
release/11.1.0
release/11.1.0-beta1
release/11.1.0-beta2
release/11.1.0-rc1
release/11.1.0-rc2
release/11.1.1
release/11.1.2
release/11.1.3
release/11.1.4
release/11.1.5
release/11.2
release/11.2.0
release/11.2.0-beta1
release/11.2.0-beta2
release/11.2.0-rc1
release/11.2.0-rc2
release/11.2.1
release/11.2.2
release/11.2.3
release/11.2.4
release/11.2.5
release/11.2.6
release/11.2.7
release/11.2.8
release/11.3
release/11.3.0
release/11.3.0-beta1
release/11.3.0-beta2
release/11.3.0-rc1
release/11.3.1
release/11.3.10
release/11.3.11
release/11.3.12
release/11.3.13
release/11.3.14
release/11.3.15
release/11.3.16
release/11.3.17
release/11.3.18
release/11.3.19
release/11.3.2
release/11.3.20
release/11.3.21
release/11.3.22
release/11.3.23
release/11.3.3
release/11.3.4
release/11.3.5
release/11.3.6
release/11.3.7
release/11.3.8
release/11.3.9
release/12.0
release/12.0.0
release/12.0.0-preview1
release/12.0.0-preview2
release/12.0.0-rc1
release/12.0.0-rc2
release/12.0.1
release/12.0.2
release/12.0.3
release/12.0.4
release/12.0.5
release/12.1
release/12.1.0
release/12.1.1
release/12.1.2
release/12.1.3
release/12.1.4
release/12.1.5
release/12.1.6
release/latest
release/outsystems/0.9.11
remote-devtools
remove-acrylic-blur-from-old-win
removing-compositional-renderer-license
render-only-on-render-thread
repro-ap
repro-ap-1
repro-arcsegment-not-updating
repro-binding-window-state
repro-bindingprio-bug
repro-garbled-graphics
repro-ienumerable-menu-navigation
repro-invalid-draw-calls
repro-items-repeater-issue
repro-properties
repro-req-an-frame
repro-resource-recursion
repro-selected-items-not-working
repro-selecting-items-control-not-working-inside-popup
repro-window-close
repro/1326-data-binding-issue
repro/1436-layout-not-done-after-style-applied
repro/1707-listbox-virtualization-resize-performance
repro/1758-virtualizer-measured-items
repro/18104-drag-drop-flyout-placement
repro/20845-tabitem-datacontext-binding
repro/atspi-get-accessible-at-point
repro/atspi-selection-getselectedchild
repro/binding-attached-property-from-style
repro/binding-isfocused
repro/bound-listboxes
repro/caret-binding-failure
repro/carousel-not-materializing-content
repro/dynamic-resource-bug
repro/macos-nested-loop-in-paint
repro/minimal-repro-stackoverflow-onewaytosource-binding
repro/outsys-sizing-issue
repro/properties-overhaul-bug
repro/radial-gradient-transform
repro/size-to-content
repro/window-not-obey-min-height
repro/x11-position-after-reparent
repros/content-presenter-regression
repros/custom-fonts-pr
repros/text-alignment-issue
repros/web-null-signature
revert-10284-feature/impl-IReadableBitmapImpl-in-SurfaceRenderTarget
revert-13066-fixes/13064-logical-scrollable
revert-14106
revert-18343-bump-dbus-stack
revert-2489-fixes/2432-carousel-insert
revert-2645-issue2613
revert-3221-undecorated-window
revert-selectionmodel
rtb-gl-fixes
scene
scenegraph-after-breakage
scroll-measure
scroll_transition_repro
sdks-update
set-empty-x11-title-instead-of-null
simplify-testing
size-to-content-render-repro
skia-foreign-bitmap
sound
stable-test-mac-os-fix
stable/0.10.0
stable/0.10.x
stable/0.10.x-codice
stable/0.10.x-outsys
stable/0.10.x-se
stable/0.9
stable/outsystems-0.9
stable/parm-0.9
stable/tmp8
strongname
stx/1-text-navigation
stx/10-macos-nstextinputclient
stx/11-android-inputconnection
stx/12-ios-responder
stx/13-win32-tsf
stx/2-automation-text-provider
stx/3-uia-text-pattern
stx/4-atspi-text
stx/5-grid-table-patterns
stx/6-structured-text-input
stx/7-composition-in-document
stx/9-win32-imm
styleable-grid-rowcoldefs
styles-not-getting-applied-repro
system-xaml
tabcontrol-bound-items
temp/implement-hdr
temp/rpi-slowness
temp/testbuild-skia-extensions
test-log-box-shadow
test-meta-packages
test-multiple-optimizations-together
test-package-run
test-saverestore-layer
test-styleable-rowcol-defs
test-sub-menu-item
test/suppressActivationEvents
test/trigger
test11
tests/animations-p1
tests/default-font-fail-nativeaot
testy-test
text-input
text_edit_context_menu_extension
text_ime_client_direct
text_selector_adorner
text_selector_magnifier
text_selector_zindex
thread-issue-repro
timer-overload
tinywm
tmp-2
tmp-angle
tmp-build-dan
tmp-menu-disable
tmp-winuicomp_with_manual_fbo
tmp/11.0
tmp1
tmp4
tmp6
tmp9
toplevel_props
transitions-bugfix-deux
transparency-hints-list
treeview-issue-repro
try-critical-branch-bringup-2
try-fix-3336
ui-automation-test
update-avalonia-dbus-submodule
update-submodules
upgrade-angle
use-net7-tizen
v0.8
virtualized_wrappanel
virtualizeing_wrappanel_rc1
virtualizing_grid
visual-extensions-fallback
visualbrush_recreate
vnc-mouse-drag-issue
vnext
wasm_editcontext
win-ui-comp-with-manual-fbo
win32-jitter-hack
win32_client_pos_test
win32_hidden_border_fix_test
win32_mouse_wheel_zoom
window_hide_test
windowing-prototype
windowing-prototype-drag-and-drop
winit-legacy
wip/use-selectionmodel
wip_snappoint_anchor
x11-mit-shm
x11-test-without-render-window
x11_allowed_actions
xaml_attached_composition_animations
xaml_composition_animations
xaml_integrated_comp_animations
xamlil-debug-info
xclass-generator
xdatagrid-experiment
xi2-leave-event
xpf-old
xpf/composition-rework-branch
xpf/primary-mouse-device
xpf/screen-fix-21750
xpf_win32_test
xsd-generator
xy-focus-and-tvos
xy-focus-skiasharp-3
0.0.1-alpha
0.1.0-alpha2
0.1.1
0.1.10
0.1.2
0.1.3
0.1.4
0.1.9
0.10.0
0.10.0-preview1
0.10.0-preview2
0.10.0-preview3
0.10.0-preview4
0.10.0-preview5
0.10.0-preview6
0.10.0-rc1
0.10.0-rc2
0.10.0.10
0.10.0.4
0.10.1
0.10.10
0.10.11
0.10.12
0.10.12.23
0.10.13
0.10.13.24
0.10.14
0.10.15
0.10.16
0.10.17
0.10.18
0.10.19
0.10.2
0.10.20
0.10.21
0.10.22
0.10.3
0.10.4
0.10.5
0.10.6
0.10.7
0.10.8
0.10.9
0.2.0-preview
0.2.1-preview
0.3.1-preview
0.4.0
0.4.1
0.5.0
0.5.1
0.7.0
0.8.0
0.8.1
0.8.2
0.8.3
0.8.4
0.9.0
0.9.0-preview1
0.9.1
0.9.10
0.9.11
0.9.12
0.9.2
0.9.2.18
0.9.2.19
0.9.3
0.9.4
0.9.5
0.9.6
0.9.7
0.9.8
0.9.9
1.0.1
1.0.4
1.1.1
1.1.2
1.2.1
1.3.1
1.3.4
1.4.1
1.4.2
1.5.1
1.6.1
10367-checkpoint1
11.0.0
11.0.0-preview1
11.0.0-preview2
11.0.0-preview3
11.0.0-preview4
11.0.0-preview5
11.0.0-preview6
11.0.0-preview7
11.0.0-preview8
11.0.0-rc1.1
11.0.0-rc2.1
11.0.0-rc2.2
11.0.1
11.0.10
11.0.11
11.0.12
11.0.13
11.0.2
11.0.3
11.0.4
11.0.5
11.0.5-rc1
11.0.6
11.0.7
11.0.8
11.0.9
11.1.0
11.1.0-beta1
11.1.0-beta2
11.1.0-rc1
11.1.0-rc2
11.1.1
11.1.2
11.1.2-rc1
11.1.3
11.1.4
11.1.5
11.2.0
11.2.0-beta1
11.2.0-beta2
11.2.0-rc1
11.2.0-rc2
11.2.1
11.2.2
11.2.3
11.2.4
11.2.5
11.2.6
11.2.7
11.2.8
11.3.0
11.3.0-beta1
11.3.0-beta2
11.3.0-rc1
11.3.1
11.3.10
11.3.11
11.3.12
11.3.13
11.3.14
11.3.15
11.3.16
11.3.17
11.3.18
11.3.19
11.3.2
11.3.20
11.3.21
11.3.22
11.3.23
11.3.3
11.3.4
11.3.5
11.3.6
11.3.7
11.3.8
11.3.9
12.0.0
12.0.0-preview1
12.0.0-preview2
12.0.0-rc1
12.0.0-rc2
12.0.1
12.0.2
12.0.3
12.0.4
12.0.5
12.1.0
12.1.1
12.1.2
12.1.3
12.1.4
12.1.5
12.1.6
itemssource-checkpoint1
itemssource-checkpoint2
nuget-0.7.1.5
nuget-0.7.1.6
nuget-release-0.5.1
nuget-release-0.6.0
nuget-release-0.6.1
${ noResults }
1847 Commits (c04fa80b9d8ec756d6cc474b0da7371694dea349)
| Author | SHA1 | Message | Date |
|---|---|---|---|
|
|
16572aeff1
|
Fix keyboard focus staying on a removed element when an overlay popup or flyout closes (#22345)
* Add failing test for focus staying on a removed or hidden element When a focus scope is removed or hidden while its focused element has the focus and the root scope's focused element can't be focused (e.g. a button disabled while its command waits for a choice in a flyout), the keyboard focus stays on the removed or hidden element. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Clear focus when the focused element is removed or hidden and can't be restored Focus(null) leaves the focus alone when the focused element is in another focus scope than the focus root, but a removed or hidden element also passes that check. Only apply it while the focused element is attached and visible. Fixes #22342 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Add popup tests with actual focus services --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> Co-authored-by: Julien Lebosquain <julien@lebosquain.net> |
1 month ago |
|
|
8c34f2be63
|
Report deselected items and batch SelectAll in TreeView (#22172)
* Report deselected items and batch SelectAll in TreeView Selecting a different item clears and repopulates SelectedItems. The clear raises a Reset, which carries no OldItems, so the deselection was dropped and only the addition was reported. Track the previous selection so the reset can work out what was deselected, and raise the clear and the add as one event. SelectAll added items one at a time, raising an event per item. Batch it the same way. * Simplify TreeView selection tracking Keep a single snapshot of the last reported selection and diff against it, instead of tracking the snapshot and the pending changes separately. A reset that keeps some items no longer reports them as added. Co-authored-by: Steven Kirk <grokys@users.noreply.github.com> * Simplify comments * Remove comment. No other fields have comments, pretty much in the whole codebase. This isn't an exception. --------- Co-authored-by: Steven Kirk <grokys@users.noreply.github.com> |
1 month ago |
|
|
5f8cbc8c86
|
Do not measure embedded controls while building a TextBlock layout for an unmeasured block (#22394)
CreateTextLayoutCore measured the inline embedded controls whenever the layout was built. The compositor renders dirty visuals under hidden ancestors too, and layout never measures those, so a TextBlock in a hidden subtree built its layout from RenderCore and measured its InlineUIContainer children there. A child measured for the first time applies its template, attaching visuals inside the render pass, and CompositingRenderer.AddDirty throws "Visual was invalidated during the render pass". - Only measure the embedded controls from CreateTextLayoutCore when the block's own measure is valid. An invalid block has a measure pass pending, and MeasureOverride measures the children once the block is reachable. - Cover a block hidden at first render, an embedded control shown while its page is hidden, and a page hidden after it was shown. Fixes #22380 |
1 month ago |
|
|
b2b943eaa8
|
Fix caret position with centered text (#22340)
* Update caret bounds after TextLayout recreation * Drop redundant TextLayout access from the centered caret test - Arrange already recreates the layout when the constraint changes, so the explicit getter call added nothing --------- Co-authored-by: Benedikt Stebner <Gillibald@users.noreply.github.com> |
1 month ago |
|
|
be44e328fc
|
Apply IsSelected from items declared in XAML (#22363)
* Add tests for a ComboBoxItem marked as selected in XAML * Apply IsSelected from inline items before their containers are realized |
1 month ago |
|
|
71109211ec
|
Fix: Invalidate Polygon/Polyline geometry when the points collection changes (#22346)
* Add tests for Polygon/Polyline geometry invalidation on points changes * Invalidate Polygon/Polyline geometry when the points collection changes |
1 month ago |
|
|
e7f37c9ee9
|
Fix flex grow in scroll viewer (#22278)
|
1 month ago |
|
|
0924260e71
|
Update NativeMenuItem enabled state when CommandParameter changes (#22368)
* test(menu): cover NativeMenuItem command parameter changes A NativeMenuItem keeps the CanExecute result from the moment its Command is set. When CommandParameter is set or cleared afterwards, IsEnabled does not change. Add tests that set and clear CommandParameter after Command. Both fail at present. A third test records that a parameter change does not enable an item that has no command. * fix(menu): update NativeMenuItem state when CommandParameter changes A NativeMenuItem queries CanExecute only when its Command changes. If CommandParameter is assigned afterwards, IsEnabled keeps the result for the previous parameter. This occurs in XAML when the data context is set before the XAML is loaded. The Command binding resolves when it is applied, which is before a CommandParameter property element is assigned. A command that rejects a null parameter, such as RelayCommand<int>, then leaves the item disabled permanently. Query CanExecute again when CommandParameter changes, as Button and MenuItem do. Skip the query when the item has no command, because there is no result to refresh and the query would reset IsEnabled to true. Fixes #21914 * chore: trim code comments --------- Co-authored-by: Julien Lebosquain <julien@lebosquain.net> |
1 month ago |
|
|
daed7a2592
|
Allow Shift+Tab out of CalendarDatePicker (#22370)
* test(datepicker): cover Shift+Tab out of CalendarDatePicker Shift+Tab from the text box of a CalendarDatePicker does not reach the previous control. The previous tab stop is the picker, and the picker moves focus back to its text box, so focus stays in the text box. The test fails until the picker leaves the tab order. * fix(datepicker): allow Shift+Tab out of CalendarDatePicker CalendarDatePicker is a tab stop, and it moves focus to its text box when it receives focus. Shift+Tab from the text box selects the picker as the previous tab stop, so focus returns to the text box and the keyboard cannot leave the picker backwards. Remove the picker from the tab order, as AutoCompleteBox and NumericUpDown do. Tab navigation then reaches the text box directly in both directions. The picker stays focusable, so pointer focus and Focus() calls behave as before. Fixes #15193 * chore: trim code comments |
1 month ago |
|
|
b56731425d
|
Fix Button and MenuItem leak when a style sets Command (#22367)
* test(controls): cover CanExecuteChanged subscription for a style-set Command The existing tests set Command as a local value. A Command that a style setter supplies takes a different path: the style applies the value during attach, and removes the value during detach, before the control overrides run. For Button and MenuItem the new tests fail. Each control subscribes two times on attach, and both subscriptions remain after the control leaves the logical tree, so the command keeps the control alive. The SplitButton test passes. SplitButton already handles this sequence, and the test guards that behaviour. * fix(controls): release a style-set Command when Button or MenuItem detaches When a style setter supplies Command, Button and MenuItem subscribe to CanExecuteChanged two times on attach and do not unsubscribe on detach. The command then holds the control, and every control behind it, for the lifetime of the command. Both controls decide whether to move the subscription from ILogical.IsAttachedToLogicalTree. StyledElement changes that state before the styles change and before the attach and detach overrides run: - On attach, the style sets Command while the control already reports attached. The property handler subscribes, then OnAttachedToLogicalTree subscribes again. - On detach, the style value goes away while the control already reports detached. The property handler skips the unsubscribe, then OnDetachedFromLogicalTree finds no Command to unsubscribe from. Track the subscription state in the control instead. Set the flag where OnAttachedToLogicalTree subscribes and clear the flag where OnDetachedFromLogicalTree unsubscribes. The Command property handler then moves the subscription only while the control owns one. SplitButton already uses this approach. Fixes #20588 Fixes #19619 * chore: trim code comments * chore: remove the comment on _isSubscribedToCommand The field name states its purpose. The comment only gave the history of the change. |
1 month ago |
|
|
cc2aeb295f
|
Fix - Popup with pointer placement mode now keeps initial position when size changes. (#22366)
* add test * Prevent popup reposition on Pointer mode after initial set * fix test name * fix test name and overlay tests |
1 month ago |
|
|
1b50ee4bdd
|
Batch TextBox selection notifications during text replacement (#22343)
* Add regression tests for TextBox selection notifications Cover forward and reverse native selections during text replacement, reentrant text input from selection notifications, and preserved partial selections. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> * Batch TextBox selection notifications during text replacement Use the existing input-method change scope until text-triggered caret and selection updates have completed, preventing native callbacks from observing partially coerced selection endpoints. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> * Test input-method selection assignment notifications Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> * Batch input-method client selection assignments Keep text-change batching because property coercion does not call the client selection setter. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --------- Co-authored-by: adirh <27368554+adirh3@users.noreply.github.com> Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Co-authored-by: Benedikt Stebner <Gillibald@users.noreply.github.com> |
1 month ago |
|
|
4b32663482
|
Wayland : Add AppId in WaylandPlatformOptions and WaylandProperties (#22209)
* Wayland : Add the AppId in WaylandPlatformOptions or in Windows WaylandProperties to overload the app id if the executable name don't match the app name of the .desktop file * Rework AppId handling in Wayland backend: - Centralize default AppId definition in WaylandGlobals - Use fallback to `Globals.AppId` where applicable. - Add detailed documentation for the `WaylandProperties.AppId` attached property. * Make WaylandProperties static --------- Co-authored-by: Julien Lebosquain <julien@lebosquain.net> |
1 month ago |
|
|
3a184fe735
|
Fix showing ellipsis when word wrap and limited by height or MaxLines (#22025)
* Fix showing ellipsis when word wrap and limited by height or MaxLines. * Simplify fix based on comment * Align height clip behavior with WPF/HTML when last visible line fits in the available width No ellipsis is shown in this case so I guess it makes sense for Avalonia to behave the same. * Clarify truncation comments and cover them at the TextLayout level - Reword the MaxHeight and MaxLines truncation comments: the two limits differ on purpose (a height cut only ellipsizes a soft-wrapped line, a line-count cut ellipsizes after a hard break too, like CSS line-clamp). - Add TextLayout tests with the real shaper for MaxLines at a hard break, MaxHeight at a hard break and MaxHeight at a wrapped line, so the behavior is guarded below the TextBlock layer. --------- Co-authored-by: Benedikt Stebner <Gillibald@users.noreply.github.com> |
1 month ago |
|
|
aa91009536
|
Fix - Hide Text Selection Handles when text presenter visibility changes. (#22348)
* add failing test * Hide text selection handles if visibility of textpresenter changes. |
1 month ago |
|
|
6d993f54aa
|
Release the TextBlock text layout when the control is detached (#22281)
|
1 month ago |
|
|
9c463f472c
|
MenuItem automation: expand/collapse and invoke. (#22295)
* MenuItem automation: expand/collapse and invoke. Implement `IExpandCollapseProvider` and `IInvokeProvider` on the `MenuItemAutomationPeer`. This was surprisingly involved so got Claude to generate some tests for it. - The provider split matches WPF: `Invoke` for leaf items, `ExpandCollapse` for items with a submenu. - `Invoke()` goes through `DefaultMenuInteractionHandler.Click`, so checkable items toggle and the menu closes. This works for a `Menu`, a `ContextMenu` and a `MenuFlyout`. - `MenuItem.MenuInteractionHandler` is now exposed internally so we don't need to do the lookup in two places * Close the menu when collapsing a top-level menu item. Collapse on a top-level item now closes the whole menu, matching a click on an open top-level header. Menu tests now open menus via the peer and assert Menu.IsOpen, and cover collapsing top-level and nested items. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01BZgdE18BxKaTJZQZKUppXW * Make Collapse a no-op when the menu item is already collapsed. Previously, collapsing an already-collapsed top-level item closed the whole menu, including another top-level item's open submenu. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01BZgdE18BxKaTJZQZKUppXW --------- Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com> |
2 months ago |
|
|
d0305f99aa
|
Fix TrayIcon attachment lifecycle (#22118)
* Fix TrayIcon being added to the system tray on creation - Create the native tray icon only after it is attached to Application - Unsubscribe from the previous TrayIcons collection when it is replaced - Ensure tray icons cannot escape cleanup during application shutdown * Add tray icon test. * Remove tray icon visibility toggle to verify macOS integration tests * Unified code style * Keep the native icon hidden until all properties have been initialized. * Handling invalid waits in testing * Fix bad auto-merge --------- Co-authored-by: Julien Lebosquain <julien@lebosquain.net> |
2 months ago |
|
|
8dd1e82825
|
Keep the selection when right-clicking below the text in SelectableTextBlock (#22212)
* Add tests for right-clicking below the text in SelectableTextBlock A right-click below the text clears the selection, while the same click in a TextBox keeps it. * Keep the selection when right-clicking below the text in SelectableTextBlock A point below the text hit-tests to one past the end of the text. SelectableTextBlock compared that raw position with the selection, so a right-click below the text moved the caret and cleared the selection. Clamp it with TextBox.CoerceCaretIndex, as TextBox does through its caret. |
2 months ago |
|
|
ac7c57a1bc
|
[X11] Implement support for PRIMARY selection (#21849)
* [X11] Implement support for PRIMARY selection * Compile * Replace TopLevel.PrimarySelection with TryGetClipboard(ClipboardType) * Address review: reuse GetSelectionRange, X11-only doc comment * Access each property only once in `GetSelectionRange` * Return Task from PublishText --------- Co-authored-by: Julien Lebosquain <julien@lebosquain.net> |
2 months ago |
|
|
a4fe71e2cd
|
[Text input] Measure the caret outside the text layout getter (#22176)
* Add failing test: preedit crashes when a CaretBoundsChanged handler invalidates layout TextPresenter's TextLayout getter runs UpdateCaret after creating the layout, and UpdateCaret raises CaretBoundsChanged. A subscriber that synchronously invalidates the text layout - the IME candidate window or any caret-following code forcing a layout pass does this in practice - nulls the field before the getter returns it, so the surrounding computation (the preedit update, or the measure pass materializing the layout) dereferences null. Found live by TextInputDebugger on its first Japanese IME session: the trace viewer's scroll-into-view pumped a layout pass from inside the caret callback and every composition update crashed. * Measure the caret outside the text layout getter The getter built the layout and then ran UpdateCaret, which raises CaretBoundsChanged. A handler that invalidates the layout - an IME candidate window, or caret-following code forcing a layout pass - disposed the layout the getter was about to return, so the getter handed back a field the handler had already cleared and the caller dereferenced null. - The getter builds the layout, marks the caret dirty and returns. It raises no events, so nothing invalidates the layout while it is being built. - EnsureCaretBounds measures the caret against the layout field rather than the property, so it can neither build a layout nor recurse. A handler invalidating from there only schedules the next measure pass. - The measure pass builds the layout once and settles the caret against it, so a preedit key press builds one layout where it built three. - A preedit change records the caret position it wants and lets that pass place it, normalized through the line's caret hit walkers so a position on the seam of a fallback-font run resolves to a hit the layout can measure. - The declaration of the layout field now names the five members that own its lifetime. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> * Repaint instead of rebuilding the layout to hide the caret HideCaret disposed the text layout and reshaped the text on the next access, which is work the caret does not need: it blinks over the text rather than taking part in it. Anything holding the layout across the call also lost it. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5 <noreply@anthropic.com> |
2 months ago |
|
|
eb5cce2492
|
Fix CalendarDatePicker.Focus() not focusing the text box (#22170)
* Fix CalendarDatePicker.Focus() not focusing the text box OnGotFocus only forwarded focus to PART_TextBox when the navigation method was Tab, so a programmatic Focus() call left focus on the picker itself. Gate on the focus source instead, and keep select-all on Tab only. * Remove comment from CalendarDatePicker.OnGotFocus |
2 months ago |
|
|
4393d521ec
|
Ignore child margins when positioning a popup (redux) (#21856)
* Added failng popup child margin test * Ignore popup child margin when positioning Avoids drop shadows and other out-of-bounds visual effects from affecting popup positioning * Fix warnings in tests * Pass Deflate to WSurface --------- Co-authored-by: Tom Edwards <tom.edwards@chaos.com> |
2 months ago |
|
|
2a34135703
|
Fix: Switching themes may crash the App (#22189)
* Unit test: Switching themes may crash the App * fix for theme switching * address copilot review * make the code cleaner and nicer |
2 months ago |
|
|
e91bad598c
|
Add TableViewColumn.IsVisible property (#22162)
* feat: Add IsVisible to TableViewColumn * test: Add TableView IsVisible tests * feat: Add option to hide a column in the ControlCatalog * chore: Remove unnecessary remark from property * docs: An other xml comment cleanup * fix: Use NaN as a sign that the width is reset and needs recalculation Also, set the ActualWidth of a hidden column to 0 * chore: Add a comment explaining what NaN means for columns ActualSize |
2 months ago |
|
|
cd3b218eb4
|
Fix DateTimePickerPanel ItemHeight updates (#22158)
|
2 months ago |
|
|
888f7557bd
|
Rebuild TextBlock text runs only when the content changes (#22149)
* Keep TextBlock text runs in sync with its inlines _textRuns is built from Inlines, but OnMeasureInvalidated discarded it on any measure invalidation while Inlines still held the content. Between that point and the next measure pass, CreateTextLayout read a null _textRuns as "no inlines" and shaped Text instead, which is null whenever the content lives in Inlines. That empty result went into the TextRunCache, keyed by text source index, so every later layout reused it and the control rendered nothing until something invalidated the cache. - Discard _textRuns in InvalidateTextLayout, next to the run cache, so the runs and the cache are dropped by the same event and cannot disagree about the content. - Build the runs on demand in EnsureTextRuns, and pick the text source by HasComplexContent rather than by _textRuns being set. - Split the constraint-dependent work out of run building. Runs answer to the content alone; only an embedded control answers to the available width, so Inline.MeasureEmbeddedControls measures it and EmbeddedControlRun reports the child's DesiredSize live. Runs now survive a constraint change instead of being rebuilt every measure. SelectableTextBlock never hands the run cache to its layout, but it shared the same fallback and kept the wrong layout on _textLayout. Fixes #21902 Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> * Invalidate the layout when LineSpacing changes LineSpacing had no case in the property change switch and is not one of the properties registered with AffectsRender, so changing it left the measured size and the rendered text untouched even though CreateTextLayout feeds it into the paragraph properties. It changes line placement rather than shaping, so it belongs with LineHeight and the other properties that keep the run cache. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> * Drop the text layout whenever the content is invalidated InvalidateMeasure only raises OnMeasureInvalidated while the measure is still valid, so a second content change before the next measure pass left _textLayout holding the layout the first change had already replaced. MeasureOverride keeps that layout when the constraint has not moved, so the block measured and rendered the superseded content. Clear the layout in InvalidateTextLayout and InvalidateTextLayoutKeepCache rather than relying on OnMeasureInvalidated to run, which is what TextPresenter already does. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> * Drop the text layout when an embedded control resizes A line snapshots its metrics when it is formatted, so a layout built before a child was measured again keeps reporting the width and height that child used to have. MeasureOverride reuses the layout whenever the constraint has not moved, so a control that resizes while the block is already measure invalid never reaches the measured size. - MeasureEmbeddedControls reports whether any child came back a different size, and the layout is dropped only then rather than on every pass. - Route the remaining layout resets through DisposeTextLayout so every reset goes through one place. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5 <noreply@anthropic.com> |
2 months ago |
|
|
54ae2d047f
|
Fix for ListBox ghost items - Alternative version (#22165)
* add failing test for ghost items after showing a hidden ListBox * fix ghost items * add a failing test * fix for ghost item * more tests * Fix return statement in VirtualizingStackPanel Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> --------- Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> |
2 months ago |
|
|
f2e8e8931f
|
Add generic navigation apis to Page Navigation (#22010)
* add page navigation using generic type * add tests * add default impl to INavigation api * fix nullable errors * update api diff * addressed comment * update api * move page externsion to own class * make parameter overload non-optional |
2 months ago |
|
|
9d5c2fa81d
|
Fix empty FlexPanel size (#22130)
|
3 months ago |
|
|
5d25bd6463
|
Fix init order of SetupWithClassicDesktopLifetime (#21954)
* Fix init order of SetupWithClassicDesktopLifetime * Don't raise Startup in Setup * Fix warning |
3 months ago |
|
|
1c9e559996
|
Fix #7536: crash when changing source during SelectionChanged (#22102)
* Add failing test for #7536 Reproduces the "Cannot change source while update is in progress" crash that occurs when a SelectingItemsControl's ItemsSource is changed from within its own SelectionChanged handler while the selection is being lost. When selection is lost, CommitOperation bumps the operation UpdateCount before raising LostSelection but never decrements it, so SelectionChanged is raised with UpdateCount > 0 and SetSource throws. Claude-Session: https://claude.ai/code/session_01FXP1ejZ9VhUwecY9QCRKVb Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> * Fix #7536: crash when changing source during SelectionChanged When the selection was lost, SelectionModel.CommitOperation incremented the operation's UpdateCount before raising LostSelection but never decremented it. As a result the rest of the commit - including the SelectionChanged event - ran with UpdateCount > 0, so a handler that changed the control's source (as StructuredLogViewer's UpdateBreadcrumb does) hit the "Cannot change source while update is in progress." guard in SetSource and threw. Decrement UpdateCount again once the LostSelection handler has returned so that the batching only covers the handler itself and the SelectionChanged event is free to change the source. Claude-Session: https://claude.ai/code/session_01FXP1ejZ9VhUwecY9QCRKVb Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> * Add test for changing selection from SelectionChanged when AlwaysSelected reselects Covers the interaction between the #7536 fix and AlwaysSelected: clearing the selection makes AlwaysSelected reselect the first item via LostSelection (which must still fold into the current operation), and a SelectionChanged handler that then changes the selection must be honoured rather than swallowed by the batch update wrapping the LostSelection handler. Fails before the fix (selection stays on the reselected item), passes after. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01FXP1ejZ9VhUwecY9QCRKVb * Assert that `SelectionChanged` was called. --------- Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com> |
3 months ago |
|
|
6896f08f37
|
Basic infra to use headless platform in "normal" unit tests (#22078)
* Basic infra for using headless platform in normal tests * Add RunJobs helper to scope returned from HeadlessUnitTestApplication |
3 months ago |
|
|
a8b1a6b55a
|
Don't build the selected text just to check whether a selection exists (#22100)
* perf(text): test the selection by index instead of building it UpdateCommandStates only needs to know whether the selection is empty, but it called GetSelection, which allocates a substring on every selection change. Test the indices instead, so a selection change no longer allocates. Requested by @Gillibald in #21492. * perf(text): read the selection properties once in HasSelection |
3 months ago |
|
|
4142052f9e
|
Add BringIntoView pass to the LayoutManager (#22002)
* Add BringIntoView pass to the LayoutManager * Make ProcessBringIntoViewRequests part of the standard layout pass * Clarify why TryScrollIntoViewNow's result is ignored --------- Co-authored-by: grokys <grokys@users.noreply.github.com> |
3 months ago |
|
|
11593a70ce
|
Fix auto-sized VirtualizingStackPanel not rendering (#22081)
* Add failing test for auto-sized VSP * Fix auto-sized VirtualizingStackPanel not rendering |
3 months ago |
|
|
6b185ed56a
|
fix: light dismiss behavior fails when opened from the ContextMenu. (#22037)
* fix: light dismiss behavior fails when opened from the ContextMenu. * 1. LightDismissOverlayLayer is invisible by default. 2. Eliminate misinformation that Registration may bring. 3. Remove LightDismissOverlayLayer Manually set IsVisible to false at creation time. --------- Co-authored-by: Steven Kirk <grokys@users.noreply.github.com> |
3 months ago |
|
|
15a9c99fc6
|
Add typed binding expressions (#21552)
* Update ncrunch config.
* Initial groundwork for typed binding expressions.
- Moved a bunch of stuff from `UntypedBindingExpressionBase` to `BindingExpressionBase`
- Make various APIs accept `BindingExpressionBase` instead of `UntypedBindingExpressionBase`
- Added a typed `IPropertyInfo`
- Added a method on the `CompiledBindingPathBuilder` to build typed property accessors
- Initial basic implementation of `TypedBindingExpression`
* Track values in typed binding expression.
* Support binding mode in typed binding expression.
* Add typed binding expression benchmarks.
Add Setup/Values benchmarks comparing the typed binding expression
against the untyped CompiledBinding (as emitted by the XAML compiler
today) and the reflection-based Binding.
Writing the benchmarks surfaced that TypedBindingExpression never
detached: it had no Dispose override, so disposing a binding (or
rebinding the same property) leaked its PropertyChanged subscriptions
and left it registered in the value store. Wire up disposal mirroring
UntypedBindingExpressionBase: stop, detach handlers, remove from the
value store and frame. This required widening
IBindingExpressionSink.OnCompleted from UntypedBindingExpressionBase to
BindingExpressionBase. Also fix a nullable warning that broke the
Release build.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@
* Don't box value in IBindingExpressionSink.OnChanged.
Instead notify the sink of what's changed and let the sink read the value boxed or unboxed.
* Move `IValueEntry` to `BindingExpressionBase`
* Fall back to BindingExpression.
Make `TypedPropertyElement` derive from `PropertyElement` and fall back to creating a standard boxing `BindingExpression` if any of the requirements for a typed binding expression are not met.
* Don't use typed expressions for DataContext.
* Emit typed binding expression from XAML compiler.
When a compiled binding path is shape-eligible (single CLR property on a
reference-type source, no transforms, instance getter) the compiler now
emits a call to the typed CompiledBindingPathBuilder.Property<TSource,
TResult> overload, producing a TypedPropertyElement that the runtime
turns into a non-boxing TypedBindingExpression<TSource, TValue>. Other
shapes continue to use the existing untyped emission path, and runtime
fallback to BindingExpression still kicks in when modifiers (Source,
Converter, StringFormat, etc.) make the typed expression unsuitable.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
* Add failing tests for TwoWay typed binding source echo.
TypedBindingExpression writes the source value back to the source both on
attach and whenever the source raises a change: pushing the value to the
target re-enters OnTargetPropertyChanged, which (in TwoWay mode) calls
WriteValueToSource with the value that just arrived from the source.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* Don't echo source value back to source in TwoWay typed binding.
When TypedBindingExpression pushed the source value to the target, the
resulting target PropertyChanged re-entered OnTargetPropertyChanged which,
in TwoWay mode, wrote the value straight back to the source - a redundant
round-trip on every attach and every source-originated change.
Guard the source->target push with a flag and skip WriteValueToSource while
it is set, so only genuine target changes are written back to the source.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* Address typed binding code-review follow-ups.
- Reset _isRunning when a typed binding is unsubscribed so the expression
can be restarted (and re-subscribe to its source) if the value store
reactivates the entry later, matching UntypedBindingExpressionBase.Stop().
- Remove a stray `using static PropertySetSnapshot` import.
- Extract the duplicated IValueEntry value-unwrapping logic (shared by
EffectiveValue<T> and DirectPropertyBase) into IValueEntry.TryGetValue.
- Drop the unreachable UpdateSourceTrigger NotSupportedException in
CreateTypedExpression; CanUseTypedBindingExpression already constrains it.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* Fix TypedBinding_Values benchmark build error.
The typed binding path was built with a single-argument `Property(propertyInfo)`
call, which has no matching overload, so the benchmark project did not compile.
Use the same typed three-argument overload as TypedBinding_Setup so the benchmark
exercises the TypedPropertyElement path.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* Skip typed binding expression for data-validation properties.
TypedBindingExpression does not support data validation, but the eligibility
check didn't account for it, so a directly-assignable single-property DataContext
binding to a validation-enabled target (e.g. TextBox.Text, NumericUpDown.Value)
would take the typed path and silently drop validation errors.
Fall back to the untyped BindingExpression when the target property enables data
validation. Data validation support in the typed expression can be added as a
follow-up.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* Clarify that data validation is not supported.
* Address typed binding review comments.
- React to null/empty PropertyChanged.PropertyName ("all properties
changed") in the typed expression, matching the untyped path.
- Swallow source getter exceptions raised during PropertyChanged.
- Fall back to the untyped path for non-StyledElement targets, read-only
sources and wider target types in TwoWay/OneWayToSource modes.
- Fix a stray space in an exception message.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* Share TypedBindingExpression.Attach validation across instantiations.
Factor the validation logic (most notably the exception string
formatting) out of the generic Attach method into a non-generic static
helper. It only uses typeof(TValue), not TValue, so sharing it avoids
duplicating the code per generic instantiation, a meaningful NativeAOT
size saving (~3.3 KB => ~2.5 KB per instantiation).
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* Update API suppressions.
These APIs are in a `[PrivateApi]`.
* Use cached boolean boxes in typed binding expression.
Merging main brought in the cached boxed booleans emitted for compiled
binding property getters (#21065), but bindings that now take the typed
binding expression path don't go through that getter: the value is boxed
in TypedBindingExpression.GetUntypedValue when the target property isn't
strongly typed (e.g. binding a bool to TextBlock.Tag). Box booleans via a
shared cache there too, restoring the no-allocation-per-read behaviour.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QkxawATDHa6rbPaDmPCLHZ
* Extract the whole TypedBindingExpression.Attach body into AttachCore.
|
3 months ago |
|
|
38402fc046
|
Fix VirtualizingStackPanel offset when scrolling to variable-sized items (#21975)
* Fix VirtualizingStackPanel offset when scrolling to variable-sized items
* Remove the `isScrollIntoView` parameter.
* Tweak now-failing test.
Change the the test to check that the element is outside of the viewport, instead of asserting its exact coordinates - that's the important part.
* Retrigger CI.
Azure Pipelines never queued a build for
|
3 months ago |
|
|
33b288ffd6
|
Fix multiple ScrollContentPresenter.BringDescendantIntoView calls (#22001)
* Add failing test for ScrollContentPresenter * Fix ScrollContentPresenter multiple BringDescendantIntoView * Update src/Avalonia.Controls/Presenters/ScrollContentPresenter.cs Co-authored-by: Steven Kirk <grokys@users.noreply.github.com> --------- Co-authored-by: Steven Kirk <grokys@users.noreply.github.com> |
3 months ago |
|
|
97dd7857fd
|
Implement TopLevel.OpenedPopups (#22074)
* Implement TopLevel.OpenedPopups * Delete Headless `GetOpenPopups` * Reorganize popup tests between Headless/Primitives layers Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> * Add Popup.OpenedPopups to keep opened popups in tree structure Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> * Help NUnit suppressing CS8777 * Update suppresions --------- Co-authored-by: Claude Opus 5 <noreply@anthropic.com> |
3 months ago |
|
|
a13617dfdf
|
Use ItemTemplate for ComboBox's selection box for controls (#21937)
* Add failing tests for SelectionBoxItem with a control * Use ItemTemplate for ComboBox's selection box for controls * Add failing selection box tests when properties change * Update selection box when its template changes |
3 months ago |
|
|
6d1c94085c
|
Revert "fix(controls): stop HotKeyManager from executing on hidden controls (…" (#22071)
This reverts commit
|
3 months ago |
|
|
27667c71d0
|
Fix - Invalidate image measure when DrawingImage source invalidates (#22028)
* invalidate image measure when IAffectsRender source invalidates * compare drawing image bounds when checking for measure invalidation * addressed nit * use dispatcher run overload in test * gate subscription behind attachment * fix typo * add one more attached check * nit if style |
3 months ago |
|
|
ba2c3416bd
|
Handle clipboard exceptions in TextBox/SelectableTextBlock (#22052)
|
3 months ago |
|
|
6625f70671
|
[Feature] Add Flex Panel (#20263)
* add flex panel control * add flex panel tests * increase flex panel sample item count * update namespace style to block namespaces * fix build * rename flex enums * fix FlexViewModel enum values * remove allocations in flexpanel measure/arrange * flexpanel - measure even if mult is 0 * addressed review * use numberstyles * add locale tests * simplified state --------- Co-authored-by: Julien Lebosquain <julien@lebosquain.net> |
3 months ago |
|
|
f43b77e52f
|
Fix TreeViewItem.BringIntoView (#21918)
|
3 months ago |
|
|
7f8dd8e6bd
|
Fix VirtualizingStackPanel ScrollToEnd with variable-sized items (#22014)
* Fix VirtualizingStackPanel ScrollToEnd with variable-sized items * Refine VirtualizingStackPanel ScrollToEnd regression test Keep the initial viewport before the variable-sized trailing items and exercise ScrollToEnd directly. --------- Co-authored-by: Emmanuel Hansen <emmausssss@gmail.com> |
3 months ago |
|
|
7f456057cd
|
Raise TopLevel.Closed from managed Dispose() paths (#22045)
TopLevel teardown (HandleClosed) was only ever triggered by the backend invoking ITopLevelImpl.Closed. Browser, iOS, Android, macOS and the offscreen (designer previewer) impls never raise it from Dispose(), so EmbeddableControlRoot.Closed was never raised there and StopRendering() was never reached - the top level stayed registered in MediaContext forever. Make teardown idempotent behind EnsureClosed() and call it from the managed Dispose() paths (EmbeddableControlRoot, OffscreenTopLevel, PopupRoot). The guard lives in a new non-virtual entry point because WindowBase and Window override HandleClosed and run side effects before calling base. Also drop ChoreographerTimer's view-visibility gate on Android. It predates the render timer rewrite and vetoed ticks that DefaultRenderLoop had explicitly asked for, so the synchronous compositor round-trip in HandleClosed (Renderer.Dispose -> MediaContext.SyncDisposeCompositionTarget) could never complete once the view had unsubscribed - deadlocking every activity destroy. DefaultRenderLoop already owns the sleep/wake state machine, driven by StartRendering/StopRendering, which makes the extra gate redundant. Verified at runtime on X11, Wayland, Win32, macOS, Headless, Browser (WASM), Android and iOS: Closed fires exactly once per teardown, MediaContext returns to baseline, and platform-initiated closes still fire exactly once. Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com> |
3 months ago |
|
|
37f3e607a6
|
Disconnect template descendants hosted inside Viewbox when the template changes (#21879)
* Add failing test for template child presented inside Viewbox not being reparented on template change When a ControlTemplate contains Viewbox > ContentPresenter presenting a control that outlives the template, swapping the template throws "The control already has a visual parent" because the old presenter never releases the presented control. Repro for #9551. * Forward TemplatedParent to Viewbox's internal container so template teardown reaches its subtree Viewbox hosts its Child inside an internal ViewboxContainer visual that is a visual child but not a logical child of the Viewbox. Template teardown (TemplatedControl.ApplyTemplate) finds descendants to disconnect via GetTemplateDescendants, a visual-tree walk that stops recursing at any visual whose TemplatedParent is null. ViewboxContainer never had a TemplatedParent, so the walk stopped at it and template descendants hosted inside the Viewbox (e.g. a ContentPresenter) never had their TemplatedParent cleared. Their template bindings therefore stayed live, the old ContentPresenter kept the presented control as its visual child, and re-presenting that control in the new template threw "The control already has a visual parent". Forward the Viewbox's TemplatedParent to the container, restoring the invariant that every template descendant is reachable through visuals whose TemplatedParent is non-null. Null is deliberately not forwarded: teardown clears the Viewbox's TemplatedParent while iterating lazily, and forwarding null would prune the walk before it reaches the container's subtree; the walk clears the container's TemplatedParent itself instead. Fixes #9551 * Trim down comment --------- Co-authored-by: Julien Lebosquain <julien@lebosquain.net> |
3 months ago |