Pixata custom controls for Lightswitch


A collection of (hopefully) useful controls by Alan Silver (Mr Yossu), including an expandable panel, the revolutionary toast utility, an application information display, a static toolbar, static image viewer, web image viewer, static web image viewer, labelled group, mail lin...

(53) Review
Visual Studio
2013, 2012, 2010
Download (27,137)
E-mail Twitter del.icio.us Digg Facebook
Add to favorites
Reviews (53)
Q and A (87)
Sign in to write a review
Sort by:

by Maurice Ausum | January 21 2015

Thank you, nice addition to the standard set!

by Tony Harrison | December 05 2013

Great set of controls.

I have just noticed one glitch on the Expandable Panel, I have a list of Parent records when I convert this to use the Expandable panel the vertical scroll bar disappears even though it is still enabled.
If I switch it back to column layout the vertical scroll bar re-appears.

Could you please take a look at this?
I need my scroll bar but I also need to be able to expand/collapse those lists to provide more screen space.

Thanks again.

Mr Yossu December 08 2013
| Edit |

Hello Tony.

I have seen this before, but have never managed to pin it down. I'll have a look and see if I can find out why the scrollbar disappears.

by Roberto Jucá | June 25 2013

Thank you my friend you made a great job here. Congratulations.

by Joel Chinchilla | June 12 2013

I don't know yet

by Doug Arp | May 31 2013

Terrific job on these controls. You made the world a better place. ;-)

by IT Lackey | April 26 2013

Very useful stuff here. Great work. Thanks for sharing!

by Robert ndev | April 25 2013

Great work - thanks!!

by T2Mac | April 18 2013

by epfeifer | April 18 2013

by EduNET | April 16 2013

Hello! Yersterday, I downloaded and installed the lastest version , later in my lightswitch project, I added a staticProperty, and drag and drop into screen design, but cannot see the pixata controls in the list.. What's happen? Only see: Custom Control, label and texbox..

I am using the VS2012 Update 2..

Please, can you help me?

Great controls!!


Mr Yossu April 18 2013
| Edit |

Please see the comments I made to your question in the Q&A section, which is where you should post questions.

If you're still having problems, let me know.

by Konstantinos Takakis | April 15 2013

Great job!!!! Thanks!!

by WarNovCreator | January 31 2013

Awesome Work!!

Congratualtions Mr Yossu!

by JoeB_LS103 | January 29 2013

These are very valuable controls, and a must have. Due to the fact that I have to first 'SELL' the company (internal corporate development) on using Lightswitch. The 'Free' Controls you and the others have posted are a HUGE help. I have your controls on almost every screen I have in use right now. Thanks a TON!

by Vicente Cartas | November 15 2012

by Wagner für Syncwork | November 14 2012

Great job, well done.
These controls are filling the gap between missed ui features
and self written LightSwitch user controls.
Thank you!
best regards from Germany!

by Dave A Gordon | October 29 2012

by Lisalena | October 25 2012

A must have!

by cte00 | September 27 2012

Thanks for continuing to update this extension! It is among the most useful extension for LS

by Spaceworld | September 25 2012

Thank you, it was sure nice of you to take time out for my question and many thanks. The VB.Net code worked perfectly and it also helped me to understand what I was doing wrong. Will make a purchase soon. Another question: I have code that "shells" to ".exe" files like Adobe & MS Word Viewer, Web Pages, etc. but thwy show as "modal" and would like them attached to the screen (non modal)so they don't move around. Is there a Scrollable Viewer control or container for attaching to the screen. Not Document Viewer, etc., just a viewer control to hold these .exe files. Shelling lets me bring in anything - word processors, web, power point, etc. but would like to fix them to the screen.

by kyle ls | September 19 2012

