Friday 8 June 2012

ExpressionTextBox in .NET 4.5

The ExpressionTextBox allows you to databind to an argument on your activity and has, up until 4.5, had an optional OwnerActivity attribute which seemed to be optional. Whilst all activities in the framework used it, some custom activities might have omitted it as it worked in 4.0 without needing to be explicitly defined.

Now with .NET 4.5 this attribute is no longer optional – check out what I get if I forget to add it (the 3rd textbox is the one with the missing attribute, and I’m in a C# project)…

Capture

Not only do you get the horrific “Enter a VB expression” text, which sends a chill down my spine each time I see it, you’ll also find that the textbox is read-only if you omit the OwnerActivity attribute. It’s easy to fix though, the following highlighted XAML is all you need to change…

  <sapv:ExpressionTextBox 
Expression="{Binding ModelItem.Body, Converter={StaticResource conv}}"
OwnerActivity="{Binding ModelItem}" .../>

This change in behaviour might be a problem for anyone upgrading their solutions to 4.5, so hopefully someone will find this post useful.

21 comments:

de said...

Interesting Article

Dot Net Training in Chennai

Unknown said...

Very nice and interesting article, thanks for sharing your information... keep rocks....
Java Training in chennai | No 1 Java Training in chennai | Best Dot Net Training institute in chennai

srihariparu said...

It's really an innovative article. Keep to sharing the knowledge..
Mat Lab Project Center in Chennai | IEEE Mat Lab Projects in Velachery

Unknown said...

Thanks for sharing this valuable information. You have posted good and valuable content. Keep sharing.
Final Year Project Center in Chennai | Final Year Project Center in Velachery

srihariparu said...

I have read your blog..Its really an awesome post with valuable content..keep updating.
No.1 Mobile Computing Project Center in Chennai | Best Mobile Computing Project Center in Velachery

srihariparu said...

Thanks for posting your informative and impressive Blog.
No.1 Image Processing Project Center in Chennai | Best Image Processing Project Center in Velachery

Ed Sheeran said...

I strongly believe that there will be great opportunities for those who looked into this area, thanks much for sharing this beautiful article...
CompTIA Security+ Certifications Training in Chennai | Best S+ Exams in Taramani

Richard Majece said...

I am sure that information from this source will be helpful for students in any case. Here you can find quite useful advices about getting better grades.

Unknown said...

Really amazing article with smart and cute content..keep sharing.
Hardware and Networking Certifications Training in Chennai | No.1 Networking Exams in Besant Nagar

navya said...

It is amazing and wonderful to visit your site. Thanks for sharing this information, this is useful to me...
CompTIA Security Plus Certifications Course in Chennai | Best CompTIA Security+ Training in Mandaveli

varma said...

Pretty article! I found some useful information in your blog, it was awesome to read, thanks for sharing this great content to my vision, keep sharing.
CompTIA A Plus Certifications Coaching Center in Chennai | No.1 CompTIA Security+ Training in Pallavaram

Shanthi Cabs said...

Amazing article. Your blog helped me to improve myself in many ways thanks for sharing this kind of wonderful informative blogs in live. I have bookmarked more article from this website. Such a nice blog you are providing ! Kindly Visit Us @ Madurai Travels ! Best Travels in Madurai | Tours and Travels in Madurai

Suresh said...
This comment has been removed by the author.
Unknown said...

Thanks for posting your useful and interesting Blog ...Its really helpful to us,keep updating..
BE Final Year Project Center in Chennai | BE Project Center in Chromepet

Aruna Ram said...

Great article and it is very inspiring to me. I glad to satisfy with your good job. You put the effort is very superb and I always appreciate your unique information. Keep it up.
Pega Training in Chennai
Pega Course in Chennai
Excel Training in Chennai
Corporate Training in Chennai
Embedded System Course Chennai
Linux Training in Chennai
Spark Training in Chennai
Tableau Training in Chennai
Pega Training in Tambaram
Pega Training in Porur

sanjandevan said...

Informative content,thanks for sharing...waiting for next update...
javascript training in chennai
javascript course in chennai
javascript training institute in chennai
javascript training in Thiruvanmiyur
javascript training in Tambaram
javascript training in chennai
core java training in chennai
Photoshop Classes in Chennai
Manual Testing Training in Chennai
Drupal Training in Chennai

arshiya said...

Very nice and interesting blog. You can also check my articles as well.
digital marketing updates
difference between big data and data science
best technology to learn
graphic design
rpa interview questions and answers

Mega said...

This information is very interesting to read. Thanks for updating.
convert list into string in python
convert list into string in python

Huongkv said...

Đặt vé máy bay tại Aivivu, tham khảo

vé máy bay đi Mỹ tháng nào rẻ nhất

mua vé về việt nam

Vé máy bay từ Đài Loan về Việt Nam

chuyến bay từ nga về việt nam

vé máy bay từ đức về sài gòn

roulettesitetop said...

Such a very useful blog. Very Interesting to read this blog. Thanks for proving such a wonderful content 카지노사이트

asmaferoz said...

Thanks for sharing this blog. It was so informative.
Things to bring to an interview
What to bring to job interview