Author: toshok
Date: 2007-06-25 15:33:32 -0400 (Mon, 25 Jun 2007)
New Revision: 80723
Modified:
trunk/olive/class/agclr/System.Windows/UIElement.cs
Log:
add ZIndex property
Modified: trunk/olive/class/agclr/System.Windows/UIElement.cs
===================================================================
--- trunk/olive/class/agclr/System.Windows/UIElement.cs 2007-06-25 19:27:50 UTC
(rev 80722)
+++ trunk/olive/class/agclr/System.Windows/UIElement.cs 2007-06-25 19:33:32 UTC
(rev 80723)
@@ -60,8 +60,8 @@
IsHitTestVisibleProperty = DependencyProperty.Lookup
(Kind.UIELEMENT, "IsHitTestVisible", typeof (bool));
VisibilityProperty = DependencyProperty.Lookup
(Kind.UIELEMENT, "Visibility", typeof (Visibility));
ResourcesProperty = DependencyProperty.Lookup
(Kind.UIELEMENT, "Resources", typeof (ResourceCollection));
- ZIndexProperty =
DependencyProperty.Lookup(Kind.UIELEMENT, "ZIndex", typeof(int));
- }
+ ZIndexProperty = DependencyProperty.Lookup
(Kind.UIELEMENT, "ZIndex", typeof (int));
+ }
public UIElement () : base (NativeMethods.uielement_new ())
{
@@ -174,6 +174,16 @@
}
}
+ public int ZIndex {
+ get {
+ return (int) GetValue (ZIndexProperty);
+ }
+
+ set {
+ SetValue (ZIndexProperty, value);
+ }
+ }
+
public event EventHandler GotFocus;
public event EventHandler LostFocus;
public event EventHandler Loaded;
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches