add account page layout
This commit is contained in:
@ -15,25 +15,34 @@
|
||||
</ContentPage.ToolbarItems>
|
||||
|
||||
<ContentPage.Content>
|
||||
<TableView Intent="Settings">
|
||||
<TableSection>
|
||||
<ui:OptionEntryCell Title="{r:Text AccountName}"
|
||||
Text="{Binding AccountName, Mode=TwoWay}"
|
||||
Keyboard="Text" Placeholder="{r:Text AccountNamePlaceholder}"/>
|
||||
<ui:OptionTextCell Title="{r:Text Icon}"
|
||||
Detail="{Binding AccountIcon}"/>
|
||||
<TableView Intent="Settings" HasUnevenRows="True">
|
||||
<TableSection Title=" ">
|
||||
<ui:OptionEditorCell Title="{r:Text AccountName}" Height="120" FontSize="20"
|
||||
Icon="pencil.png"
|
||||
Text="{Binding AccountName, Mode=TwoWay}"
|
||||
Keyboard="Text" Placeholder="{r:Text AccountNamePlaceholder}"/>
|
||||
<ui:OptionSelectCell Title="{r:Text Icon}" Height="44" Icon="face.png"
|
||||
Detail="{Binding AccountIcon}"/>
|
||||
<ui:OptionSelectCell Title="{r:Text Category}" Height="44" Icon="project.png"
|
||||
Detail="{Binding Category}"/>
|
||||
</TableSection>
|
||||
<TableSection>
|
||||
<ui:OptionEntryCell Title="{r:Text Balance}"
|
||||
<TableSection.Title>
|
||||
<OnPlatform x:TypeArguments="x:String" Android=" "/>
|
||||
</TableSection.Title>
|
||||
<ui:OptionEntryCell Title="{r:Text Balance}" Height="44" Icon="sackdollar.png"
|
||||
Text="{Binding Balance, Mode=TwoWay}"
|
||||
Keyboard="Numeric" Placeholder="{r:Text BalancePlaceholder}"/>
|
||||
<ui:OptionTextCell Title="{r:Text Currency}"
|
||||
<ui:OptionTextCell Title="{r:Text Currency}" Height="44" Icon="dollar.png"
|
||||
Detail="{r:Text CNY}"/>
|
||||
</TableSection>
|
||||
<TableSection>
|
||||
<ui:OptionEntryCell Title="{r:Text Memo}"
|
||||
Text="{Binding Memo, Mode=TwoWay}"
|
||||
Keyboard="Plain" Placeholder="{r:Text MemoPlaceholder}"/>
|
||||
<TableSection.Title>
|
||||
<OnPlatform x:TypeArguments="x:String" Android=" "/>
|
||||
</TableSection.Title>
|
||||
<ui:OptionEditorCell Title="{r:Text Memo}" Height="120" Icon="note.png"
|
||||
Text="{Binding Memo, Mode=TwoWay}"
|
||||
Keyboard="Plain" Placeholder="{r:Text MemoPlaceholder}"/>
|
||||
</TableSection>
|
||||
</TableView>
|
||||
</ContentPage.Content>
|
||||
|
@ -42,12 +42,16 @@ namespace Billing.Views
|
||||
private readonly Account account;
|
||||
|
||||
public Command CheckAccount { get; }
|
||||
public Command SelectIcon { get; }
|
||||
public Command SelectCategory { get; }
|
||||
|
||||
public event EventHandler<AccountEventArgs> AccountChecked;
|
||||
|
||||
public AddAccountPage()
|
||||
{
|
||||
CheckAccount = new Command(OnCheckAccount);
|
||||
SelectIcon = new Command(OnSelectIcon);
|
||||
SelectCategory = new Command(OnSelectCategory);
|
||||
InitializeComponent();
|
||||
}
|
||||
|
||||
@ -78,6 +82,16 @@ namespace Billing.Views
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
private void OnSelectIcon()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
private void OnSelectCategory()
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
public class AccountEventArgs : EventArgs
|
||||
|
Reference in New Issue
Block a user