code format?

main
Paul Schneider 9 years ago
parent f4e9d9bb86
commit 640dd33b25
1 changed files with 12 additions and 12 deletions

@ -21,25 +21,26 @@
<converters:BooleanToObjectConverter.FalseObject> <converters:BooleanToObjectConverter.FalseObject>
<Style TargetType="Image"> <Style TargetType="Image">
<Setter Property="HeightRequest" Value="20" /> <Setter Property="HeightRequest" Value="20" />
<Setter Property="Source" Value="{extensions:ImageResource BookAStar.Images.Validation.error.png}" /> <Setter Property="Source"
Value="{extensions:ImageResource BookAStar.Images.Validation.error.png}" />
</Style> </Style>
</converters:BooleanToObjectConverter.FalseObject> </converters:BooleanToObjectConverter.FalseObject>
<converters:BooleanToObjectConverter.TrueObject> <converters:BooleanToObjectConverter.TrueObject>
<Style TargetType="Image"> <Style TargetType="Image">
<Setter Property="HeightRequest" Value="20" /> <Setter Property="HeightRequest" Value="20" />
<Setter Property="Source" Value="{extensions:ImageResource BookAStar.Images.Validation.success.png}" /> <Setter Property="Source"
Value="{extensions:ImageResource BookAStar.Images.Validation.success.png}" />
</Style> </Style>
</converters:BooleanToObjectConverter.TrueObject> </converters:BooleanToObjectConverter.TrueObject>
</converters:BooleanToObjectConverter> </converters:BooleanToObjectConverter>
</ResourceDictionary>
</ResourceDictionary>
</ContentPage.Resources> </ContentPage.Resources>
<StackLayout x:Name="mainStackLayout"> <StackLayout x:Name="mainStackLayout">
<Label Text="Description de la ligne de facture" Style="{StaticResource InputLabelStyle}"></Label> <Label Text="Description de la ligne de facture"
Style="{StaticResource InputLabelStyle}"></Label>
<Editor VerticalOptions="FillAndExpand"></Editor> <Editor VerticalOptions="FillAndExpand"></Editor>
<Label Text="Durée de la prestation" <Label Text="Durée de la prestation"
Style="{StaticResource InputLabelStyle}"></Label> Style="{StaticResource InputLabelStyle}"></Label>
<StackLayout Orientation="Horizontal"> <StackLayout Orientation="Horizontal">
<Entry Placeholder="Durée" Keyboard="Numeric" Style="{StaticResource BigEntry}" /> <Entry Placeholder="Durée" Keyboard="Numeric" Style="{StaticResource BigEntry}" />
@ -53,13 +54,12 @@
</Picker> </Picker>
</StackLayout> </StackLayout>
<Label Text="Quantité facturée" Style="{StaticResource InputLabelStyle}"></Label> <Label Text="Quantité facturée" Style="{StaticResource InputLabelStyle}"></Label>
<Entry Text="{Binding Count, Mode=TwoWay}" Placeholder="Quantité" Keyboard="Numeric" <Entry Text="{Binding Count, Mode=TwoWay}" Placeholder="Quantité" Keyboard="Numeric"
Style="{StaticResource BigEntry}"/> Style="{StaticResource BigEntry}"/>
<Label Text="Prix unitaire" Style="{StaticResource InputLabelStyle}"></Label> <Label Text="Prix unitaire" Style="{StaticResource InputLabelStyle}"></Label>
<StackLayout Orientation="Horizontal"> <StackLayout Orientation="Horizontal">
<Entry Text="{Binding UnitaryCostText, Mode=TwoWay}" Placeholder="Prix"
<Entry Text="{Binding UnitaryCostText, Mode=TwoWay}" Placeholder="Prix" Keyboard="Numeric" Style="{StaticResource BigEntry}">
Keyboard="Numeric" Style="{StaticResource BigEntry}" >
<Entry.Behaviors> <Entry.Behaviors>
<behaviors:DecimalValidatorBehavior x:Name="unitCostValidator" /> <behaviors:DecimalValidatorBehavior x:Name="unitCostValidator" />
</Entry.Behaviors> </Entry.Behaviors>
@ -70,7 +70,7 @@
</Entry> </Entry>
<Label Text="€" Style="{StaticResource BigLabel}" HorizontalTextAlignment="Start"/> <Label Text="€" Style="{StaticResource BigLabel}" HorizontalTextAlignment="Start"/>
</StackLayout> </StackLayout>
<Button Text="Valider cette ligne de facture" Command="{Binding ValidateCommand}" <Button Text="Valider cette ligne de facture" Command="{Binding ValidateCommand}"
Clicked="OnValidateClicked"></Button> Clicked="OnValidateClicked"></Button>
</StackLayout> </StackLayout>
</ContentPage> </ContentPage>
Loading…