Luminous LightSwitch Types


A small collection of custom LightSwitch business types: - Percent type - ISBN type - Link type - Password type

(6) Review
Visual Studio
2012, 2010
Download (6,203)
E-mail Twitter Digg Facebook
Add to favorites
Reviews (6)
Q and A (9)
Sign in to write a review
Sort by:

by cte00 | January 10 2012

Hi Yann,

Thanks for this great extension. I was using the Percentage data type as it works great. However here are some of the observations I see happening:
1) When entering "-10", the on screen displays as "-10" but the DB records it as 0
2) I used place validation codes on a percentage property at the Entity table. When an error is triggered, the red box highlight for that percentage data type field does not show

Best regards,

YannDuran January 10 2012
| Edit |

Thanks for the feedback CT!

I wasn't expecting negative amounts, so I didn't test for them, so it's quite possibe that the conversion routine is treating that as an error & simply returning 0. I'll have a look at that.

Can you give me an example of what error condition you're talking about, so I can test for it?

Thanks again.

by LaurentzT | December 28 2011

Same problem as Spaso Lazarevic but still very cool!

YannDuran January 05 2012
| Edit |

Thank you! So this means that the problems that Spaso mentions aren't fixed in the latest version? I'll definitely have a look at what's going on then. I hadn't heard back & assumed that I had fixed the problems.

by GregoJDK | November 09 2011

Yann... Man... is very cool your work.
I´m From Brasil... and my english is very bad ok.
But... I Try.
Where i get one exemple about password input field ?
In my test... show field is ok... but when input is not work.

Thank´s and congratulations.

YannDuran November 09 2011
| Edit |

Thanks very much for the kind words. When you say "input doesn't work", what happens that shouldn't happen?

by babloo1436 | September 21 2011

by Spaso Lazarevic | September 20 2011

Hi Yann
I noticed when using your controls (Percent and ISBN) in Screen in conjunction with Luminous Themes (Blue or Purple) that foreground colour are not white as for other control type that originally provided by Microsoft (and also they are not rounded with thin line when not focused). Foreground colour for place to type value are blue or purple
Also, in properties change labels because there are without spaces (DecimalPlaces to Decimal Places; TrimZeros to Trim Zeros).
I didn't find out how to store less than 100% value (e.g. 25%).
When my input is 1, I got 100,00%, when input is 1.1 I got 1.100,00%, when 1,1 I got 1.100,00%
Please, find these as suggestions to improve your product as much as possible.
(5 stars - of course, without any doubt)
I'm really aware that this is the 1.0.x version
Best regards
Spaso Lazarevic

YannDuran October 17 2011
| Edit |

Thank you for the excellent feedback! I only had time to do very basic testing. Your observations will be very helpful for improving the controls. It's much easier to fix something when someone kindly points out what's "wrong".

For 25% you should just be able to type "25". Values like "1", "25", "100", "0.5", "0.25", "1.1" all worked fine for me ("1%", "25%", "100%", "0.5%", "0.25%", "1.1%"). I'm assuming that the different culture could be causing a problem. I'll have to look into that as well.

Thanks again.

These problems should now be fixed in Version 1.1 - thanks again for both using my extension, & letting me know about the problems. Sorry it's taken this long to get them fixed. I hope that you find the two new business types useful as well.

by PowerBala | September 19 2011

YannDuran September 19 2011
| Edit |

Thanks Bala!

