blob: d7bbdbb7dc7a418ec55a4d9155f03da0ad341115 (
plain)
| ofs | hex dump | ascii |
|---|
| 0000 | 21 3c 61 72 63 68 3e 0a 2f 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 31 34 38 35 30 32 33 33 | !<arch>./...............14850233 |
| 0020 | 36 32 20 20 20 20 20 20 20 20 20 20 20 20 20 20 30 20 20 20 20 20 20 20 31 33 32 37 38 20 20 20 | 62..............0.......13278... |
| 0040 | 20 20 60 0a 00 00 02 14 00 00 7d b8 00 00 7d b8 00 00 7d b8 00 00 7d b8 00 00 7d b8 00 00 7d b8 | ..`.......}...}...}...}...}...}. |
| 0060 | 00 00 7d b8 00 00 7d b8 00 00 7d b8 00 00 7d b8 00 00 7d b8 00 00 7d b8 00 00 7d b8 00 00 7d b8 | ..}...}...}...}...}...}...}...}. |
| 0080 | 00 00 90 02 00 00 94 be 00 00 98 64 00 00 98 64 00 00 98 64 00 00 a1 24 00 00 a1 24 00 00 a1 24 | ...........d...d...d...$...$...$ |
| 00a0 | 00 00 a6 56 00 00 a9 5e 00 00 ac c0 00 00 ac c0 00 00 ac c0 00 00 ac c0 00 00 b4 f0 00 00 b7 ee | ...V...^........................ |
| 00c0 | 00 00 b7 ee 0using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
namespace Tango.Touch.Controls
{
public class TouchExpander : ContentControl
{
public CornerRadius CornerRadius
{
get { return (CornerRadius)GetValue(CornerRadiusProperty); }
set { SetValue(CornerRadiusProperty, value); }
}
public static readonly DependencyProperty CornerRadiusProperty =
DependencyProperty.Register("CornerRadius", typeof(CornerRadius), typeof(TouchExpander), new PropertyMetadata(new CornerRadius(3)));
public Object Header
{
get { return (Object)GetValue(HeaderProperty); }
set { SetValue(HeaderProperty, value); }
}
public static readonly DependencyProperty HeaderProperty =
DependencyProperty.Register("Header", typeof(Object), typeof(TouchExpander), new PropertyMetadata(null));
public bool IsExpanded
{
get { return (bool)GetValue(IsExpandedProperty); }
set { SetValue(IsExpandedProperty, value); }
}
public static readonly DependencyProperty IsExpandedProperty =
DependencyProperty.Register("IsExpanded", typeof(bool), typeof(TouchExpander), new FrameworkPropertyMetadata
{
DefaultValue = false,
BindsTwoWayByDefault = true,
DefaultUpdateSourceTrigger = UpdateSourceTrigger.PropertyChanged
});
static TouchExpander()
{
DefaultStyleKeyProperty.OverrideMetadata(typeof(TouchExpander), new FrameworkPropertyMetadata(typeof(TouchExpander)));
}
}
}
|