Граф коммитов

636 Коммитов

Автор SHA1 Сообщение Дата
Vsevolod Kukol e515a12d83 Add cursor position and selection support to TextEntry
* add properties for cursor position and selection bounds
* add SelectedText property (which is writeble to support direct selection changes)
* add SelectionChanged event
* includes ComboBoxTextEntry support

WPF and GTK support is included. Mac has to be added.
2014-05-15 12:53:17 +02:00
lytico 2dfacab67b WPFBackend.KeyboardUtil: use refactoring-proof consts to calculate Key 2014-04-03 04:35:42 +02:00
Alex Corrado 75eedee6ab [WPF] Defer calling Widget.Focus() until it is loaded
This fixes a weird issue where a TextBox would not appear at all
if Focus was called too early.
2014-04-02 17:25:15 -05:00
Jens Dieskau 4ad6a206ae Add three more cursor types
Move, wait and help cursor.
Gtk and WPF only. There are no such standard icons on MacOSX. Mac user will see the standard cursor.
2014-03-18 12:19:41 +00:00
Jens Dieskau 34398e73bb [WPF] Fix false scroll orientation 2014-03-15 18:00:04 +01:00
Lluis Sanchez f89556669c [WPF] Add missing null check
TargetScrollViewer is not set when used in a custom scroll view.
2014-03-05 18:20:14 +01:00
Lluis Sanchez fe71a6ff33 [WPF] Implement new CellView api 2014-02-24 15:12:30 +01:00
Lluis Sanchez ea3ca3beff [WPF] Implement new scrolling api 2014-02-19 19:14:07 +01:00
lytico 8dba28cc52 Wpf.TextEntryBackend: set TextWrapping to Wrap if multiline 2014-02-10 19:54:31 +01:00
lytico 3518d4a3fe Wpf.TextEntryBackend: implement MultiLine 2014-02-10 18:29:22 +01:00
Cody Russell 58e318d067 WebView implementation for WPF. 2014-01-24 12:33:20 -06:00
Lluis Sanchez 5d554be593 [WPF] Implement Scrollbar.ValueChanged
Based on a fix by Marko B.L.
2014-01-23 18:43:17 +01:00
Lluis Sanchez bae32617b6 [WPF] Canvas: Clip the drawing area
Fixes issue when drawing outside the canvas bounds.
2014-01-13 21:19:22 +01:00
Lluis Sanchez 97e388368f [WPF] Additional fix for image patterns 2013-12-12 09:24:19 +01:00
Lluis Sanchez a8e5cbb035 [WPF] Fixed pattern rendering issues 2013-12-11 13:11:53 +01:00
Lluis Sanchez dc519179e9 [WPF] Properly implement WindowFrame.Close 2013-12-03 21:20:55 +01:00
Lluis Sanchez 9cdd1b5aa3 Merge remote-tracking branch 'origin/wpf-fixes'
Conflicts:
	Xwt.WPF/Xwt.WPFBackend/BoxBackend.cs
2013-12-03 21:20:01 +01:00
Lluis Sanchez 189e4ce836 Merge branch 'close-window-fixes'
Conflicts:
	Testing/GtkTestRunner.csproj
	Testing/WpfTestRunner.csproj
