-
Notifications
You must be signed in to change notification settings - Fork 114
/
DefaultIndicatorItemStyles.cs
31 lines (27 loc) · 1.11 KB
/
DefaultIndicatorItemStyles.cs
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
using Xamarin.Forms;
namespace PanCardView.Controls.Styles
{
public static class DefaultIndicatorItemStyles
{
private static Style _defaultSelectedIndicatorItemStyle;
private static Style _defaultUnselectedIndicatorItemStyle;
static DefaultIndicatorItemStyles()
{
}
public static Style DefaultSelectedIndicatorItemStyle
=> _defaultSelectedIndicatorItemStyle ?? (_defaultSelectedIndicatorItemStyle = new Style(typeof(Frame))
{
Setters = {
new Setter { Property = VisualElement.BackgroundColorProperty, Value = Color.White.MultiplyAlpha(.8) }
}
});
public static Style DefaultUnselectedIndicatorItemStyle
=> _defaultUnselectedIndicatorItemStyle ?? (_defaultUnselectedIndicatorItemStyle = new Style(typeof(Frame))
{
Setters = {
new Setter { Property = VisualElement.BackgroundColorProperty, Value = Color.Transparent },
new Setter { Property = Frame.BorderColorProperty, Value = Color.White.MultiplyAlpha(.8) }
}
});
}
}