1 - 20 of 53 Items   
Sign in to start a discussion

  • There are no components in DLL that can be placed on the toolbox.
    2 Posts | Last post April 30, 2015
    • I'm having the above issue when trying to add any of the 4 .dll files that come as part of this download. I am using VS 2013 premium update 4.
      Can you give me any pointers as to how to load the controls into the toolbox? Will I just need to wait for an update to be compatible with this version of VS?
    • You can't add these components to the VS toolbox, they weren't designed for that. Custom components for Lightswitch are added by clicking the dropdown by the data member in the designer and choosing the component from what's offered - assuming you've installed the package into VS in the first place of course.
      Please look at the documentation to see how to use the controls. If you still aren't clear, post back and describe exactly what you're trying to do, and why.
  • using label to display a date field
    2 Posts | Last post April 15, 2015
    • Is it possible to display just the date of a datefield using the stylable label. Right now it also shows 12:00:00  AM after the date.
    • The stylable label (like the built-in non-stylable label control) doesn't know anything about formats, it just displays text.
      If you want to format the text, you'll need to add a string data item to your view model, and set that to the formatted date. You then bind the stylable label to that, instead of directly to the date field.
      Hope that makes sense.
  • Display image in Datagrid row from file system
    4 Posts | Last post January 13, 2015
    • Hi, I need to Display image in Datagrid row from file system. I have path stored in Database. I am using LightSwitch Desktop application. Please let me know how can i use Pixdata Custom controls for this requirement.
    • I am using Visual Studio 2013 for LightSwitch Desktop application
    • Sorry for the delay in replying.
      If you have the controls running in VS2013, then you can use any of them in a data grid just like you could use any other control.
      Please can you be more specific as to what your problem is.
    • I am currently using ImageViewer control to display images stored at Azure Blob storage. LightSwitch ImageViewer control unable to show the proper orientation for some images. So looking a control which display the image without changing the actual image orientation
  • Change Image Expandable Panel with code ?
    4 Posts | Last post January 13, 2015
    • Hi Mr Yossu 
      You can change the image of Expandable Panel at runtime ? I searched the properties of the control and found nothing related. 
      Victor Perez
    • No, the image isn't exposed as a property, so you can't change it at run time.
      It could be done, but it would be quite a bit of work. I don't think I'm likely to have the time to do it in the foreseeable future.
      Sorry, hope that doesn't inconvenience you too much.
    • Tks
    • Hi Yossu,
      I am currently using ImageViewer control to display images stored at Azure Blob storage. LightSwitch ImageViewer control unable to show the proper orientation for some images. So looking a control which display the image without changing the actual image orientation
  • pixata stylable textbox
    3 Posts | Last post December 07, 2014
    • Hi I am using pixata stylable textbox in the Grid Column (replaced TextBox with pixata stylable textbox), is there any way that we can set the background color for this dynamically (runtime)?
      Appreciated your help.
      Sreedhar D
    • Unfortunately, setting properties of customer controls in grids has always been an issue in LS, and I don't know of a good way to get around it.
      In addition, there was a bug in LS v1 that prevented you from changing the background of a texbox, as it was always set back again. I'm not sure they fixed this in v2.
      Sorry, it would be nice to give a more positive response, but I fought with this issue a lot some time ago, but eventually had to give up due to the lack of support from Microsoft.
    • Dear Mr Yossu,,
      Is there an update or upgrade for Pixata controls to be compatible with  visual studio lightswitch 2013 update 4.
  • Where to put some code in Static Toolbar...
    2 Posts | Last post September 14, 2014
    • First part of this code works  but the file read code under button click won't work. Works id placed in a "Private Sub Button_Execute()" method.
      Imports PixataCustomControls.Presentation.Controls
      Namespace LightSwitchApplication
          Public Class TestCenteringForID
              Private Sub TestCenteringForID_InitializeDataWorkspace(saveChangesTo As List(Of Microsoft.LightSwitch.IDataService))
                  AddHandler Me.FindControl("CheckIn").ControlAvailable, AddressOf TestCenteringForID_ControlAvailable
                  AddHandler Me.FindControl("CheckOut").ControlAvailable, AddressOf TestCenteringForID_ControlAvailable
              End Sub
              Private Sub TestCenteringForID_ControlAvailable(sender As Object, e As ControlAvailableEventArgs)
                  Dim TestCenteringForID As StaticToolbar = TryCast(e.Control, StaticToolbar)
                  AddHandler TestCenteringForID.ButtonClick, AddressOf TestCenteringForID_ButtonClick
              End Sub
              Private Sub TestCenteringForID_ButtonClick(sender As Object, e As StaticToolbarEventArgs)
                  '  Validate "UserID" and "Pin" from "Employees" table 
                  Dim Items = From dataitem In Me.DataWorkspace.ApplicationData.Employees
                  For Each item As Employee In Items
                      If (item.EmployeeID.ToLower() = "smith") And (item.Pin.ToLower() = "smith123") Then
                          ' User has been authenticated to continue...
                          gsFirstName = item.FirstName
                          gsInitial = item.Initial
                          gsLastName = item.LastName
                          gsStatus = item.Status
                          Exit For
                      End If
              End Sub
    • When you say "won't work" what do you mean? What happens?
      I need more info before being able to help you.
  • StaticToolBar can't call Execute() from ButtobClick
    2 Posts | Last post September 14, 2014
    • Hi Mr Yossu: Trying to execute query from button click:
      Static Toolbar gives following error at "For Each item As Employee In Items" when I click button:
      Receive "Invalid Operation Exception". Not valid to call Execute() on different dispatcher than the ExecutableObjects Logic.
      Private Sub TestCenteringForID_ButtonClick(sender As Object, e As StaticToolbarEventArgs)
          Dim sLastName As String
                  Dim Items = From dataitem In Me.DataWorkspace.ApplicationData.Employees
                  For Each item As Employee In Items
                      sLastName = item.LastName
      End Sub
    • Yup, this is a common problem, and can be solved easily by using a dispatcher. Please read this blog post I wrote that (hopefully) clarifies how threads and dispatchers work...
      It's important that you understand this subject, as it will cause you a lot of problems if you don't. Microsoft did a really lousy job of documenting LS, and this is one of the areas that trips people up the whole time.
      That blog post should give you what you need to get it working. If not, post back and let me know what you tried and what happened.
      Hope that helps.
  • Label Text Side Background color
    2 Posts | Last post September 14, 2014
    • Hi Mr Yossu
      Thanks for the nice controls. When using the label control, is there a way to set the "text" side background color to transparent.  I have a light blue background and would like the text side background to be the same light blue color.  Also, I see where you can change the label text color, font,etc. but can the text side font color be changed?
          Label Side       Text Side (can this side background be transparent)
          WELCOME:         Craig's Auto Company  (can background be transparent)
                                                 (can font/color be changed)
      Thank you  
    • Hello,
      Unfortunately not. This is a bug in LS that Microsoft never fixed. I reported it a couple of years ago, but they ignored it. I never found a workaround, and when MS stopped supporting LS developers, I gave up.
      Shame, but sadly I can't do anything if they won't give me support.
  • LabeledGroup - TabIndex
    2 Posts | Last post August 31, 2014
    • Hello,
      first, many thanks for your work on These great Controls.
      I think, I found a bug:
      when you add a LabeledGroup to a Screen, and put sum controls in there, one tab Point is lost, meaning you have to hit the tab key twice to get to the next control. this is a Little interrupting.
      I would be really glad if you could confirm whether this is intended; then I'd try to circumvent it with manual Focus-eventing (just read your MSDN question about that) or if it's fixable differently.
      thanks so far,
    • Hello,
      It's certainly not intended, as there isn't any benefit in it. It sounds like something hidden is capturing the focus along the way.
      I'll see if I can find tie to have a look into it. I can't promise, as I don't really do so much LS work any more. Microsoft have effectively killed it off for me. The HTML client is a big disappointment, and they aren't supporting the Silverlight client nay more.
  • Horizontal/Vertical Spacer
    2 Posts | Last post August 31, 2014
    • Hi Mr. Mryossu,
      I am still a user of Visual Studio 2013 LightSwitch.  Your control extensions are great and such a shame that Microsoft is so disappointing with LightSwitch.  LightSwitch really is a great product but needs a lot of tender loving care and enhancements.  Their HTML side is also fascinating, can even create browser desktop web pages and mobile web pages quite easily when one figures it out.  Unfortunately, it remains to be seen whether the new top management will resurrect this product for future enhancement or not.  
      I have a problem with your "Vertical Spacer".  This "Spacer" is really a "sleeping giant" to enable one to move around the controls (yes, I really miss the "drag and drop").  The spacer seems to act like the "Horizontal" spacer (moves controls down instead of across).  Although I had seen it work earlier in my development and wondering if I am using it correctly now.  It seems straight forward, I created a "StaticProperty" control, dragged it before an "ID" textbox, chose "Pixata Vertical Spacer", set the height to "40" and ran the program.  Both the "Horizontal" and "Vertical" move the text box down 40 spaces.  
      What am I doing wrong, please.  Thank you...
      Edward Piccoli
    • Hello,
      I'm a bit confused by what you type. I don't have a vertical spacer and horizontal spacer, I just have the one spacer control, and you can set the width and/or height as you like.
      I just tried it again in VS2013, and it works fine. Please check you have set both the width and height properties correctly.
      If you're still having problems, please produce the smallest sample you can that shows the problem, and email it to me.
1 - 10 of 87 Items