Multiple bugs

Please report bugs here. If you are unsure whether something is a bug or an expected behavior, please post it on the "Technical Support" forum instead, and wait for a moderator to handle/move the post.
Nick
Posts: 84
Joined: Tue May 30, 2017 9:44 am
Contact:

Multiple bugs

Postby Nick » Thu Apr 19, 2018 12:59 am

First run the application without any changes, to understand UI functionality.

See image bp1.png

Review the code.

To get errors do next steps:

1) Project Binding, file MainPage.xaml.cx, at line number 78, uncomment the block:

/* Begin Block
// Set control MenuSection2 to grid
controlBinding1 = new UCB();
Grid.SetColumn(controlBinding1, 32);
Grid.SetRow(controlBinding1, 20);
Grid.SetColumnSpan(controlBinding1, 10);
Grid.SetRowSpan(controlBinding1, 39);
container.Children.Add(controlBinding1);
//Initialize menu for MenuSection
UCBC ucbc_BC1 = new UCBC(ListHorizotal());
controlBinding1.SetList(ucbc_BC1);
*/ // END Block

2) Project ControlBindingCode, file UCBC.xaml.cs, line 61,
in function (next function put a break point :!: VERY IMPORTANT :!:)

public TemplateInstance ItemsMenuContainerTemplateCode(FrameworkElement arg)
{
TemplateInstance templateInstance = new TemplateInstance();
StackPanel stackPanel = new StackPanel();
stackPanel.Orientation = Orientation.Vertical;
if (this.myList.Orientation == Orientation.Horizontal) // :!: PUT BREAK POINT HERE :!:
{
stackPanel.Orientation = Orientation.Horizontal;
}
this.menuOrientation.Text = "Menu orientation: " + stackPanel.Orientation.ToString();
//
templateInstance.TemplateContent = stackPanel;
return templateInstance;
}
3) Run the solution ( :!: BREAK OINT MUST EXIST :!:)
4) see picture bp2.png (Errors 1,2,3 in picture very hard to describe)

5) Error 4 in code on break point function ItemsMenuContainerTemplateCode !?! try to display coontent menu from blue section
Attachments
bp2.png
bp2.png (53.15 KiB) Viewed 13025 times
bp1.png
bp1.png (58.05 KiB) Viewed 13025 times
Binding.zip
(16.08 KiB) Downloaded 874 times

Return to “Bug Reports”

Who is online

Users browsing this forum: No registered users and 2 guests

 

 

cron