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.
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.
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.
Is it possible to reduce/remove the size of the grey border round the static toolbar buttons?
Also, could the toolbar accept a second, hot, image for each button - or calculate one on the fly, to be used for mouseover?
I'm not sure what you mean by the grey border, as I don't get one. I use Vs2010, so it could be if you're using VS2012, it's adding something. These are just standard Silverlight buttons, so shouldn't have a border, other than the edge of the button itself.
However, the control exposes the buttons, so you can do what you like with them. If you look at http://dotnetwhatnot.pixata.co.uk/PixataCustomControls/Static_Toolbar.aspx you will see a section named "Modifying the buttons as much as you like" in which I show you how to get at a button. Once you have one, you can change the content (such as adding a second image), enable/disable the button or whatever.
Hope this helps
I'm using the Cosmopolitan theme in VS2012.
Buttons with a 16x16 pixel image on them show a light grey button background 4 pixels wide all round the image and then a darker grey border one pixel wide. If I try to fix the toolbar size, rather than set it to auto, the images get cropped.
If time allows on this project I'll have a look at implementing Hot Tracking.
Unfortunately, the Cosmopolitan theme seems to do quite a few odd things that I'm unable to override. The idea f a theme is to provide a basic style, which can be overridden as needed. For some reason, Microsoft have prevented that happening with this theme.
I would be interested to hear if you have any success modifying it. As I pointed out before, you have direct access to the underlying buttons, so you have a lot of freedom there.
Can you give more details about what you mean. I'm not sure how to interpret "the language support (default) for LS cracks" so can't comment. If you could explain in more detail, I could have a look.
When I updated to your latest build after updated VS 2012 update 3 I cannot change the default language to any other language besides english-us in LS.
Did the same in update 2 and the same thing happend.
Maby its not your extension but it happend after updating your extension. Strange...
I would be very surprised if this was caused by my extension, as it doesn't do anything remotely connected with language support. Furthermore, I'm not even sure an extension could disable multiple languages like that even if it tried.
Please try uninstalling the extension and see if you can change language. If you can, reinstall it and see if it breaks. If so, then I'll have to check further.
First of all thanks for all the good work you have done and that make our life so much easier!
Now back to my issue: I am using the Web Image control to show images that are accessed via their URLs. It works very well when I test locally but as soon as I publish the web app on Azure, the images don't show up :(
For information I am developping a "In-Browser" application.
Have you experienced such problem? What could go wrong?
Thanks in advance!
I've never used Azure, so don't have any first-hand experience, but as long as you can view the images via their URLs from a web browser, they should be viewable in the web image control. Azure isn't anything unusual in that respect.
Please check you can see the URLs individually in a web browser. The other thing to do is look in the Output window when debugging your app in Visual Studio, and see if there are any warnings or errors there that might give a clue.
Let me know how you get on
I followed your instructions and I did find something in the output. The strange thing is that it does not prevent the control from working in my development environment. Here are the errors:
System.Windows.Data Error: Failed to connect to index 'PixataCustomControls:WebImage/Width' in object 'Microsoft.LightSwitch.Presentation.Implementation.PropertyDictionary' (type 'Microsoft.LightSwitch.Presentation.Implementation.PropertyDictionary'). BindingExpression: Path='Properties[PixataCustomControls:WebImage/Width]' DataItem='Microsoft.LightSwitch.Presentation.Implementation.ContentItemFromDefinition' (HashCode=17022177); target element is 'System.Windows.Controls.Image' (Name=''); target property is 'Width' (type 'System.Double').
System.Windows.Data Error: Failed to connect to index 'PixataCustomControls:WebImage/Height' in object 'Microsoft.LightSwitch.Presentation.Implementation.PropertyDictionary' (type 'Microsoft.LightSwitch.Presentation.Implementation.PropertyDictionary'). BindingExpression: Path='Properties[PixataCustomControls:WebImage/Height]' DataItem='Microsoft.LightSwitch.Presentation.Implementation.ContentItemFromDefinition' (HashCode=17022177); target element is 'System.Windows.Controls.Image' (Name=''); target property is 'Height' (type 'System.Double').
So it seems to be related to width and height but all the differente combination I tried with size (stretch, auto, min/max/pixels) led to the same error.
I'm pretty puzzled about this now.
Well, the errors indicate that there is something wrong with the width and height you have set for the control. What happens if you try setting the control itself to be a fixed width and height?
I just tried it here, and it works fine. I don't think it's likely to be anything to do with the Azure side, as that is just hosting.
Maybe you could send me a very small sample project that shows the problem, along with a few image URLs you are trying to display. I'll see if I can see anything.