public static void DestroyYMuxInMainThread() { var rect = new Mux.Markup.RectTransform(); var source = new Source { Property = 0 }; var binding = new Binding("Property", BindingMode.OneWay, null, null, null, source); rect.Y.SetBinding(Mux.Markup.RectTransformLayout.BindingContextProperty, binding); rect.DestroyMuxInMainThread(); source.Property = 1; Assert.AreEqual(0, rect.Y.BindingContext); }