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

982 Коммитов

Автор SHA1 Сообщение Дата
Vsevolod Kukol 9e7be822c1 Merge pull request #624 from mono/linq-opt
[Perf] Misc method groups instead of linq where applicable.
2016-09-27 00:55:44 +02:00
Vsevolod Kukol 6105695e97 Merge pull request #619 from sevoku/extended-dialog-buttons
Extended dialog buttons
2016-09-27 00:48:55 +02:00
Marius Ungureanu bdd56ad5af [Perf] Misc method groups instead of linq where applicable. 2016-09-26 01:16:38 +03:00
Vsevolod Kukol cb0011032f [Wpf] Add Button.LabelColor support 2016-09-22 14:43:43 +02:00
Vsevolod Kukol 91405545f6 Add RichTextView.LineSpacing property 2016-09-20 09:33:29 +02:00
Vsevolod Kukol 0cbe062f88 Add RichTextView.Selectable property 2016-09-20 09:33:20 +02:00
Vsevolod Kukol 8a6db5774e [WPF] Add markup support to RichTextViewBackend 2016-09-20 09:33:13 +02:00
Vsevolod Kukol fb10edf731 [Wpf] Use FlowDocument API to fill RichTextView 2016-09-20 09:33:06 +02:00
Vsevolod Kukol 40f5c55afc [Wpf] Fix strikethrough markup tag in Labels 2016-09-20 09:33:06 +02:00
Vsevolod Kukol 219975cd5a Add Markup support to RichTextView
This includes a new MarkupView widget and a
new MarkupTextFormat to parse marked up
text to be displayed in a RichTextView.
2016-09-20 09:28:40 +02:00
Vsevolod Kukol 52fbb228f5 [Wpf] Add Dialog.DefaultCommand support 2016-09-20 09:06:26 +02:00
Vsevolod Kukol 5711e59cbf [Wpf] Add DialogButton.PackOrigin support 2016-09-19 19:53:51 +02:00
Vsevolod Kukol 7c1185cc5e Merge pull request #567 from sevoku/fix-image-clipboard-conversion
Fix image clipboard conversion
2016-09-10 12:48:26 +02:00
Vsevolod Kukol baedc7a472 [WPF] TreeView: add support to RowActivated event 2016-09-10 11:21:34 +02:00
Vsevolod Kukol 420eeb0229 Merge pull request #490 from henriquemotaesteves/wpf-listbox-rowactivated
[WPF] ListBox and ListView: add support to RowActivated event
2016-09-10 11:15:36 +02:00
Vsevolod Kukol 60156080d3 Merge pull request #538 from skrysmanski/wpf-improve-primary-screen-detection
Improved detection of primary screen by using the appropriate property.
2016-09-10 09:42:39 +02:00
Vsevolod Kukol d6f5decd51 [Windows] Fix WebView DPI awareness 2016-09-08 17:30:40 +02:00
Vsevolod Kukol bf04189699 Merge pull request #616 from mono/webkit-features
WebView fixes / new features
2016-09-08 15:50:07 +02:00
Vsevolod Kukol 0207f0b7d1 [Windows] Fix IDocHostUIHandler marshalling Pt.2 2016-09-08 13:55:10 +02:00
Vsevolod Kukol a0d3f4f51c [Windows] Fix WebBrowser initialization 2016-09-07 18:35:07 +02:00
Vsevolod Kukol 3428174007 [Windows] Fix IDocHostUIHandler marshalling 2016-09-07 16:09:51 +02:00
Vsevolod Kukol d8b6cdc227 [Windows] WebView implements IDocHostUIHandler
Optimize ScrollBars and Custom CSS handling by
implementing the native MSHTML IDocHostUIHandler
interface. This allows to inject CSS without modifying
the DOM structure.
2016-09-07 00:32:31 +02:00
Vsevolod Kukol 54dbaa04c5 New Label.Selectable property
Allows the user to select the text inside a label
if supported by the backend.
2016-09-05 13:28:49 +02:00
Vsevolod Kukol 506cfa8274 Add WebView.ScrollBarsEnabled property
All WebView backends have an internal scrolling
feature and should not be packed into an additional
ScrollView. The new property allows it to disable
the internal scrolling feature.
2016-08-29 10:35:53 +02:00
Vsevolod Kukol 15182ac850 [Wpf] Add WebView.CustomCss support 2016-08-10 17:55:16 +02:00
Vsevolod Kukol c96158da5b Add WebView.CustomCss for CSS style injection 2016-08-10 12:46:26 +02:00
Vsevolod Kukol 2b0b4a730b Add WebView.ContectMenuEnabled property
The native context menu of the WebView widget
can be disabled by setting ContectMenuEnabled
to false.
2016-08-03 12:26:08 +02:00
Vsevolod Kukol 2edea3e49b [Wpf] Hide WebView JS Error messages
Try to acces the MSHTML.IWebBrowser2.Silent
property of the ActiveX WebView component used
by the WPF WebView and enable it if possible.
2016-07-27 18:34:38 +02:00
Vsevolod Kukol f8963b054f [Wpf] Optimize WebView Title handling
Try to retrieve the document title from the
MSHTML Document first and fallback to
the script method if reflection fails.
2016-07-27 18:24:51 +02:00
Vsevolod Kukol ad03af2359 [Wpf] Fix NRE in WebViewBackend 2016-07-27 18:13:01 +02:00
Vsevolod Kukol 5d5cb70220 [Wpf] Add missing HasCompletions implementation
introduced in 228785a905
2016-06-23 10:49:45 +02:00
Jérémie Laval 228785a905 [Xwt] Add HasCompletions property to TextEntry 2016-06-21 17:30:59 -04:00
Vsevolod Kukol a64b65f922 Merge pull request #592 from mono/custom-image-to-bitmap
Fix ToBitmap support for custom drawn images
2016-06-08 15:30:44 +02:00
Lluis Sanchez b54d74e879 Merge pull request #596 from mono/native-windows
Add NativeToolkit support
2016-05-31 09:46:30 +02:00
Lluis Sanchez Gual 4c990b2044 [ListView] Add method for start editing a cell 2016-05-24 11:00:08 +02:00
Jérémie Laval 22a30b1c67 [WPF] Fix calculation for Meanline on WPF.
We were mixing up point and device-independent unit in the equation, convert the former in the latter.
2016-05-23 18:21:34 -04:00
Vsevolod Kukol 2ce7b35654 Add NativeToolkit support
Allows cross toolkit transient dialogs.
2016-05-20 15:40:56 +02:00
Alan McGovern b687c5caec [Xwt.Wpf] Fix RichTextViewBackend.PlainText
The previous implementation returned the raw xml generated by the
RichTextView, but what we actually wanted was the plain text content
of the FlowDocument we generated.
2016-05-09 12:23:03 +01:00
Vsevolod Kukol a57188b568 Remove redundant ConvertToBitmap backend parameter 2016-04-08 17:43:25 +02:00
Vsevolod Kukol b83fad78d3 Fix ToBitmap support for custom drawn images 2016-04-08 16:20:12 +02:00
Vsevolod Kukol 65be4635e7 Update WindowFrameBackend.cs
If you update Width or Height property instead of Size, it's will be change other side size to minimum value
Ex: this.Width = 100; // Height will be 0 now!

