* feat: add Content and ContentPresenter for ColorPicker
* feat: update according to https://github.com/AvaloniaUI/Avalonia/pull/13073 feedback.
* feat: add HorizontalContentAlignment and VerticalContentAlignment default value to simple theme.
* feat: update documentation wording.
---------
Co-authored-by: Max Katz <maxkatz6@outlook.com>
* fixed incorrect reset of a captured control when moving the pointer over a MenuItem
* format code
---------
Co-authored-by: Max Katz <maxkatz6@outlook.com>
* In `Avalonia.Base`, sealed several classes whose constructors aren't available from public API, and which have no inheritors
* un-sealed class that is inherited from
* Made `Delete` method non-virtual
---------
Co-authored-by: Lehonti Ramos <lehonti@ramos>
* Add failing test for #13064
* Remove Content binding from ScrollViewer template.
Since #10803, the `ScrollContentPresenter.Content` binding is managed internally, not via a binding in the template.
* Assign owner before doing subscriptions.
Fixes#13064.
* Add "EGL_ANGLE_flexible_surface_compatibility" ext check
* Use stackalloc with CreatePBufferFromClientBuffer attributes
* Fix broken API
* Update to latest angle
* Add trimming attributes to the Runtime XAML Loader project
* Create CompilerDynamicDependenciesAttribute with all known dynamic types
* Use master XamlX
* Implement CompilerDynamicDependenciesGenerator to simplify CompilerDynamicDependencies attribute
* Better formatting of generated code
* Be safe about type converters as well
* Remove unnecessary warning
* Also include FindType just in case
* Add Fluent HeaderContentControl theme
* Fix file name, add content template
* Add simple theme for HeaderedContentControl
* Add sample page for HeaderedContentControl in the catalog
* Change the HeaderedContentControl to use a Grid instead of a stack panel for its layout
* Fix template part names
* Fix HeaderedContentControl typename
* Fix the template part type again
* Fix control template names
* Introduce IFilePickerFileTypes to have more control over file types in the native backend
* Update samples page for dialogs
* Rename to IAvnFilePickerFileTypes
* WIP
* Fix disabled popup
* Explicitly dispose AvnString and AvnStringArray + GetNSArrayOfStringsAndRelease
* Fix potential crash
---------
Co-authored-by: Jumar Macato <16554748+jmacato@users.noreply.github.com>
* compute win32 window styles from properties, instead of toggling relevant styles
* save client rect early, before swithing to full screen
* add callbacks for window style and wndproc
* move new options class to Avalonia.Controls
* use toplevel instance to set the callbacks instead
* remove redundant casting
* call wndproc callback before the default handler
* remove unused using
* ensure window state when decorations changed
* move win32 specific delegates
* make Win32SpecificOptions static
* fix build
* replace Set callbacks with Add/Remove callbacks
* fix docs
* only recreate styles when the change isn't caused by a fullscreen update
* In `Avalonia.Dialogs`, added `readonly` to fields that are never modified
* Re-added namespace references
* Removed `readonly` modifier from field which is used as a `ref` value
* Removed `readonly` from yet another field
---------
Co-authored-by: Lehonti Ramos <lehonti@ramos>
And one passing test to confirm that it works when virtualization is enabled.
Co-Authored-By: Jan Kristian Bjerke <956218+jankrib@users.noreply.github.com>
* add hold size to platform settings, reduce hold size
* use class handler for control hold event
* improve holding interaction with textbox
* remove GetHoldSize method
* inprove touch input pointer over detection
* improve hold support in textbox
* fix tests
* remove selection updates on hold
* make pointer event args for holding event internal
---------
Co-authored-by: Max Katz <maxkatz6@outlook.com>
* Trigger CI/CD
* Bugfix: CanResize unused when Width/Height is set
2 problems in X11Window.cs
- In UpdateSizeHints: max and min sizes were set
regardless of _canResize, if preResize is not null
- In Resize, many things are set without checking for _canResize
Added the check for _canResize, which stops the resizing if not forced
(e.g. when a dialog needs a startup size)
Make setting varying max and min exclusively when _canResize is false
---------
Co-authored-by: stepan_govorko <stepan.govorko@jetbrains.com>
* Stop tooltip timer on pointer pressed to avoid hanging tooltips in some cases (i.e. when modal window is opened)
* Hiding tooltip on click
---------
Co-authored-by: Herman Kirshin <herman.kirshin@jetbrains.com>
* Fix HeadlessUnitTestSession creation race condition
* Bind Compositor/MediaContext to a fixed UI thread
* Fix dead lock in AvaloniaTestCase
* Rename Compositor.UIThreadDispatcher to Dispatcher
* fix focus loss issue with autocomplete box
* close dropdown when focus actually moves within the autocompletebox's focus scope
* make GetFocusScope internal for now
* remove GetFocusScope from focus manager
---------
Co-authored-by: Max Katz <maxkatz6@outlook.com>
* TabItem: dispose _ownerSubscriptions when item is detached from visual tree
* TabItem: update of TabStripPlacement moved to TabControl
* TabControl: iterate over ItemsPresenterPart's children instead of calling ContainerFromIndex
* TabItem: SubscribeToOwnerProperties marked as obsolete
---------
Co-authored-by: Dmitry Zhelnin <d.zhelnin@of-group.ru>