I'm writing a wrapper class basically to enable only few of the properties and events from the RadTreeView control.
i want to enable the events
Selected
="radTreeView1_Selected" Expanded="radTreeView1_Expanded" Collapsed="radTreeView1_Collapsed"
of the RadTreeView control in my wrapper class.
here is my wrapper class.
public
class TngTreeView : TngBaseControl
{
#region
Constructors
static TngTreeView()
{
DefaultStyleKeyProperty.OverrideMetadata(
typeof(TngTreeView), new FrameworkPropertyMetadata(typeof(TngTreeView)));
RegisterDependencyProperties(
typeof(TngTreeView), typeof(RadTreeView));
}
public TngTreeView()
{
InternalFrameworkElement =
new RadTreeView();
this.AddVisualChild(InternalFrameworkElement);
}
#endregion
#region
Internal Control
private RadTreeView TreeView
{
get
{
return InternalFrameworkElement as RadTreeView;
}
}
public RadTreeView InternalControl
{
get
{
return TreeView;
}
set
{
InternalControlSetter(TreeView,
value);
}
}
#endregion
#region
Property: ToolTip
public string ToolTip
{
get { return (string)TreeView.GetValue(RadTreeView.ToolTipProperty); }
set { TreeView.SetValue(RadTreeView.ToolTipProperty, value); }
}
#endregion
}
appreciate your help
Manjerekar Rao