44 xmlns =" http://schemas.microsoft.com/dotnet/2021/maui"
55 xmlns : x =" http://schemas.microsoft.com/winfx/2009/xaml"
66 xmlns : converter =" clr-namespace:Maui.FreakyControls.Converters"
7+ xmlns : fc =" clr-namespace:Maui.FreakyControls"
78 xmlns : freakyEffects =" clr-namespace:Maui.FreakyEffects.TouchEffects;assembly=Maui.FreakyEffects"
89 x : Name =" this"
9- freakyEffects:TouchEffect.Color=" {Binding NativeAnimationColor, Source={x:Reference this}}"
10+ freakyEffects:TouchEffect.Color=" {Binding NativeAnimationColor, Source={x:Reference this}, x:DataType=fc:FreakyButton, x:DataType=fc:FreakyButton }"
1011 HeightRequest =" 55" >
1112 <ContentView .Resources>
1213 <converter : InverseBoolConverter x : Key =" InverseBoolConverter" />
1617 <TapGestureRecognizer Tapped =" Button_Tapped" />
1718 </ContentView .GestureRecognizers>
1819 <Border
19- Padding =" {Binding Padding, Source={x:Reference this}}"
20- BackgroundColor =" {Binding BackgroundColor, Source={x:Reference this}}"
21- Stroke =" {Binding BorderColor, Source={x:Reference this}}"
22- StrokeThickness =" {Binding BorderWidth, Source={x:Reference this}}" >
20+ Padding =" {Binding Padding, Source={x:Reference this}, x:DataType=fc:FreakyButton }"
21+ BackgroundColor =" {Binding BackgroundColor, Source={x:Reference this}, x:DataType=fc:FreakyButton }"
22+ Stroke =" {Binding BorderColor, Source={x:Reference this}, x:DataType=fc:FreakyButton }"
23+ StrokeThickness =" {Binding BorderWidth, Source={x:Reference this}, x:DataType=fc:FreakyButton }" >
2324 <Border .StrokeShape>
24- <RoundRectangle CornerRadius =" {Binding CornerRadius, Source={x:Reference this}}" />
25+ <RoundRectangle CornerRadius =" {Binding CornerRadius, Source={x:Reference this}, x:DataType=fc:FreakyButton }" />
2526 </Border .StrokeShape>
2627 <Grid
2728 x : Name =" mainGrid"
2829 Padding =" 5,0,5,0"
2930 BackgroundColor =" Transparent"
3031 ColumnDefinitions =" Auto, 3*, Auto"
31- ColumnSpacing =" {Binding Spacing, Source={x:Reference this}}"
32+ ColumnSpacing =" {Binding Spacing, Source={x:Reference this}, x:DataType=fc:FreakyButton }"
3233 HorizontalOptions =" Fill" >
3334 <ContentView
3435 Grid.Column=" 0"
3536 BackgroundColor =" Transparent"
3637 CascadeInputTransparent =" True"
37- Content =" {Binding LeadingIcon, Source={x:Reference this}}"
38- HeightRequest =" {Binding IconSize, Source={x:Reference this}}"
39- IsVisible =" {Binding LeadingIcon, Converter={StaticResource ContentToInvisibilityConverter}, Source={x:Reference this}}"
38+ Content =" {Binding LeadingIcon, Source={x:Reference this}, x:DataType=fc:FreakyButton }"
39+ HeightRequest =" {Binding IconSize, Source={x:Reference this}, x:DataType=fc:FreakyButton }"
40+ IsVisible =" {Binding LeadingIcon, Converter={StaticResource ContentToInvisibilityConverter}, Source={x:Reference this}, x:DataType=fc:FreakyButton }"
4041 VerticalOptions =" Center"
41- WidthRequest =" {Binding IconSize, Source={x:Reference this}}" />
42+ WidthRequest =" {Binding IconSize, Source={x:Reference this}, x:DataType=fc:FreakyButton }" />
4243
4344 <Label
4445 x : Name =" txtLabel"
4546 Grid.Column=" 1"
46- CharacterSpacing =" {Binding CharacterSpacing, Source={x:Reference this}}"
47- FontAttributes =" {Binding FontAttributes, Source={x:Reference this}}"
48- FontAutoScalingEnabled =" {Binding FontAutoScalingEnabled, Source={x:Reference this}}"
49- FontFamily =" {Binding FontFamily, Source={x:Reference this}}"
50- FontSize =" {Binding FontSize, Source={x:Reference this}}"
51- HorizontalTextAlignment =" {Binding HorizontalTextAlignment, Source={x:Reference this}}"
52- LineBreakMode =" {Binding LineBreakMode, Source={x:Reference this}}"
53- Text =" {Binding Text, Source={x:Reference this}}"
54- TextColor =" {Binding TextColor, Source={x:Reference this}}"
55- TextTransform =" {Binding TextTransform, Source={x:Reference this}}"
56- TextType =" {Binding TextType, Source={x:Reference this}}"
57- VerticalTextAlignment =" {Binding VerticalTextAlignment, Source={x:Reference this}}" />
47+ CharacterSpacing =" {Binding CharacterSpacing, Source={x:Reference this}, x:DataType=fc:FreakyButton }"
48+ FontAttributes =" {Binding FontAttributes, Source={x:Reference this}, x:DataType=fc:FreakyButton }"
49+ FontAutoScalingEnabled =" {Binding FontAutoScalingEnabled, Source={x:Reference this}, x:DataType=fc:FreakyButton }"
50+ FontFamily =" {Binding FontFamily, Source={x:Reference this}, x:DataType=fc:FreakyButton }"
51+ FontSize =" {Binding FontSize, Source={x:Reference this}, x:DataType=fc:FreakyButton }"
52+ HorizontalTextAlignment =" {Binding HorizontalTextAlignment, Source={x:Reference this}, x:DataType=fc:FreakyButton }"
53+ LineBreakMode =" {Binding LineBreakMode, Source={x:Reference this}, x:DataType=fc:FreakyButton }"
54+ Text =" {Binding Text, Source={x:Reference this}, x:DataType=fc:FreakyButton }"
55+ TextColor =" {Binding TextColor, Source={x:Reference this}, x:DataType=fc:FreakyButton }"
56+ TextTransform =" {Binding TextTransform, Source={x:Reference this}, x:DataType=fc:FreakyButton }"
57+ TextType =" {Binding TextType, Source={x:Reference this}, x:DataType=fc:FreakyButton }"
58+ VerticalTextAlignment =" {Binding VerticalTextAlignment, Source={x:Reference this}, x:DataType=fc:FreakyButton }" />
5859
5960 <ActivityIndicator
6061 x : Name =" activityIndicator"
6162 Grid.Column=" 1"
62- HeightRequest =" {Binding ActivityIndicatorSize, Source={x:Reference this}}"
63+ HeightRequest =" {Binding ActivityIndicatorSize, Source={x:Reference this}, x:DataType=fc:FreakyButton }"
6364 HorizontalOptions =" Center"
64- IsRunning =" {Binding IsBusy, Source={x:Reference this}}"
65+ IsRunning =" {Binding IsBusy, Source={x:Reference this}, x:DataType=fc:FreakyButton }"
6566 TranslationY =" 35"
6667 VerticalOptions =" Center"
67- WidthRequest =" {Binding ActivityIndicatorSize, Source={x:Reference this}}"
68- Color =" {Binding BusyColor, Source={x:Reference this}}" />
68+ WidthRequest =" {Binding ActivityIndicatorSize, Source={x:Reference this}, x:DataType=fc:FreakyButton }"
69+ Color =" {Binding BusyColor, Source={x:Reference this}, x:DataType=fc:FreakyButton }" />
6970
7071 <ContentView
7172 Grid.Column=" 2"
7273 BackgroundColor =" Transparent"
7374 CascadeInputTransparent =" True"
74- Content =" {Binding TrailingIcon, Source={x:Reference this}}"
75- HeightRequest =" {Binding IconSize, Source={x:Reference this}}"
76- IsVisible =" {Binding TrailingIcon, Converter={StaticResource ContentToInvisibilityConverter}, Source={x:Reference this}}"
75+ Content =" {Binding TrailingIcon, Source={x:Reference this}, x:DataType=fc:FreakyButton }"
76+ HeightRequest =" {Binding IconSize, Source={x:Reference this}, x:DataType=fc:FreakyButton }"
77+ IsVisible =" {Binding TrailingIcon, Converter={StaticResource ContentToInvisibilityConverter}, Source={x:Reference this}, x:DataType=fc:FreakyButton }"
7778 VerticalOptions =" Center"
78- WidthRequest =" {Binding IconSize, Source={x:Reference this}}" />
79+ WidthRequest =" {Binding IconSize, Source={x:Reference this}, x:DataType=fc:FreakyButton }" />
7980 </Grid >
8081 </Border >
8182</ContentView >
0 commit comments