mirror of
https://github.com/farcasclaudiu/SmartThreadPool.git
synced 2026-06-23 13:00:38 +03:00
Added support for Silverlight and Mono (And more)
Also added: * Join, Choice, and Pipe to SmartThreadPool. * Local performance counters (for Mono, Silverlight, and WindowsCE)
This commit is contained in:
@@ -0,0 +1,41 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Net;
|
||||
using System.Windows;
|
||||
using System.Windows.Controls;
|
||||
using System.Windows.Documents;
|
||||
using System.Windows.Input;
|
||||
using System.Windows.Media;
|
||||
using System.Windows.Media.Animation;
|
||||
using System.Windows.Shapes;
|
||||
|
||||
namespace STPSLDemo
|
||||
{
|
||||
public class Groupbox : ContentControl
|
||||
{
|
||||
public Groupbox()
|
||||
{
|
||||
DefaultStyleKey = this.GetType();
|
||||
}
|
||||
|
||||
public static readonly DependencyProperty HeaderProperty =
|
||||
DependencyProperty.Register("Header", typeof(object), typeof(Groupbox), null);
|
||||
|
||||
public object Header
|
||||
{
|
||||
get { return GetValue(HeaderProperty); }
|
||||
set { SetValue(HeaderProperty, value); }
|
||||
}
|
||||
|
||||
public static readonly DependencyProperty HeaderTemplateProperty =
|
||||
DependencyProperty.Register("HeaderTemplate", typeof(DataTemplate), typeof(Groupbox), null);
|
||||
|
||||
|
||||
public DataTemplate HeaderTemplate
|
||||
{
|
||||
get { return (DataTemplate)GetValue(HeaderTemplateProperty); }
|
||||
set { SetValue(HeaderTemplateProperty, value); }
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user