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...
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.
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..
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!
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.
Hi Mr Yossu,
Thanks so much for this great toolkit. I've been using the controls for over a year now in one of my applications and I just have one really small niggle. I use the Labelled group extensively in a number of custom add/edit dialogs, for data entry requiring multiple samples, i.e. sample 1, sample 2 etc. My only issue is that I cannot style the actual label for the group properly. In my example the default cosmo theme bolds all required fields in a dialog, I use a Labelled group to group the controls but the label uses normal font, whereas i'd like to be able to set the font to bold to indicate to my users that these are required fields, in the same way as the default theme. Is there a simple workaround you could suggest to help with this?
Thanks again for a great toolkit.
Hi Daryl, thanks for the kind words. Unfortunately, there isn't an easy answer to your question. It's something that's annoyed me for a while as well, not just with this control, but with the built-in ones as well.
Whilst it is possible to get at the label, they've made it quite hard, and it would be pretty difficult to style it properly.
If you search around, there are blog posts from people who've done similar things, but it's not for the faint-hearted!
Hello, thanks for the kind words.
As for VS2013, I really can't say. As Microsoft have effectively killed off the Silverlight client, and dumped us without any support or backup, it's getting harder to develop these extensions, as the documentation is very poor, and the only way to get any help at all was from the members of the LS team who were posting in the forums. They are not answering questions about Silverlight extensions any more, making it tough to develop or debug.
As for VS2013 itself, I must say I'm still using VS2010 for LS work, as the changes in VS2012 were a big backward step for me. Instead of addressing the huge number of excellent requests and suggestions from the community, Microsoft slowed LS down to a crawl by forcing oData on us, and adding a couple of insignificant changes to make it look like they did something useful. The only other change was the mobile client, which is a waste of time in my opinion. Until they make some drastic changes, and allow it to produce full desktop sites as well as mobile ones, I can't see any benefit in maintaining two totally separate, completely incompatible projects for a web site, especially when one exposes the data to the world via the oData services, which are a waste of tie for a web site anyway.
All of which is a long way of saying that I'm unlikely to put a lot of effort into modifying these controls for VS2013. Sorry to disappoint you, but I can't see any benefit in using anything past VS2010 for Silverlight LS work, and probably won't be able to justify the time it would take to debug the inevitable problems that will arise.
Indeed, there are issues with trying to convert extensions to VS2013. I'm having issues converting my own, but I hope you do reconsider as some of us are using your extensions extensively in projects, and need to put up with the current SL client while also converting their application to HTML.
The new Grid in the HTML client is a start towards desktop support, and I'm sure more is coming.
Hello to all of you
I've been wondering why so many people have been asking me about supporting VS2013. After all, why not just use the controls as they are?
Well, I just tried it myself, and found out that you can't! The manifest file doesn't state that it supports VS2013, so you it won't let you use them. Oops.
So, many apologies to those who have asked and been told that I won't be supporting VS2013, when in fact there isn't any reason why the controls shouldn't work.
I have just uploaded a new version whose manifest supports VS2013. Due to the fact that I hit a known (but unresolved) bug that causes errors when trying to build an extension in VS2010 when you have VS2013 installed as well (sigh), I couldn't produce a genuinely new version, so this one has the same version number as the previous. This means that you may need to uninstall the extension, and then reinstall it to get VS to notice it.
I just tried it, and it's working fine in VS2013.
Please let me know how you get on.
it seems, that VS2013 is not defined in the VSIX-File. You can do:
- Download the VSIX file to a Folder
- Rename the file to .ZIP
- Extract the zip
- Edit extenion.vsixmanifest
<?xml version="1.0" encoding="utf-8"?>
<Name>Pixata custom controls for Lightswitch</Name>
<Author>Alan Silver (Mr Yossu) Pixata Ltd</Author>
<Description xml:space="preserve">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 link, web link, stylable textbox, stylable label, stylable static label, spacer, and horizontal and vertical dividers</Description>
pack all files to a new zip an rename it in .vsix
Just noticed all the replies here (didn't get a notification for some reason).
I fixed the download right after I found out about the issue, so you should be able to use it without having to modify the manifest file manually.
Please let me know if anyone has any problems.
Hi Mr. Yossu,
With regard to custom login for Silverlight Custom Login by DockShell I have just confirmed with the maker of Dockshell Johnny Larue that it may be possible to add a custom silverlight login even of the desktop version at Softlanding Canada Forums.
Please visit the post regarding to custom login.
I am trying to figure out how to get the controls installed and working in VS 2012. I downloaded and installed the extension through VS 2012. Tools --> Extensions and Updates. In my Solution/Project I go to Properties and Pixata custom controls for Lightswitch is checked and Use in new projects is also checked, version is 1.35.
So my question is, if everything has been done as far as installation and referencing for this extension goes, why cannot I not seem to get any of the controls to show up in any of my screens?
I followed some examples on Mr Yossu's blog,
Add Data Item, Local Property, Type String, uncheck Is Required, name StaticProperty. I then move Static Property to the top of the list, add it to my screen click the drop down, but I do not see any of the controls mentioned on the blog.
I am a newbie, but am I doing something wrong here? Did I miss a step for installation or useage that someone could please point out. I am really excited about extending my app but I cannot seem to get past this road block.
As I explained in my email, the controls were designed for the Silverlight client, and you are using the HTML client. The controls won't be available, as they weren't designed to work with HTML. That's an altogether different scenario.
Hope that helps.
Mr Yossu :-)
Thanks ever so much for your work on this its been very useful in a few projects!
Just a quick question in regards to VS2013, will you make these controls for this version?
Once again many thanks for the great work on this :-)
Are you Joel who just emailed me? If so, I've replied by email. If you aren't, my apologies! Could you explain what you want to know. I described how to use it on the help page, but maybe I missed something.
Great helpful controls! But I try to use 4 expandable Panels side by side, and the header text starts each time in a different position. Is there a way to give them a unique vertical starting hight?
And, by the way, do you plan to add an equal great working combo box? ThxiA
Hello, sorry for the delay in replying, I've been on holiday.
Anyway, I'm not clear what problem you're seeing. I just tried using four expandable panels side by side, and the header text lined up just fine.
Please clarify the situation. If you can manage, it would be even better if you could produce a small sample project that shows the problem. Please keep it as small and clean as possible, without any other extensions, so I can focus on the problem.
Also, what do you mean by the combo box idea? I'm always on the lookout for new ideas, but I'm not sure what you are suggesting. Please clarify.
Hello Mr Yossu,
now I have been on holiday. You can reproduce it with following steps:
- create as VS2012 Lightswitch application (in my case VB)
- choose LS Standard Shell
- choose LS Blue Theme
- I have added a table with some data (maybe not necessary)
- create a screen (eg. editable grid)
- add Expandable Panels with different Header Text
You'll see what I mean (hopefully ;-)
Each Header Text starts at a different vertical position.
Thanks for your efforts i.a.
my program shows a webcam-picture via Pixata WebImage.
Now I want to store the Image of the control in my database occasionally.
Is there a way to get the Image-data from the WebImage-Control?
Hi Oliver, sorry for the delay in replying, but I never got a notification of your question.
Anyway, I've just uploaded a new version of the controls that exposes the image itself, so please download the latest version (v1.34).
In the screen code behind, capture the ControlAvailable event for the control, and in the event args that are passed, the Control property will be the Image control. That will allow you to get the image data out.
Hope that helps.
Hi Mr Yossu,
many thanks for the great help. I have installed Version 1.34 now. I am familiar with the Controlavailable stuff (I guress).
But can you please explain more in detail how to get the Image-data from the WebImage-Control?
Dim cip As IContentItemProxy = FindControl("LivePicture")
AddHandler cip.ControlAvailable, AddressOf WIAvailable
Private Sub WIAvailable(sender As Object, e As ControlAvailableEventArgs)
RemoveHandler DirectCast(sender, IContentItemProxy).ControlAvailable, AddressOf WIAvailable
Dim wi As PixataCustomControls.Presentation.Controls.WebImage
wi = DirectCast(e.Control, PixataCustomControls.Presentation.Controls.WebImage)
Sorry, I should have been more clear. The control that is exposed is the underlying Image control that I use. This is the standard Silverlight control, so your cast should be to that, not to the WebImage. Once you have the Image, you can use the Source property as you would with any other Image control.
Hope that makes it clearer. Sorry for not being so clear before.
Don't know if I'm going to have the time to update the controls. I don't use LS as much as I used to, and haven't switched to VS2012 yet, never mind VS2013!
Not sure how the application object should be affected by my controls though, I would have thought that was something baked into LS.
Very nice extension!
I'm using static toolbars to try to reproduce a tile grid. Here is a callback copied/pasted from your website
void FerretToolbar_BtnClick(object sender, StaticToolbarEventArgs e)
Unfortunately, the "break" lines generate an error message: Invalid operation due to the current object state. Do you encounter the same issue and know how to work around it?
Hello, sorry for the delay in replying, I've been on holiday.
I've never seen this problem. The code on the help pages was pasted in from a working sample, so should be fine. It sounds like there's something else going on in your project.
I'm puzzled by the fact that it generates the exception on the break statement, as that isn't actually executing any code, it just tells the run time to jump out of this block and resume execution after it.
Do you get the same problem if you replace the line before the break with something else? How about if you comment out that line, so the case statement only has the break?
Are you able to produce a small sample project that shows the problem? If so, please email it to me at firstname.lastname@example.org and I'll have a look.