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

1063 Коммитов

Автор SHA1 Сообщение Дата
Vsevolod Kukol cfdeb95dec [Wpf] Optimize CurrentEventRow implementation
There is no need to look up the DataContext, because the
CellView backend does already know it. Hence pass the current
DataContext instead of the FrameworkElement to the parent Tree/List.
2017-03-27 11:55:40 +02:00
Vsevolod Kukol 7a795ec47e [Wpf] Add CurrentEventRow implementation for Lists 2017-03-27 11:33:29 +02:00
Vsevolod Kukol 2ce23930d4 [Wpf] Fix CanvasCellViewBackend.QueueDraw() 2017-03-27 11:33:29 +02:00
Vsevolod Kukol 05b471ad58 [Wpf] add CheckBoxCellView.Toggled support 2017-03-27 11:33:29 +02:00
Vsevolod Kukol 3070a0e937 [Wpf] Add CellView event implementation 2017-03-27 11:33:29 +02:00
Vsevolod Kukol 07616d9808 Merge remote-tracking branch 'origin/master' into add-popup-window 2017-03-24 19:31:04 +01:00
Alan McGovern a1849cec82 [Xwt] Add a faster way of getting the image size
We want the image size without loading and parsing the entire image
2017-03-20 13:50:18 +00:00
Vsevolod Kukol 2949ae48c9 [Wpf] Track API changes, add IUtilityWindowBackend 2017-03-07 15:47:35 +01:00
Vsevolod Kukol 56b148b50c [Wpf] Add PopupWindow implementation 2017-03-07 15:47:35 +01:00
Vsevolod Kukol 6b90244bb3 Add WindowFrame.BackgroundColor property 2017-03-07 15:46:34 +01:00
Vsevolod Kukol 893898df20 [Wpf] Fix build warnings, remove orphaned code 2017-02-16 01:13:26 +01:00
Lluis Sanchez b4adfcc849 Merge pull request #638 from sevoku/add-widget-bounds
Add ParentBounds and WindowBounds
2017-02-08 17:46:21 +01:00
Vsevolod Kukol 373c40e6f7 Add backend implementations for point translation 2017-02-08 17:14:16 +01:00
Vsevolod Kukol 3ebb71a571 Use ApplicationContext.Toolkit where appropriate
Toolkit.CurrentEngine should only be used if
no ApplicationContext an no direct backend ref
is available.

This fixes usage of a wrong toolkit in some cross-toolkit
scenarios.
2017-02-08 11:25:46 +01:00
Vsevolod Kukol df884ae682 [Wpf] Add default Cancel button support in dialogs 2017-01-03 10:10:43 +01:00
Konrad M. Kruczyński 48a3f298ae Add HasFocus property to Window.
Implemented on all backends. Also some code of Mac backend that seemed to be a
leftover was removed.
2016-12-30 11:10:29 +01:00
Vsevolod Kukol 9a350516f9 [Wpf] Fix ComboBoxEntry.TextEntry backend initialization 2016-12-06 12:15:09 +01:00
Vsevolod Kukol cac49ecfb7 [Wpf] Add IDispatcherBackend support using DispatcherObject.Dispatcher 2016-12-05 12:10:38 +01:00
Vsevolod Kukol 920cad66a4 [Wpf] Add alert dialog default button support 2016-11-30 14:10:02 +01:00
Vsevolod Kukol 5477455771 [Wpf] Add alert dialog options support 2016-11-30 14:09:36 +01:00
Jérémie Laval c3abbeefaa [WPF] Display text-only version of markup in TextCellView
This is a stopgap commit to somewhat render formatted text setup
via the TextCellView's MarkupField property so that something is
at least shown.
2016-11-15 18:30:53 -05:00
Vsevolod Kukol 44b564d929 Merge remote-tracking branch 'origin/webkit-features' 2016-11-04 14:10:46 +01:00
Vsevolod Kukol afcc553721 Add WebView.DrawsBackground 2016-11-04 13:16:51 +01:00
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
Jeffrey Stedfast bcac1af49b Make XS happy 2016-04-11 14:10:25 -04: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
Vaclav Vancura ceb7ccbfb0 [Icons] [WPF] Disabled states for add and remove 2016-01-11 14:25:13 +01: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
Vaclav Vancura 9ac834b3f0 [WPF] New add and remove icons 2015-10-06 21:29:50 +02:00
Lluis Sanchez Gual d3f00b0fab Merge remote-tracking branch 'origin/master' into image-loader 2015-10-05 17:05:24 +02:00
Marius Ungureanu a7e28bf493 Fixup release configs 2015-09-21 15:57:55 +03: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
Vaclav Vancura 9479703b31 [Icons] [Wpf] Dark versions of add and remove icons 2015-08-03 12:47:19 +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
Lluis Sanchez 29610b7253 Merge pull request #492 from mono/appveyor
Appveyor integration
2015-02-23 14:15:12 +01:00
Vsevolod Kukol adb5dd7f63 Add InformationalVersion for automatic NuGet prereleases 2015-02-21 20:14:09 +01:00
Vsevolod Kukol cbda7cdff2 Add NuGet spec files 2015-02-21 20:13:41 +01:00
Vsevolod Kukol 91842586f9 Update AssemblyInfo 2015-02-21 20:13:31 +01: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 c15075d852 [Wpf] optimize CellUtil.cs formatting 2015-02-04 09:52:15 +01:00
Vsevolod Kukol e300240cf7 [Wpf] add TextCellView.Text support 2015-02-04 09:43:45 +01:00
Vsevolod Kukol bb2efd2bed [Wpf] optimize TextCellView factory gen. code 2015-02-04 09:40:30 +01:00
Vsevolod Kukol f2ab45e594 [Wpf] set CellView margins in one place 2015-02-04 09:29:57 +01:00
Vsevolod Kukol d1fc8a2538 [Wpf] add Visibility support to all CellViews 2015-02-04 09:21:05 +01:00
steffenWi b8ecb71c00 [Wpf] Handle an invisible TextCellView in WPF
(cherry picked from commit b8901a4)

Signed-off-by: Vsevolod Kukol <sevo@sevo.org>
2015-02-04 09:17: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
Lluis Sanchez 5c96cd11c0 Merge pull request #410 from sevoku/enable-pdb-in-release
Enable Pdb creation in Release configuration
2015-01-17 09:17:16 +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
Vsevolod Kukol 032ea438b2 Enable Pdb creation in Release configuration 2014-12-11 10:21:19 +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