made simpler
This commit is contained in:
parent
057d7dfdeb
commit
b9c3281866
2 changed files with 0 additions and 19 deletions
|
|
@ -24,7 +24,6 @@
|
|||
</StackLayout>
|
||||
|
||||
<views:MarkdownView x:Name="mdview"
|
||||
Modified="OnDescriptionChanged"
|
||||
HorizontalOptions="FillAndExpand"
|
||||
View.VerticalOptions="CenterAndExpand"
|
||||
Markdown="{Binding Description, Mode=TwoWay}"
|
||||
|
|
|
|||
|
|
@ -25,24 +25,6 @@ namespace BookAStar.Pages
|
|||
BindingContext = model;
|
||||
}
|
||||
|
||||
protected override void OnBindingContextChanged()
|
||||
{
|
||||
base.OnBindingContextChanged();
|
||||
// FIXME WAZA
|
||||
if (BindingContext != null) {
|
||||
var e = ((EditEstimateViewModel)BindingContext);
|
||||
mdview.Markdown = e.Description;
|
||||
// BillListView.ItemsSource = e.Bill;
|
||||
}
|
||||
}
|
||||
|
||||
protected void OnDescriptionChanged (object sender, EventArgs e)
|
||||
{
|
||||
// FIXME Why the Binding don't work?
|
||||
((EditEstimateViewModel)BindingContext).Description = mdview.Markdown;
|
||||
InvalidateMeasure();
|
||||
}
|
||||
|
||||
protected void OnNewCommanLine(object sender, EventArgs e)
|
||||
{
|
||||
var com = new BillingLine() { Count = 1, UnitaryCost = 0.01m };
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue