Bug 10993 - Exception while changing the margin of a widget in the designer
Summary: Exception while changing the margin of a widget in the designer
Status: RESOLVED DUPLICATE of bug 10400
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: Android Designer ()
Version: unspecified
Hardware: PC Windows
: --- normal
Target Milestone: ---
Assignee: Lluis Sanchez
URL:
Depends on:
Blocks:
 
Reported: 2013-03-08 07:50 UTC by Alberto
Modified: 2013-03-12 13:23 UTC (History)
0 users

Tags:
Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
RESOLVED DUPLICATE of bug 10400

Description Alberto 2013-03-08 07:50:19 UTC
I try to change margin from designer:


System.ArgumentException: Widget is not a child of the canvas
   in Xwt.Canvas.RemoveChild(Widget widget)
   in Xamarin.Designer.PropertyEditing.PropertyTableRow.UpdateEditor(Widget newEditor)
   in Xamarin.Designer.PropertyEditing.PropertyTable.RefreshRow(PropertyTableRow row)
   in Xamarin.Designer.PropertyEditing.PropertyTable.RefreshRow(String propertyName)
   in Xamarin.Designer.DesignerPropertyPanel.HandlePropertyChanged(Object sender, ItemPropertyChangedEventArgs e)
   in System.EventHandler`1.Invoke(Object sender, TEventArgs e)
   in Xamarin.Designer.DesignerSession.OnPropertyChanged(DesignerItem item, String propName)
   in Xamarin.AndroidDesigner.AndroidDesignerSession.NotifyPropertyChanged(AndroidDesignerItem item, String propName)
   in Xamarin.AndroidDesigner.AndroidDesignerSession.EndUpdateItem(String parentId, String itemId, XElement itemXml, Boolean internalUpdate, Boolean propagateChanges)
   in Xamarin.AndroidDesigner.AndroidDesignerSession.EndUpdateItem(String parentId, String itemId, XElement itemXml)
   in Xamarin.AndroidDesigner.AndroidDesignerItem.SetProperty(String name, String val)
   in Xamarin.AndroidDesigner.VisualItems.MarginHandle.UpdateProperties(Double dx, Double dy, Boolean commitChanges)
   in Xamarin.Designer.VisualItems.DraggableHandle.OnButtonReleased(ButtonEventArgs args)
   in Xamarin.Designer.DesignerSurface.OnButtonReleased(ButtonEventArgs args)
   in Xwt.Widget.WidgetBackendHost.Xwt.Backends.IWidgetEventSink.OnButtonReleased(ButtonEventArgs args)
   in Xwt.GtkBackend.WidgetBackend.<>c__DisplayClass1e.<HandleButtonReleaseEvent>b__1d()
   in Xwt.Engine.Toolkit.Invoke(Action a)
Comment 1 Lluis Sanchez 2013-03-12 11:31:13 UTC
I can't reproduce this crash. Can you consistently reproduce it?
Comment 2 Lluis Sanchez 2013-03-12 13:23:12 UTC

*** This bug has been marked as a duplicate of bug 10400 ***