WIP FileSelector
This commit is contained in:
@@ -4,11 +4,16 @@
|
|||||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||||
xmlns:ui="using:FluentAvalonia.UI.Controls"
|
xmlns:ui="using:FluentAvalonia.UI.Controls"
|
||||||
xmlns:vm="using:Wallet"
|
xmlns:vm="using:Wallet"
|
||||||
Title="Create a new wallet"
|
|
||||||
x:DataType="vm:CreateWalletViewModel"
|
x:DataType="vm:CreateWalletViewModel"
|
||||||
CloseButtonText="Cancel"
|
CloseButtonText="Cancel"
|
||||||
DefaultButton="Primary"
|
DefaultButton="Primary"
|
||||||
PrimaryButtonText="Create">
|
PrimaryButtonText="Create">
|
||||||
|
<ContentDialog.Resources>
|
||||||
|
<x:Double x:Key="PersonPictureSize">144</x:Double>
|
||||||
|
<x:Double x:Key="ButtonSize">36</x:Double>
|
||||||
|
<Thickness x:Key="ButtonMargin">0,0,6,6</Thickness>
|
||||||
|
<CornerRadius x:Key="ButtonCornerRadius">18</CornerRadius>
|
||||||
|
</ContentDialog.Resources>
|
||||||
<ContentDialog.Styles>
|
<ContentDialog.Styles>
|
||||||
<Style Selector="ui|ContentDialog.Write">
|
<Style Selector="ui|ContentDialog.Write">
|
||||||
<Setter Property="IsPrimaryButtonEnabled" Value="True" />
|
<Setter Property="IsPrimaryButtonEnabled" Value="True" />
|
||||||
@@ -53,8 +58,43 @@
|
|||||||
<Grid>
|
<Grid>
|
||||||
<StackPanel
|
<StackPanel
|
||||||
Width="400"
|
Width="400"
|
||||||
|
Margin="0,-24,0,0"
|
||||||
IsEnabled="{Binding !IsActive}"
|
IsEnabled="{Binding !IsActive}"
|
||||||
Spacing="18">
|
Spacing="18">
|
||||||
|
<Grid HorizontalAlignment="Center">
|
||||||
|
<PersonPicture
|
||||||
|
Width="{StaticResource PersonPictureSize}"
|
||||||
|
Height="{StaticResource PersonPictureSize}"
|
||||||
|
DisplayName="{Binding Name}" />
|
||||||
|
<DropDownButton
|
||||||
|
Width="{StaticResource ButtonSize}"
|
||||||
|
Height="{StaticResource ButtonSize}"
|
||||||
|
Margin="{StaticResource ButtonMargin}"
|
||||||
|
Padding="0"
|
||||||
|
HorizontalAlignment="Right"
|
||||||
|
VerticalAlignment="Bottom"
|
||||||
|
HorizontalContentAlignment="Center"
|
||||||
|
VerticalContentAlignment="Center"
|
||||||
|
CornerRadius="{StaticResource ButtonCornerRadius}">
|
||||||
|
<DropDownButton.Styles>
|
||||||
|
<Style Selector="DropDownButton /template/ ui|FontIcon#DropDownGlyph">
|
||||||
|
<Setter Property="IsVisible" Value="False" />
|
||||||
|
</Style>
|
||||||
|
</DropDownButton.Styles>
|
||||||
|
<DropDownButton.Flyout>
|
||||||
|
<MenuFlyout>
|
||||||
|
<MenuItem Header="Import picture" />
|
||||||
|
<MenuItem Header="Remove picture" />
|
||||||
|
</MenuFlyout>
|
||||||
|
</DropDownButton.Flyout>
|
||||||
|
<TextBlock
|
||||||
|
Margin="0,3,0,0"
|
||||||
|
VerticalAlignment="Center"
|
||||||
|
FontFamily="{DynamicResource FluentThemeFontFamily}"
|
||||||
|
FontSize="18"
|
||||||
|
Text="" />
|
||||||
|
</DropDownButton>
|
||||||
|
</Grid>
|
||||||
<StackPanel>
|
<StackPanel>
|
||||||
<TextBlock Margin="0,0,0,6" Text="Name" />
|
<TextBlock Margin="0,0,0,6" Text="Name" />
|
||||||
<TextBox Text="{Binding Name}" Watermark="e.g. Personal" />
|
<TextBox Text="{Binding Name}" Watermark="e.g. Personal" />
|
||||||
|
|||||||
@@ -8,7 +8,7 @@
|
|||||||
<PersonPicture
|
<PersonPicture
|
||||||
Width="144"
|
Width="144"
|
||||||
Height="144"
|
Height="144"
|
||||||
DisplayName="{Binding Value, UpdateSourceTrigger=PropertyChanged}" />
|
DisplayName="{Binding Value}" />
|
||||||
<TextBox
|
<TextBox
|
||||||
MaxWidth="360"
|
MaxWidth="360"
|
||||||
Text="{Binding Value}"
|
Text="{Binding Value}"
|
||||||
|
|||||||
@@ -19,6 +19,17 @@
|
|||||||
<InvokeNavigationViewItemAction SelectedIndex="1" />
|
<InvokeNavigationViewItemAction SelectedIndex="1" />
|
||||||
</DataTriggerBehavior>
|
</DataTriggerBehavior>
|
||||||
</Interaction.Behaviors>
|
</Interaction.Behaviors>
|
||||||
|
<NavigationView.PaneHeader>
|
||||||
|
<Border
|
||||||
|
Margin="12,0,0,0"
|
||||||
|
Padding="12,4,12,4"
|
||||||
|
HorizontalAlignment="Left"
|
||||||
|
VerticalAlignment="Center"
|
||||||
|
Background="{DynamicResource AccentFillColorDefaultBrush}"
|
||||||
|
CornerRadius="12">
|
||||||
|
<TextBlock FontSize="10" Text="BETA PREVIEW 1" />
|
||||||
|
</Border>
|
||||||
|
</NavigationView.PaneHeader>
|
||||||
<NavigationView.PaneCustomContent>
|
<NavigationView.PaneCustomContent>
|
||||||
<Grid RowDefinitions="*,Auto">
|
<Grid RowDefinitions="*,Auto">
|
||||||
<ListBox
|
<ListBox
|
||||||
|
|||||||
Reference in New Issue
Block a user