-
Notifications
You must be signed in to change notification settings - Fork 18
Expand file tree
/
Copy pathTransferControl.xaml
More file actions
76 lines (72 loc) · 3.28 KB
/
Copy pathTransferControl.xaml
File metadata and controls
76 lines (72 loc) · 3.28 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
65
66
67
68
69
70
71
72
73
74
75
76
<ContentView
x:Class="SecureFolderFS.Maui.UserControls.Browser.TransferControl"
xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:av="clr-namespace:Xe.AcrylicView;assembly=Xe.AcrylicView"
xmlns:av2="clr-namespace:Xe.AcrylicView.Controls;assembly=Xe.AcrylicView"
xmlns:local="clr-namespace:SecureFolderFS.Maui.UserControls.Browser"
xmlns:uc="clr-namespace:SecureFolderFS.Maui.UserControls"
x:Name="ThisControl">
<Grid
x:Name="RootPanel"
Margin="0,0,0,32"
IsVisible="False">
<Grid.Shadow>
<Shadow
Brush="{StaticResource CardFillPrimaryDarkColor}"
Opacity="0.4"
Radius="5" />
</Grid.Shadow>
<av:AcrylicView
Margin="16"
Padding="8"
x:DataType="local:TransferControl"
BindingContext="{x:Reference ThisControl}"
CornerRadius="12"
EffectStyle="{AppThemeBinding Dark={av2:EffectStyle Dark},
Light={av2:EffectStyle Light}}"
HeightRequest="56"
TintColor="{AppThemeBinding Light={StaticResource CardFillPrimaryLightColor},
Dark={StaticResource CardFillPrimaryDarkColor}}"
TintOpacity="0.7">
<av:AcrylicView.GestureRecognizers>
<PanGestureRecognizer PanUpdated="Panel_PanUpdated" />
</av:AcrylicView.GestureRecognizers>
<Grid ColumnSpacing="16">
<Grid.ColumnDefinitions>
<ColumnDefinition />
<ColumnDefinition Width="Auto" />
</Grid.ColumnDefinitions>
<uc:AnimatedRevealLayout
Grid.Column="0"
IsShown="{Binding IsProgressing, Mode=OneWay}"
RevealSide="Left"
Spacing="8"
VerticalOptions="Center">
<uc:AnimatedRevealLayout.RevealContent>
<ActivityIndicator
HeightRequest="32"
IsRunning="{Binding IsProgressing, Mode=OneWay}"
VerticalOptions="Center"
WidthRequest="32" />
</uc:AnimatedRevealLayout.RevealContent>
<uc:AnimatedRevealLayout.MainContent>
<Label
FontSize="16"
LineBreakMode="TailTruncation"
Text="{Binding Title, Mode=OneWay}"
VerticalOptions="Center" />
</uc:AnimatedRevealLayout.MainContent>
</uc:AnimatedRevealLayout>
<Button
Grid.Column="1"
Padding="16,8"
Command="{Binding PrimaryCommand, Mode=OneWay}"
CornerRadius="10"
IsVisible="{Binding IsProgressing, Mode=OneWay, Converter={StaticResource BoolInvertConverter}}"
Style="{StaticResource AccentButtonStyle}"
Text="{Binding PrimaryButtonText, Mode=OneWay}" />
</Grid>
</av:AcrylicView>
</Grid>
</ContentView>