(cherry picked from commit 3f26a309a4)

Signed-off-by: Vsevolod Kukol <sevo@xamarin.com>
2016-03-07 14:38:08 +01:00
Vsevolod Kukol 96f24d4f2d [Wpf] Fix remaining Font validation 2016-03-04 12:17:28 +01:00
Vsevolod Kukol c691596be2 Fix cross-toolkit font support in TextLayout Backends
Backends must always validate Xwt.Drawing.Font objects.
2016-03-04 11:57:05 +01:00
Jérémie Laval e7cd86de5b [Wpf] Improve TooltipText implementation to work better with Gtk classic workflow.
This patch does a couple of things:

- Fix NRE when querying TooltipText when no tooltip was set
- Use a real ToolTip instance in place of just setting a string.
- Make sure to hide tooltip when the value is set to null while the tooltip is showing (as is often the case with custom widget based on Canvas that set TooltipText while in a MouseEnter/MouseMove event)

This patch still doesn't solve some issue that works under toolkit. Notably, it still doesn't handle the fact that when the mouse is already on the widget and a tooltip is set in a mouse event for instance, the tooltip showing timer is not started until the mouse goes out and back in again. This seems to only appear once until the tooltip instance has been initialized.
2016-02-19 14:38:48 -05:00
Vsevolod Kukol 82b2666fb6 Merge remote-tracking branch 'origin/master' into image-loader 2016-02-08 15:57:50 +01:00
Jérémie Laval 8ecaf0559a [WPF] Use VisualTreeHelper to check for a widget parent.
Using the Parent property on a FrameworkElement only retrieves the logicial WPF parent of a widget which may not exists. That doesn't prevent the widget from being hosted in a visual hierarchy like on Visual Studio where its hosted in a special COM component.

Thus we switch the code to use VisualTreeHelper which correctly take care of those cases and can return a non-null parent in that case.

This commit also fixes a bunch of sizing issue on WPF when widgets are embedded in native toolkits because checks that relied on HasNativeParent would wrongly fail (like in the `NotifySizeChangeToParent` method).
2016-01-14 16:40:37 -05:00
Jeremie Laval 0dd1e2ca7c [Xwt] Add Meanline property to TextLayout.
As a companion to the Baseline property, Meanline retrieves the distance
between the top of the text layout and the mean line (usually equivalent
to the baseline minus half of the x-height).

