1 /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
5 * Copyright 2007 Novell, Inc. (http://www.novell.com)
7 * See the LICENSE file included with the distribution for details.
11 #ifndef __MOON_USERCONTROL_H__
12 #define __MOON_USERCONTROL_H__
21 /* @ContentProperty="Content" */
22 /* @Namespace=System.Windows.Controls */
23 class UserControl
: public Control
{
25 virtual ~UserControl ();
28 /* @PropertyType=UIElement,ManagedAccess=ProtectedInternal */
29 const static int ContentProperty
;
31 /* @GenerateCBinding,GeneratePInvoke */
34 virtual bool IsLayoutContainer () { return true; }
35 virtual void OnPropertyChanged (PropertyChangedEventArgs
*args
, MoonError
*error
);
37 virtual Size
MeasureOverride (Size availableSize
);
38 virtual Size
ArrangeOverride (Size finalSize
);
43 UIElement
*user_control_get_content (UserControl
*user_control
);
47 #endif /* __MOON_USERCONTROL_H__ */