[SOLVED] canvas Button position + ComboBoxItem problem

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.
Andreas2000
Posts: 12
Joined: Sun Jan 03, 2016 2:19 pm
Location: Berlin, Germany

[SOLVED] canvas Button position + ComboBoxItem problem

Postby Andreas2000 » Sat Jul 09, 2016 11:47 pm

Hello,

I have 2 problems. I create a button and want to position it with Canvas.Left="150" Canvas.Top="30". But it doesn't work. The same method with TextBlock-object or Rectangle-object works fine.
Then I create a ComboBox. But I can't create a ComboxItem. How can I add Items on other way?

best regards Andreas
Attachments
10-07-_2016_09-38-47.gif
10-07-_2016_09-38-47.gif (61.44 KiB) Viewed 11090 times

JS-Support @Userware
Site Admin
Posts: 1142
Joined: Tue Apr 08, 2014 3:42 pm

Re: canvas Button position + ComboBoxItem problem

Postby JS-Support @Userware » Sun Jul 10, 2016 1:26 am

Dear Andreas,

Thanks for your message.

- The issue related to positioning Button controls in a Cancas is a recently-introduced regression and has been fixed in Beta 8.4, which you can download at:

http://forums.cshtml5.com/viewforum.php?f=6

- The ability to add any UI Element inside a ComboBox (rather than just text) is coming soon. It is expected within a few weeks.

Regards
JS-Support

Andreas2000
Posts: 12
Joined: Sun Jan 03, 2016 2:19 pm
Location: Berlin, Germany

Re: canvas Button position + ComboBoxItem problem

Postby Andreas2000 » Sun Jul 10, 2016 2:42 am

Hello JS Support,
Thanks for information and help. The position poblem was fixed. Now it works.
ComboBoxItem problem: ok. I will wait

best regards
Attachments
10-07-_2016_12-37-34.gif
10-07-_2016_12-37-34.gif (20.58 KiB) Viewed 11081 times

JS-Support @Userware
Site Admin
Posts: 1142
Joined: Tue Apr 08, 2014 3:42 pm

Re: canvas Button position + ComboBoxItem problem

Postby JS-Support @Userware » Sun Jul 10, 2016 3:13 am

Thank you.

In the meantime, you can add strings to your ComboBox, either by setting the "ItemsSource" property to a collection of strings, or by setting the "ItemsSource" property to a collection of objects in conjunction with the the "DisplayMemberPath" property to choose which property of the object to display (cf. Showcase sample app) or by adding strings to the "Items" property directly.

Thanks.
Regards
JS-Support

Andreas2000
Posts: 12
Joined: Sun Jan 03, 2016 2:19 pm
Location: Berlin, Germany

Re: canvas Button position + ComboBoxItem problem

Postby Andreas2000 » Sun Jul 10, 2016 3:38 am

Thank you. I will try it in this kind with ComboBox.

In the last minutes I tested a ListBox object. On the attachment you can see the height value will be ignored. Then the height-value is smaller than the list of Items, the ListBox will not be shown correctly . Also the SelectedIndex Attribute doesn't work. I get a error message. I tested also SelectedItem. It's the same.

best regards Andreas
Attachments
10-07-_2016_13-19-38.gif
10-07-_2016_13-19-38.gif (38.36 KiB) Viewed 11079 times

JS-Support @Userware
Site Admin
Posts: 1142
Joined: Tue Apr 08, 2014 3:42 pm

Re: canvas Button position + ComboBoxItem problem

Postby JS-Support @Userware » Sun Jul 10, 2016 4:02 am

The difference is height is due to the fact that the scroll bars are not yet supported in the ListBox of CSHTML5. For the moment, or need to surround your ListBox with a <ScrollViewer/>.

As for the SelectedIndex, this is odd, we are going to look into it. (FYI, the SelectedItem property should work fine)

Thanks.

Regards
JS-Support

Andreas2000
Posts: 12
Joined: Sun Jan 03, 2016 2:19 pm
Location: Berlin, Germany

Re: canvas Button position + ComboBoxItem problem

Postby Andreas2000 » Sun Jul 10, 2016 5:02 am

The ComboBox with a binding works well. Only the preselection doesn't work yet. SelectedItem shows no reaction (but no error message) in my little program.

best regards
Attachments
10-07-_2016_14-58-14.gif
10-07-_2016_14-58-14.gif (8.5 KiB) Viewed 11077 times
10-07-_2016_14-57-41.gif
10-07-_2016_14-57-41.gif (24.11 KiB) Viewed 11077 times

JS-Support @Userware
Site Admin
Posts: 1142
Joined: Tue Apr 08, 2014 3:42 pm

Re: canvas Button position + ComboBoxItem problem

Postby JS-Support @Userware » Mon Aug 29, 2016 6:46 am

Hi,

The ComboBox SelectedItem should now be fixed in Beta 9.1.

You can download it from:

http://forums.cshtml5.com/viewforum.php?f=6

Thank you.

Regards,
JS-Support


Return to “Bug Reports”

Who is online

Users browsing this forum: No registered users and 29 guests

 

 

cron