2013-12-03 21:02:01 +01:00
Lluis Sanchez 69796cae18 Merge branch '9patch' 2013-12-03 20:53:10 +01:00
Lluis Sanchez d41c0f1b03 [WPF] Fixed 9-patch rendering issues
And added tests.
2013-12-03 20:40:39 +01:00
Lluis Sanchez 812692fb3e [WPF] Bitmap support fixes
Properly implemented image cropping.
Implement GetScaleFactor.
2013-11-29 11:32:52 +01:00
David Karlaš b981726bc0 Fixing Issue #257 WPF part where window.Y = window.Y would move window for 1px. 2013-11-24 16:50:00 +01:00
Alex Corrado 0f6541f648 [WPF] Improve GetScaleFactor and return device-independent pixels from GetMouseLocation
This enables us to use the value of Desktop.MouseLocation to accurately set the
ScreenBounds of a window on WPF.
2013-11-14 14:47:27 -06:00
Lluis Sanchez b2680e123a [WPF] Window close event fixes 2013-11-14 15:31:01 +01:00
Alex Corrado 7b92e6ef15 [WPF] Implement WpfDesktopBackend.GetScaleFactor 2013-11-11 20:45:48 -06:00
Jeremie Laval d410f30c53 [Xwt.Wpf] Don't call CloseRequested machinery when a dialog loop is being ended. 2013-11-07 20:07:11 -05:00
Lluis Sanchez 309a36f6ab CloseRequested event fixes
Changed the meaning of the return value of OnCloseRequested. If it returns
true, the window will be closed. The event args now has an AllowClose
proeprty. Implemented for the mac backend.
2013-11-06 18:29:30 +01:00
Therzok ea83d14278 Explicitly assigned readonly fields and fixed a weird conditional check. 2013-11-01 20:56:14 +02:00
Lluis Sanchez 1392fb54b0 Merge remote-tracking branch 'origin/wpf-fix-window-size' 2013-10-28 19:04:36 +01:00
Lluis Sanchez a785fb084c [WPF] Don't crash if there is no adorner layer for TextEntry 2013-10-28 18:35:46 +01:00
Lluis Sanchez 00f74c5463 [WPF] Don't show the dialog button bar if there are no buttons 2013-10-28 18:35:12 +01:00
Lluis Sanchez 61058215be [WPF] Minor sizing fix for BoxBackend
Looks like after all an UpdateLayout call is required after arranging
each child.
2013-10-28 18:34:44 +01:00
Lluis Sanchez 37f39272e5 [WPF] Changed the way window size is calculated 2013-10-28 15:14:11 +01:00
Lluis Sanchez f9c3f4c0c9 [WPF] Paned sizing improvements
Don't constraint the height of panels in horizontal layouts
(and width on vertical layouts)
2013-10-28 15:06:01 +01:00
Lluis Sanchez 7b100bfccc [WPF] Box sizing optimization
Only recalculate the desired size of children when its location changes.
Don't do it on ArrangeOverride since it may enter on an infinite loop
of arrangements.
2013-10-28 15:05:03 +01:00
Lluis Sanchez cec0318196 [WPF] Fix window sizing issue
The GetSystemMetrics API is known to return incorrect values for window
frame size metrics in some cases, due to a workaround in the Windows API
to support legacy applications running on Aero.
Instead of using that API to calculate the client area of the window,
we now rely on the size returned by the content. This requires some tricks
to force the window to adapt to content size changes.
2013-10-25 20:28:41 +02:00
Lluis Sanchez 42a246b295 [WPF] Better defaults for stepping increments in ScrollView 2013-10-25 12:31:34 +02:00
Lluis Sanchez 51b89a8041 [WPF] Widget allocation optimization
Box: Only measure the child widget when it is first added to the box.
2013-10-25 12:31:02 +02:00
Lluis Sanchez 782df29bb9 [WPF] Fix drag&drop issue
Do an additional DragOver check before dropping, since the Drop event may
come without a DragOver. Also properly initialize the initial drag area.
2013-10-24 17:31:54 +02:00
Lluis Sanchez 5a249be659 [WPF] Vertically center labels 2013-10-22 15:09:47 +02:00
Lluis Sanchez 0a661a0d85 [WPF] Fix sizing issue
It is not necessary to explicitly set the size of a widget when the
a size request is set. The Widget class takes care of it.
2013-10-22 15:05:33 +02:00
Lluis Sanchez f6c3315543 [WPF] Fix Label wrapping issue 2013-10-22 15:04:13 +02:00
Lluis Sanchez 750758c6d8 [WPF] Better spacing for command buttons 2013-10-22 15:00:02 +02:00
Lluis Sanchez 70795bb24e [WPF] Add support for alert dialogs with custom buttons 2013-10-22 14:26:43 +02:00
Lluis Sanchez c0a4f28ba9 [WPF] Properly align text in PasswordEntry 2013-10-15 19:09:53 +02:00
Lluis Sanchez f3626d7405 [WPF] Fix padding and alignment of TextEntry widget 2013-10-15 16:55:23 +02:00
Lluis Sanchez 1b443364cc [WPF] Fix rendering of spinner widget 2013-10-15 16:53:19 +02:00
Lluis Sanchez aa7301af42 [WPF] Implement KeyboardHandler 2013-10-11 15:57:08 +02:00
Lluis Sanchez c7c2e8c232 Fix some issues with mnemonic handling 2013-10-11 11:08:23 +02:00
Alan McGovern e7f611802d [Wpf] Split the declaration to a new line 2013-10-10 14:17:15 -04:00