~ubuntu-branches/ubuntu/trusty/moon/trusty

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
/*
 * usercontrol.h:
 *
 * Copyright 2007 Novell, Inc. (http://www.novell.com)
 *
 * See the LICENSE file included with the distribution for details.
 * 
 */

#ifndef __MOON_USERCONTROL_H__
#define __MOON_USERCONTROL_H__

#include <glib.h>

G_BEGIN_DECLS

#include "control.h"

//
// UserControl
//
/* @SilverlightVersion="2" */
/* @ContentProperty="Content" */
/* @Namespace=System.Windows.Controls */
class UserControl : public Control {
protected:
	virtual ~UserControl ();
	
public:
	/* @PropertyType=UIElement,ManagedAccess=Protected */
	static DependencyProperty *ContentProperty;
	
 	/* @GenerateCBinding,GeneratePInvoke */
	UserControl ();
	
	virtual Type::Kind GetObjectType () { return Type::USERCONTROL; }
	
	virtual void OnPropertyChanged (PropertyChangedEventArgs *args);
};

UIElement *user_control_get_content (UserControl *user_control);

G_END_DECLS

#endif /* __MOON_USERCONTROL_H__ */