This allow to vertically center text in a natural way.
2016-01-13 18:24:06 -05:00
Vsevolod Kukol 5f2faa8b58 Merge remote-tracking branch 'origin/master' into image-loader 2016-01-11 09:34:34 +01:00
Vsevolod Kukol 5dc68628d8 Add new Menu.Font property
(fixes #569)
2016-01-10 19:17:51 +01:00
Vsevolod Kukol 7c2626d2ac [Wpf] Move all DPI handling to Util.cs 2015-12-29 10:50:57 +01:00
Vsevolod Kukol 9afdcf85d1 Merge pull request #542 from skrysmanski/fix-wpf-centering-on-hidpi-screens
Fixed WPF window centering on HiDPI screens
2015-12-29 10:30:27 +01:00
Vsevolod Kukol 9ac7e7573f [Mac][Wpf] Fix clipboard image conversion 2015-12-28 16:20:57 +01:00
Vsevolod Kukol dff62066e2 Add WindowFrame.Name property 2015-12-28 14:11:10 +01:00
steffenWi 4adb26fdc1 Add backend support for Widget.Name
This change is important for UI automation/UI testing tools like Microsoft Test Manager. These tools use the name of a control to identify it, without setting a name, at least Microsoft Test Manager will use the first control of that type that it encounters (for example: the minimize button)

(cherry picked from commit 2f452188da)
Signed-off-by: Vsevolod Kukol <sevo@xamarin.com>
2015-12-28 12:46:00 +01:00
Vsevolod Kukol 3798b65b1f Merge remote-tracking branch 'origin/master' into image-loader 2015-11-20 13:48:11 +01:00
Vsevolod Kukol c5eff99963 [WPF] Fix swapped sizes in high-DPI image scaling 2015-11-20 13:45:40 +01:00
Vsevolod Kukol 8f3b4d0065 Revert "Revert "[WPF] Fix high-DPI image scaling""
This reverts commit 67a15a9ebb.

The change introduced in commit db9497337c
is required for proper HiDPI support. But the scaled sizes are
swapped which causes the regression mentioned in
67a15a9ebb. Fix follows.
2015-11-20 13:40:42 +01:00
Lluis Sanchez Gual 8d8263dc11 Merge remote-tracking branch 'origin/image-loader-fixoverlays' into image-loader 2015-11-13 14:41:14 +01:00
Lluis Sanchez 6a09da7ce5 [WPF] Implement Context.SetStyles 2015-11-13 14:28:56 +01:00
Vinicius Jarina dde73206b1 [Xwt.WPF] Fixed NRW on `RitchTextView.PlainText` property. (WPF) 2015-11-11 09:24:56 -02:00
Vsevolod Kukol 5db89f0b05 [Wpf] Fix themed/custom drawn image support
The internal WpfImage may have no frames only if
a custom draw callback is used. This should be taken
into account when a native image is created. If WpfImage
has no Frames, a new ImageSource must be rendered
using the specified size and draw callback.
2015-11-10 13:23:29 +01:00
Vsevolod Kukol cd27217d6b [Wpf] Implement ToolkitBackend.RenderImage 2015-11-10 13:11:34 +01:00
Marius Ungureanu 0d2ca452e0 Merge pull request #558 from mono/dispatcher-dispose
Use Dispatcher to Dispose of a Window
2015-10-29 13:06:54 +02:00
steffenWi daba5eba20 Use Dispatcher to Dispose of a Window 2015-10-29 13:04:53 +02:00
Vsevolod Kukol f63995358d Fix custom image drawing in multi toolkit environment
DrawingImage must get the Toolkit from the
native image for drawing, since it is not always
the default toolkit.
2015-10-27 08:37:33 +01:00
Vinicius Jarina 9002a4e26e Added ReadOnly and PlainText property to RitchTextBuffer (WPF backend). 2015-10-25 20:11:56 -02:00
Vsevolod Kukol f2968f0911 [WPF] Fix NRE in ImageHandler 2015-10-22 09:10:53 +02:00
Lluis Sanchez Gual d3f00b0fab Merge remote-tracking branch 'origin/master' into image-loader 2015-10-05 17:05:24 +02:00
Vsevolod Kukol 5d3ef27041 [Wpf] Fix build 2015-08-30 19:20:56 +02:00
Vsevolod Kukol d8291820f6 [WPF] Finish RegisterFontFromFile fix
* Always lookup custom fonts
* registered font collection should be static
* Revert AddFontResouceEx removal
2015-08-30 18:16:36 +02:00
Vsevolod Kukol 5c1b453332 Merge branch 'fix-wpf-custom-fonts' of https://github.com/skrysmanski/xwt into skrysmanski-fix-wpf-custom-fonts 2015-08-30 18:01:07 +02:00
Sebastian Krysmanski d3df497b6a More fixes regarding HiDPI displays 2015-07-25 14:19:13 +02:00
Sebastian Krysmanski a07528307b The Screen backend for WPF now returns logical pixels instead of physical pixels as this is how WPF interprets pixels. 2015-07-25 14:18:58 +02:00
Sebastian Krysmanski 72a169993c Unified line endings in WpfDesktopBackend.cs 2015-07-25 14:18:41 +02:00
Lluis Sanchez 582db88974 Merge branch 'master' into image-loader 2015-07-23 23:18:54 +02:00
Vaclav Vancura c45125040f [Icons] [Wpf] New icons 2015-07-21 17:52:56 +02:00
Sebastian Krysmanski dad4d1a547 Improved detection of primary screen by using the appropriate property. 2015-07-20 22:23:29 +02:00
Vsevolod Kukol f635c60d33 [Wpf] Fix NRE in MenuItemBackend (fix #533)
the menu item should always be at least an UIElement.
2015-07-20 19:54:17 +02:00
Sebastian Krysmanski d8c45f89b7 Tabified FontBackendHandler.cs 2015-07-19 18:52:04 +02:00
Sebastian Krysmanski 791de0958e Fixed custom fonts for WPF 2015-07-19 18:21:00 +02:00
Lluis Sanchez 3bb698b4c0 Styles support work
Renamed "theme" into "style". It is now possible to set specific
styles to Image and Context. Fixed rendering issues.
2015-07-13 11:11:12 +02:00
Vsevolod Kukol c5adfed5e2 Consistent DatePicker property naming (Min/Max) 2015-07-03 09:34:46 +02:00
Vsevolod Kukol bce477e5d6 Add Min/MaxDate to DatePicker 2015-07-03 09:10:10 +02:00
Vsevolod Kukol 94f7c69286 Refine DatePicker API
* pass DatePickerStyle to backends
 * add useful constructors
2015-07-03 09:10:10 +02:00
Vsevolod Kukol 9dde3c02dc [Wpf] fix Calendar.MaximumDate 2015-07-02 11:21:39 +02:00
Claudio Rodrigo Pereyra Diaz f0725c855d Rename Calendar MinDate to MinimumDate
Rename Calendar MaxDate to MaximumDate

Signed-off-by: Claudio Rodrigo Pereyra Diaz <claudiorodrigo@pereyradiaz.com.ar>
2015-07-02 11:20:04 +02:00
Claudio Rodrigo Pereyra Diaz 7196fffa81 Remove partial from CalendarBackends
Check that Event calendar is especific event to handle
Clean CalendarBackend in MAC
Check date when Min/Max propertie is set on GTK CalendarBackend

Signed-off-by: Claudio Rodrigo Pereyra Diaz <claudiorodrigo@pereyradiaz.com.ar>
2015-07-02 11:20:04 +02:00
Claudio Rodrigo Pereyra Diaz c97901f84e Check selected date between Min Max on properties change in WPF CalendarBackend 2015-07-02 11:20:03 +02:00
Claudio Rodrigo Pereyra Diaz 7bd9fd9c05 Remove NoMonthChange and DoubleClick from Calendar
Move CalendarBackend from Xwt.Mac to Xwt.Xam.Mac
Override Enable/Disable Event in CalendarBackends

Signed-off-by: Claudio Rodrigo Pereyra Diaz <claudiorodrigo@pereyradiaz.com.ar>
2015-07-02 11:20:03 +02:00
Claudio Rodrigo Pereyra Diaz f3c0349f32 Fix NoMonthChange in WPF CalendarBackend 2015-07-02 11:20:03 +02:00
Claudio Rodrigo Pereyra Diaz 09f51a2f7f Fix Event Calendar on WPF
Implement Min/Max Date on Calendar WPF
Set Calendar properties on WPF for single date selection
2015-07-02 11:20:03 +02:00
Claudio Rodrigo Pereyra Diaz 81ceb2bc93 WPF Calendar implementation
Calendar default date to DateTime.Now
2015-07-02 11:20:03 +02:00
Vsevolod Kukol bd010fd1c9 [Wpf] add new tree cell bounds retrival impl. 2015-07-01 11:08:23 +02:00
Vsevolod Kukol 3db86554a7 Add tree row bounds, position retrival API 2015-07-01 11:06:44 +02:00
Vsevolod Kukol a563bb1685 rename PreviewTextInput event to TextInput
Xwt has no preview events. To stop an event, the Handled property
of the event arguments object should be used.
2015-06-30 17:15:37 +02:00
Jeremie Laval eb15d4f3f9 [Xwt.WPF] Make sure natural size don't override size constraints
When using a TextEntry for instance, setting a WidthRequest of 30 wouldn't
work because, although the rest of the Xwt layout system do take it into
account, the default natural width of 100 for a TextEntry is used for the
last call to Measure on the WPF side which mean it will actually render as if
its width was 100 causing a lot of drawing issues.
2015-06-19 15:52:45 -04:00
Jeremie Laval 2a60250647 [Xwt.WPF] Fix popover style and placement 2015-06-19 15:52:23 -04:00
Jeremie Laval 0eb3b00980 [Xwt.WPF] Make sure the label of a composite button has the right ForegroundColor
If the ForegroundColor of the external button is changed by another mean,
we want anything that depends on it also following that update.
2015-06-19 15:52:04 -04:00
Jérémie Laval 78193f68ad [Xwt.Wpf] Add missing stub 2015-06-11 12:45:43 -04:00
Jérémie Laval d09a252360 [Xwt] Expand on cf3fe0f and let user also setup a custom autocomplete match function.
Implementation included for Xwt.Gtk
2015-06-10 16:15:58 -04:00
Alex Corrado 5b523dc0b5 [WPF] Fix popover positioning with top arrow position
The popover should not obscure the content it is poping under.
This matches the behavior of the Mac backend.
2015-06-01 18:46:48 -05:00
Lluis Sanchez 3815aa6fa5 Fix build 2015-05-18 11:31:54 +02:00
Jérémie Laval cf3fe0f3bc [Xwt] Add simple method to register autocompletion data on entry widgets.
Currently only implemented for the Gtk+ backend.
2015-05-14 15:10:36 -04:00
Jérémie Laval 2cf5df5ef9 [Xwt] Allow Gradient instances to be shared among toolkits using InitForToolkit pattern 2015-05-08 12:32:14 -04:00
Alan McGovern fecebb2267 [Xwt.Wpf] Properly handle TargetTypes
The 'FillDataStore' method uses the 'DataTypes' value to
figure out what values need to be copied over to the data store
which is given to the destination object. If we don't store these
values, no data is copied from the source store to the dest store
and drag/drop fails!

Fixes the ios designer on wpf mode when dragging from the toolbox
to the surface.
2015-04-24 19:36:31 +01:00
Jérémie Laval 98fc856d5d [Xwt] Add property to TextLayout to query its baseline
This allow proper vertical centering of custom drawn text.
2015-04-22 14:46:01 -04:00
Jérémie Laval 801e4f8bae [Xwt] Add support for adding custom font files at runtime.
To use a custom font, you first need to use RegisterFontFromFile method to temporarily add it to the native system catalog. You can then access it through FromName as if it was installed.
2015-03-12 18:19:43 -04:00
Vsevolod Kukol 6d37bb8749 [WPF] Add FocusedRow implementation 2015-03-03 18:49:43 +01:00
Jeremie Laval a288118caa [Xwt.Wpf] Remove change introduced by PR #440 and amended in 43522ad.
Going even further, WPF window can be hosted in a windowless environment
like it seems to happen when embedding the Xwt panel in Visual Studio
which probably use directly Win32 HWND embedding.

Unfortunately this means that the idea of the fix cannot work as-is.
2015-02-26 14:05:55 -05:00
Jeremie Laval 43522ad2b2 [Xwt.Wpf] Fix commit introduced with pull request #440.
The change didn't account for case where widget can be embedded into a
native WPF context and thus the Frontend ParentWindow property being never
set causing a infinite loop of drawing refresh.
2015-02-26 11:55:34 -05:00
Vsevolod Kukol 3c3120c411 Merge pull request #450 from sevoku/font-optimization
Font optimization
2015-02-19 18:01:04 +01:00
henriqueesteves f495676523 [WPF] ListBox and ListView: add support to RowActivated event 2015-02-13 15:17:34 -02:00
Jérémie Laval 1cd38f02d6 Merge branch 'master' into foreign-toolkit-textlayout 2015-02-13 11:34:28 -05:00
Jeremie Laval 5d6f2956d1 [Xwt.WPF] Allow WPF native drawing context to be wrapped 2015-02-09 14:52:53 -05:00
Vsevolod Kukol 35268f7fdc Merge pull request #481 from residuum/treeviewitem
[WPF] Calling TreeStore.Clear() raises exception in ExTreeViewItem
2015-02-04 11:24:21 +01:00
Thomas Mayer 13469653f6 [XWT] Fix for expanded nodes 2015-02-04 11:01:09 +01:00
Vsevolod Kukol 8fa5f90034 Merge pull request #455 from DavidKarlas/wpfUnitTestCrash
[Wpf] Fixing unit tests crash + TreeView.HiddenTree test
2015-02-01 12:15:51 +01:00
Vsevolod Kukol 4020117cfa Merge pull request #409 from sevoku/fix-wpf-canvas-mouse-events
[WPF] fix canvas mouse events
2015-01-26 00:21:40 +01:00
Vsevolod Kukol 6a6de48525 Merge pull request #427 from sevoku/fix-list-cell-events
Add CurrentEventRow to ListView
2015-01-26 00:20:39 +01:00
Vsevolod Kukol f13ec02001 Merge pull request #436 from sevoku/add-wpf-widget-rendering
[Wpf] Add WPFEngine.RenderWidget
2015-01-25 22:53:44 +01:00
Vsevolod Kukol d5772b31d5 Merge pull request #440 from sevoku/wpf-fix-canvas-early-draw
[Wpf] fix Canvas drawing without ParentWindow
2015-01-25 22:52:37 +01:00
Vsevolod Kukol deb6cef2a8 Merge pull request #441 from sevoku/wpf-fix-customwidget
[Wpf] fix XwtWidgetBackend containers support
2015-01-25 22:50:58 +01:00
Vsevolod Kukol 674637dc51 extend key events
* support more keys
* include native key code in KeyEventArgs
2015-01-23 23:14:49 +01:00
Jérémie Laval c6ab7dfcfc [Xwt.Wpf] Also call GetSafeBackend to retrieve TextLayout underlying object with DrawText 2015-01-20 10:07:33 -05:00
Lluis Sanchez c8f7b12812 Merge pull request #448 from residuum/markdown
[WPF] Removed empty Run elements in Markdown
2015-01-19 11:16:07 +01:00
David Karlaš 293d62ef1f [Wpf] Fixing unit tests crash + TreeView.HiddenTree test 2015-01-18 13:50:52 +01:00
Lluis Sanchez 06b7a61ee9 Merge pull request #425 from sevoku/extend-slider
Add Slider stepping, ticks and position support
2015-01-18 10:30:13 +01:00
Vsevolod Kukol c3000f6d41 Add Font.GetAvailableFontFaces for font variations
The new function retrieves all available font variants for
a specific font family.
2015-01-18 00:36:22 +01:00
Vsevolod Kukol a84e9fffbb Add missing Font.Weight values, fix backend maps 2015-01-18 00:02:32 +01:00
Lluis Sanchez aa84f1d877 Merge pull request #415 from residuum/master
[WPF] Window.Fullscreen getter and setter
2015-01-17 09:24:12 +01:00
Lluis Sanchez 0c1bcf5d0f Merge pull request #413 from sevoku/fix-extend-popover
Popover Background Color support + fixes
2015-01-17 09:22:15 +01:00
Thomas Mayer c09fce0503 [WPF] Removed empty Run elements in Markdown
Markdown linebreaks add an empty Run element to the FlowDocument, which
adds a leading whitespace to the next line. This fixes that bug.
2015-01-16 13:57:58 +01:00
Vsevolod Kukol 3b7459ebdb [Wpf] fix XwtWidgetBackend containers support
* fix WPFEngine.HasNativeBackend for XwtWidgetBackend
* CustomWidgetBackend should rearrange its child on size changes.
2015-01-14 20:31:06 +01:00
Vsevolod Kukol 2698500958 [Wpf] fix Canvas drawing without ParentWindow
OnDraw is triggered too early by Wpf when a canvas gets initialized.
Delay drawing until the widget and its parents are registered.
2015-01-14 08:54:33 +01:00
Vsevolod Kukol a3a8ea034e [Wpf] Add WPFEngine.RenderWidget 2015-01-07 14:56:51 +01:00
Vsevolod Kukol 87c91b4843 Add CurrentEventRow to ListView
* same as 9b06b9e but for ListView
* includes Gtk and Mac implementations
* MAC: adds CurrentEventRow for TreeView, too
2014-12-29 00:29:29 +01:00
Vsevolod Kukol be912f00c9 [Wpf] rewrite SliderBackend with new backend API
* add wheel support
 * add tick and tick snapping support
 * add slider position (visual) retrival support
2014-12-22 18:09:16 +01:00
Vsevolod Kukol 1e75a07327 Add Slider stepping, ticks and position support 2014-12-22 17:59:59 +01:00
Thomas Mayer 215130d285 [WPF] Window.Fullscreen getter and setter 2014-12-12 18:18:53 +01:00
Vsevolod Kukol 30c642479b [WPF] fix popover placement 2014-12-12 12:50:16 +01:00
Vsevolod Kukol db3ae84a9f Add popover background color support 2014-12-12 11:49:31 +01:00
Greg Munn 67a15a9ebb Revert "[WPF] Fix high-DPI image scaling"
This reverts commit db9497337c.

Fixes a regression
https://bugzilla.xamarin.com/show_bug.cgi?id=25142
2014-12-09 15:57:18 -05:00
Vsevolod Kukol 71d95aa1a8 [WPF] fix canvas mouse events
Initialize the background of the underlying Panel with a transparent background.
A Panel does not receive mouse events, if no background is set.
2014-12-09 10:31:29 +01:00
Lluis Sanchez Gual db9497337c [WPF] Fix high-DPI image scaling
This should fix issue #401.
2014-11-29 13:16:02 +01:00
Lluis Sanchez 754368bd81 Merge pull request #373 from sevoku/fix-wpf-gtk-placeholdertext-rebase
Fix PlaceholderText placement on WPF and GTK (rebase)
2014-11-16 06:01:42 -05:00
Lluis Sanchez d75bff2616 Merge pull request #318 from henriqueesteves/listviewcolumn-alignment
[GTK,WPF] ListViewColumn: add support to set the alignment of the title
2014-11-16 05:53:07 -05:00
Lluis Sanchez df8316f265 Merge pull request #379 from sevoku/add-invisible-cursor
Add invisible cursor (CursorType.Invisible)
2014-11-16 05:47:29 -05:00
Lluis Sanchez c3de6dddc1 Merge pull request #382 from sevoku/fix-textlayoutbackend-null-string
add null check for text in TextLayoutBackend
2014-11-15 11:46:50 -05:00
thefiddler 72f317d2a2 [WPF] Fix loading of 8bit paletted images
WPF requires a palette to be set when loading paletted images. We need
to maintain the BitmapSource palette in ConvertBitmapTo96DPI().
2014-11-10 15:08:45 +01:00
Alex Corrado 50582723ec [Wpf] Fix issues with PopoverBackend
- De-parent the content when the popover is hidden
- Give the popover a semi-transparent background
 (other backends all have backgrounds- use the same color as Gtk here)
2014-08-29 11:05:38 -05:00
Vsevolod Kukol 912b2d9cab add null check for text in TextLayoutBackend
the text should never be null, because the toolkits require
a string value, when drawing. Otherwise WPF and MAC
throw a NullReferenceException and Gtk prints
a warning to the console (Pango-CRITICAL).
2014-08-22 10:51:12 +02:00
Vsevolod Kukol a995daee8f Add invisible cursor (CursorType.Invisible) 2014-08-13 19:00:01 +02:00
Vsevolod Kukol 72b034067a [WPF] fix PlaceholderText alignment and initialization 2014-08-07 11:39:58 +02:00
Alan McGovern aa0b222700 [Xwt.Wpf] Add ComboBox support to PlaceholderTextAdorner
We also have cases where comboboxes need to be adorned with
placeholder text.
2014-08-06 08:51:40 -04:00
Lluis Sanchez b54931ed6e Merge pull request #348 from residuum/master
[TreeView] [Gtk] [WPF] OnRowCollapsing and OnRowCollapsed implemented
2014-08-03 19:58:28 +02:00
Lluis Sanchez c339e599fc Merge pull request #342 from mono/fix-wpf-context-background
[WPF] Add proper support for default foreground color in TextLayout
2014-08-03 19:56:30 +02:00
Lluis Sanchez 37605b9d09 Merge pull request #265 from DavidKarlas/wpfFrameAlignment
Fixing Issue #263.
2014-08-03 19:52:10 +02:00
Lluis Sanchez dbf1c51277 Merge pull request #253 from DavidKarlas/Issue235
Fixing Issue #235
2014-08-03 19:51:44 +02:00
Vsevolod Kukol fe917e626f Merge remote-tracking branch 'mono/master' into sevoku/add-list-gridlines
Conflicts:
	Xwt/Xwt.Backends/IListBoxBackend.cs
2014-07-18 06:11:33 +02:00
henriqueesteves 0bdd63927f [WPF] Util: fix line endings 2014-07-17 16:39:22 -03:00
henriqueesteves fe65b1b454 [WPF] Util: keep the original formatting 2014-07-17 15:58:02 -03:00
henriqueesteves 5df92a061c Merge branch 'master' into listviewcolumn-alignment 2014-07-16 10:42:31 -03:00
Vinicius Jarina 3727ca8b89 [Xwt.Wpf] Fixed Tree operations on WPF
- InsertBefore / InsertAfter was creating the TreeStoreNode with wrong parent.
- Avoid NRE on GetVisibleItem ( ContainerFromItem can return null, even after UpdateLayout call).
2014-07-15 21:12:07 -03:00
Vinicius Jarina d61381f13c [Xwt.Wpf] Fixed GetPrevious Xwt.WPFBackend. 2014-07-14 22:45:55 -03:00
Vsevolod Kukol 848bb44f6a Rename GridLines property to GridLinesVisible 2014-07-14 12:21:03 +02:00
Lluis Sanchez 47d514e14c Merge pull request #341 from sevoku/extend-webview
extend WebView functionality (incl. all backends)
2014-07-13 18:41:10 +02:00
Thomas Mayer 982985761d TreeView collapse events:
- events Collapsing and Collapsed
- implementation in GTK and WPF
- samples
2014-07-03 00:38:59 +02:00
henriqueesteves 5f9e8ce498 [GTK,WPF] ListViewColumn: add support to set the alignment of the title 2014-06-30 10:17:37 -03:00
Lluis Sanchez 634f16b20f Merge pull request #343 from sevoku/fix-329
[WPF] Fixes #329
2014-06-28 13:31:17 +02:00
Thomas Mayer 229c2a6ab9 Sensitivity for WindowFrame. 2014-06-26 00:57:19 +02:00
Vsevolod Kukol 4003cbef1b [WPF] fix TextEntry PlaceholderText initialization
PlaceholderTextAdorner should be initialized after
the backend widget has bee fully loaded.
(fixes #329)
2014-06-14 18:19:22 +02:00
Vsevolod Kukol b7bd51ceb4 convert ListBox.GridLines to bool
since ListBox has no columns and no vertical grid lines
2014-06-14 17:52:17 +02:00
Lluis Sanchez 820c1eac45 Merge pull request #339 from sevoku/add-list-scroll-to-row
Add ScrollToRow method to ListView/ListBox
2014-06-14 12:17:40 +02:00
Lluis Sanchez b570ec77ad [WPF] Add proper support for default foreground color in TextLayout
The underlying FormattedText object is now regenerated when the
foreground color is changed.
2014-06-13 18:22:52 +02:00
Lluis Sanchez 0c261af652 [WPF] Track api changes
Image.ToImageDescription() now takes an ApplicationContext as argument,
so we need to pass it along everywhere that method is used.
2014-06-13 18:14:52 +02:00
Vsevolod Kukol 93b1d3c4f2 [WPF] implement WebViewBackend.Title using script invoke 2014-06-09 14:08:56 +02:00
Vsevolod Kukol cba46df7c9 extend WebView functionality (incl. all backends)
* load custom html content
* go back/forward, reload, stop loading
* new properties: Title (incl. changed event), LoadProgress, CanGoBack, CanGoForward
* additional navigation and loading events
* add all new functionality to samle apps
* fix Gtk.Windows backend if inside scrolled container

Backend limitations/TODOs:
WPF: custom html doesn't work (wpf bug?)
WPF: Title needs mshtml binding
GTK: WebKit.WebView on resize: content grows but does not shrink
MAC: not tested at all
2014-06-08 19:01:53 +02:00
Vsevolod Kukol 80d4f13373 Add ScrollToRow method to ListView/ListBox 2014-06-06 00:26:08 +02:00
Vsevolod Kukol 6bd2a429e0 Add GridLines property to List/Tree views 2014-06-06 00:11:45 +02:00
Jeremie Laval 6b86f3f7cf Revert "[WPF] Removed support for default text foreground, which was interfering with region foregrounds."
This introduce a regression when drawing normal text and using ctx.SetColor by forcing the color to always be black.

Although the commit did fix an issue, the only way to do it properly and take into account the current context-set color is to defer the creation of the TextFormatted instance until drawing time so that the context-bound color can be passed to TextFormatted constructor as it can't be set afterwards.

This reverts commit db439534ae.
2014-06-05 12:21:39 -04:00
Lluis Sanchez ceb6c059f8 Merge pull request #333 from sevoku/wpf-centered-label-fix
[WPF] center all lines in wrapped centered labels
2014-06-01 18:00:09 +02:00
Lluis Sanchez cb7bcad81b Merge pull request #334 from sevoku/add-text-cursor-selection
Add text cursor selection
2014-06-01 17:59:21 +02:00
Lluis Sanchez 3679120784 Merge pull request #326 from luiscubal/text-editor
XwtPlus.TextEditor-related changes
2014-05-24 10:36:27 +02:00
Lluis Sanchez 6887f4c84d Merge pull request #320 from lytico/WpfFileDlgBug140404
WPF.FileDialogBackend: bug if no file is selected
2014-05-24 10:27:25 +02:00
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
Vsevolod Kukol ebb5bbb50b [WPF] center all lines in wrapped centered labels 2014-05-15 12:18:39 +02:00
Jeremie Laval 653e0cdf20 [WPF] Resize bitmap before drawing if necessary.
When an image is a single bitmap that doesn't have the same intrinsic size as the drawing size, dc.DrawImage makes a very poor job of down/up scaling it.

Thus we handle this manually by using a TransformedBitmap to handle the conversion in a better way when it's needed.
2014-05-12 14:21:26 -04:00
strnadj 8bbcc33844 [WPF] Error when using nested TextEntry in Notebook sample in ScrollView. 2014-04-21 21:19:02 +02:00
Luís Reis cd3bb74c87 [WPF] Use PreviewTextDown/Up instead of normal TextDown/Up so that events such as [Up] key press are detected. 2014-04-15 00:28:31 +01:00
Luís Reis db439534ae [WPF] Removed support for default text foreground, which was interfering with region foregrounds. 2014-04-15 00:27:00 +01:00
Luís Reis a9cbdea8de Merge branch 'master' of github.com:mono/xwt into text-input 2014-04-15 00:24:56 +01:00
lytico 4f0373772e WPF.FileDialogBackend: check if no file selected 2014-04-04 13:36:08 +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
Luís Reis c1a7ee30ea Added PreviewTextInput event with WPF implementation. 2014-03-08 16:15:44 +00: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