-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathiRacingGroupPresenter.cs
More file actions
64 lines (56 loc) · 3.18 KB
/
Copy pathiRacingGroupPresenter.cs
File metadata and controls
64 lines (56 loc) · 3.18 KB
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
using System.Collections;
using System.Windows;
using System.Windows.Controls;
namespace User.CornerSpeed
{
internal class iRacingGroupPresenter : Control
{
public static readonly DependencyProperty ItemSourceProperty = DependencyProperty.Register(nameof (ItemSource), typeof (IEnumerable), typeof (iRacingGroupPresenter), new PropertyMetadata((PropertyChangedCallback) null));
//public static readonly DependencyProperty ScaleProperty = DependencyProperty.Register(nameof (Scale), typeof (double), typeof (iRacingGroupPresenter), new PropertyMetadata((PropertyChangedCallback) null));
public static readonly DependencyProperty UseCacheProperty = DependencyProperty.Register(nameof (UseCache), typeof (bool), typeof (iRacingGroupPresenter), new PropertyMetadata((object) false));
static iRacingGroupPresenter()
{
FrameworkElement.DefaultStyleKeyProperty.OverrideMetadata(typeof (iRacingGroupPresenter), (PropertyMetadata) new FrameworkPropertyMetadata((object) typeof (iRacingGroupPresenter)));
}
public IEnumerable ItemSource
{
get => (IEnumerable) this.GetValue(iRacingGroupPresenter.ItemSourceProperty);
set => this.SetValue(iRacingGroupPresenter.ItemSourceProperty, (object) value);
}
//public double Scale
//{
// get => (double) this.GetValue(iRacingGroupPresenter.ScaleProperty);
// set => this.SetValue(iRacingGroupPresenter.ScaleProperty, (object) value);
//}
public bool UseCache
{
get => (bool) this.GetValue(iRacingGroupPresenter.UseCacheProperty);
set => this.SetValue(iRacingGroupPresenter.UseCacheProperty, (object) value);
}
}
internal class iRacingSubGroupPresenter : Control
{
public static readonly DependencyProperty ItemSourceProperty = DependencyProperty.Register(nameof (ItemSource), typeof (IEnumerable), typeof (iRacingSubGroupPresenter), new PropertyMetadata((PropertyChangedCallback) null));
//public static readonly DependencyProperty ScaleProperty = DependencyProperty.Register(nameof (Scale), typeof (double), typeof (iRacingSubGroupPresenter), new PropertyMetadata((PropertyChangedCallback) null));
public static readonly DependencyProperty UseCacheProperty = DependencyProperty.Register(nameof (UseCache), typeof (bool), typeof (iRacingSubGroupPresenter), new PropertyMetadata((object) false));
static iRacingSubGroupPresenter()
{
FrameworkElement.DefaultStyleKeyProperty.OverrideMetadata(typeof (iRacingSubGroupPresenter), (PropertyMetadata) new FrameworkPropertyMetadata((object) typeof (iRacingSubGroupPresenter)));
}
public IEnumerable ItemSource
{
get => (IEnumerable) this.GetValue(iRacingSubGroupPresenter.ItemSourceProperty);
set => this.SetValue(iRacingSubGroupPresenter.ItemSourceProperty, (object) value);
}
//public double Scale
//{
// get => (double) this.GetValue(iRacingSubGroupPresenter.ScaleProperty);
// set => this.SetValue(iRacingSubGroupPresenter.ScaleProperty, (object) value);
//}
public bool UseCache
{
get => (bool) this.GetValue(iRacingSubGroupPresenter.UseCacheProperty);
set => this.SetValue(iRacingSubGroupPresenter.UseCacheProperty, (object) value);
}
}
}