OK I got inserting and displaying records on my application. I am having problems in displaying my records that I have created in separate textblocks that way I can have a consistent layout for my application when users go to review and browse the items that they created.
I have created these properties.
public int Id { get; set; }
[JsonProperty(PropertyName = "text")]
public string Text { get; set; }
[JsonProperty(PropertyName = "Model")]
public string Model { get; set; }
[JsonProperty(PropertyName = "Year")]
public string Year { get; set; }
[JsonProperty(PropertyName = "VIN")]
public string VIN { get; set; }
[JsonProperty(PropertyName = "Mileage")]
public string Mileage { get; set; }
[JsonProperty(PropertyName = "HCPrice")]
public string HCPrice { get; set; }
[JsonProperty(PropertyName = "MCPrice")]
public string MCPrice { get; set; }
[JsonProperty(PropertyName = "LCPrice")]
public string LCPrice { get; set; }
[JsonProperty(PropertyName = "Detail")]
public string Detail { get; set; }
[JsonProperty(PropertyName = "RTBS")]
public string RTBS { get; set; }
[JsonProperty(PropertyName = "Sold")]
public bool Sold { get; set; }
I want to have a layout that will display all the information that I create in a textblock all at once. these are my textblock names:
<TextBlock Name="TextInput" Canvas.Left="10" TextWrapping="Wrap" Text="TextBox" Canvas.Top="40" Height="31" Width="137"/>
<TextBlock Name="ModelInput" Canvas.Left="152" TextWrapping="Wrap" Text="TextBox" Canvas.Top="40" Height="17"
Width="133"/>
<TextBlock Name="YearInput" Canvas.Left="290" TextWrapping="Wrap" Text="TextBox" Canvas.Top="40" Height="29" Width="130"/>
<TextBlock Name="VINInput" Canvas.Left="527" TextWrapping="Wrap" Text="TextBox" Canvas.Top="10" Width="116"/>
<TextBlock Name="MileageInput" Canvas.Left="527" TextWrapping="Wrap" Text="TextBox" Canvas.Top="47" Width="116"/>
<TextBlock Name="HCPriceInput" Canvas.Left="10" TextWrapping="Wrap" Text="TextBox" Canvas.Top="138" Height="21"
Width="137"/>
<TextBlockName="MCPriceInput" Canvas.Left="152" TextWrapping="Wrap" Text="TextBox" Canvas.Top="138" Width="133"/>
<TextBlock Name="LCPriceInput" Canvas.Left="290" TextWrapping="Wrap" Text="TextBox" Canvas.Top="138" Width="130"/>
<TextBlock Name="DetailInput" Canvas.Left="10" TextWrapping="Wrap" Text="TextBox" Canvas.Top="175" Width="633"
Height="195"/>
I know i will have to do alot of data binding but I am lost in how I will set everything up. Can anyone give me some ideas?