Sign in to start a discussion

  • Visual Studio 2013 and 14 support
    1 Posts | Last post August 29, 2014
    • Hi Yann,
      do you have any plans as to release a modified Version of the luminous lightswitch týpes with v12 and v14 enabled in the manifest, or is the source code for the Project somewhere to recompile it myself?
  • Blank Screen
    6 Posts | Last post June 24, 2013
    • Hi Yann
      I have a 2012 LS solution already with some extensions, when I added the Luminous Types to use the Password Type and started the application, I got a white screen and nothing happens, remove the extension project and everything back up and running, the only hint that I is
      "A first chance exception of type 'System.Threading.ThreadAbortException' occurred in mscorlib.dll
      An exception of type 'System.Threading.ThreadAbortException' occurred in mscorlib.dll but was not handled in user code "
      Could you help me?
      Victor Perez
    • Hi Victor,
      I'm so sorry. Somehow I didn't get the notification of your question. I always try to answer as soon as I can.
      Someone had reported a problem to me directly, so I'm actually working on getting all the types to work in LS 2012 right now (which is how I ended up seeing your question). I should have an updated version by Monday at the latest (earlier if I can).
    • Hi Yann.
      I am working with Visual Studio 2012. When I enable your business types extension I get this error:
      Error launching the screen. Error : Could not load file or assembly 'System.Xml.Serialization, Version=, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The requested assembly version conflicts with what is already bound in the app domain or specified in the manifest. (Exception from HRESULT: 0x80131053)
      By the way, I am Reading your book "Pro Visual Studio LightSwitch 2011 Development".  This book is very good.
    • Hi Guys (both Victor & Jean Pierre),
      I did find the problem, so I will be able to fix it, I've just been off sick for about a week. I'll let you both know here, when I've uploaded the fixed version. Thanks for your support & patience.
      @Jean Pierre
      I'm really glad you're finding the book helpful.
    • Any news?
    • Any update "Luminous LightSwitch Types" working with VS 2012 update 2? 
  • Link
    15 Posts | Last post May 22, 2013
    • I was hoping to use the URL feature, what data type does it need to be to get this as an option?
    • It works for any string property in a table. You just change the data type from String to Link.
    • Thanks for the quick response :).  My field is coming into LS as a string, the backend is a nvarchar(255), would changing to plain varchar get me there?
      Thanks again.
    • Ah! My mistake, I closed my properties window without saving so I wasn't even using your extension yet, thanks!
    • As long as LightSwitch sees it as a String property, it shouldn't matter what the backend data type is. Are you not able to change a String property to a Link? Are you sure you've activated the extension  for the project you want to use it in?
    • We must have been typing at the same time, lol. Glad you got it sorted out. Hope you find it useful.
    • I was about to try it myself when I saw this, saved me some time.  Thanks for sharing.
    • You're welcome. :-)
    • Well now that I know you're around, I'm getting a 'Operation is not valid due to the current state of the object.' when I click on the link, is there a specific format I need?  I suppose the links don't work in a web app?
    • Just a normal URL, such as, or
      I don't use LightSwitch web applications myself, & I don't remember if I tried the extension in one. But I haven't had anyone say that it doesn't work in a web application.
    • Ok, well if its a debug thing...I'm about to publish so we'll see what we get :).
    • I'll be interested to hear the result. Btw, is this LS 2011? Or LS 2012? the extension  were written for LS 2011, & I haven't tested them in LS 2012.
    • Good question, It's 2011, I'll let you know once the Azure service gets its act together.
    • Didn't work after publishing, don't have time to dig into it at the moment though.
    • I'm also getting the  "Operation is not valid due to the current state of the object." error. The contents of the nvarchar(500) column is "" and I'm clicking the link symbol next to the textbox on a ListDetails screen.
  • I see no controls in VS10
    1 Posts | Last post August 16, 2012
    • I installed the vsx, restarted Visual Studio, ticked the extension, but I don't get any of these controls in my text field "selectors" (the dropdown that allows you to select a control type. Any ideas?
  • Issue with Link in Web App Debug
    1 Posts | Last post March 09, 2012
    • I get this error, "Operation is not valid due to the current state of the object." when I'm debugging the link type as Web App. Is this normal? Will I have this issue after I publish?
  • Issue with regional configuration
    1 Posts | Last post March 08, 2012
    • Hello Yann,
      I have a problem with the percentages when using regional configuration in Spanish. If I input 2, it will turn out as 200%, if I inpput 20, it will turn itself again into 200%. If I use English configuration on my OS system and regional settings, everything works fine. 
      Do you know if there is a workaround for this? 
  • UTC DateTime
    1 Posts | Last post February 03, 2012
    • Hi Yann, any idea when this control will be ready?  Looking forward to it.
  • Use in Modal Windows
    3 Posts | Last post January 14, 2012
    • Hi Yann,
      Thanks for this extension and I use it quite a bit for my little project.  My question is on the usage of the Percentage Editor in a Modal Window and it is a familiar problem that we spoke about before. Thanks to Burt Bielicki, he pointed out a way to prevent the modal window from closing when the Enter key is pressed.
      I use your Percentage data type and the Percentage Editor in a modal window.  With the method described in the forum thread above, I am able to prevent the Enter key from closing the modal window for LightSwitch supplied controls.  However that same method does not stop the Enter key pressed on the Percentage Editor.
      Do you have any thoughts about why this is the case and if there is something I can explore?
      Best regards,
    • After a little more testing, it seems to me that the ControlAvailable event for the control was never triggered.
    • Thanks CT. I haven't had much time to look into any issues due to the book, bt I shouuld be able to have a look & see if I can get it to do what you want. If buyilt-in control can do it, I should be able to emulate that.
  • Cannot enter ISBN-13
    2 Posts | Last post January 14, 2012
    • Issue 1) I entered "9783161484100" (the sample ISBN-13 you provide), I get the validation error "ISBN-13 numbers are not allowed";  2) If I enter just "9", I get the validation error "A valid ISBN number is " with no sample number.    
    • Thanks for the feedback! I'll have a look & see if I can find out what's going on..