Programming with .NET - Generalhttp://forums.silverlight.net//17.aspx/1?Programming+with+NET+GeneralGeneral discussions around authoring Silverlight .NET applications.Mon, 01 Jan 0001 00:00:00 -0500171286http://forums.silverlight.net//p/699/1286.aspx/1?Unusable+without+basic+UI+controlsUnusable without basic UI controls <p>Without basic UI controls such as text box, drop down list, radio button list, data table, etc., Silverlight is completely unusable for what I want to use it for. I want to use it for data driven applications that make use of web services. I have no use for audio or video or the other more wiz bang features. This is not a Flash killer. Not yet anyway. It's looking like it'll be several years before the technology will be mature enough to use if it doesn't even have the most fundamental UI elements in it. Also, it crashed on me in Firefox on Mac OS X within a minute of use. It's going to need to match Flash in terms of stability. Stable only in IE on Windows isn't going to cut it.</p> 2007-05-04T15:25:05-04:001343http://forums.silverlight.net//p/699/1343.aspx/1?Re+Unusable+without+basic+UI+controlsRe: Unusable without basic UI controls <p>1.1a already includes a couple of controls, but for 1.0 I've now started the process of making some of my own.</p> <p>I expect a lot of people will be making easy to implement UI controls, so it'll just be a matter of time before you can download and use the ones that you like.</p> 2007-05-04T19:25:23-04:001345http://forums.silverlight.net//p/699/1345.aspx/1?Re+Unusable+without+basic+UI+controlsRe: Unusable without basic UI controls <p></p> <blockquote><span class="icon-blockquote"></span> <h4>jemiller</h4> <p>Without basic UI controls such as text box, drop down list, radio button list, data table, etc., Silverlight is completely unusable for what I want to use it for. I want to use it for data driven applications that make use of web services. I have no use for audio or video or the other more wiz bang features. This is not a Flash killer. Not yet anyway. It's looking like it'll be several years before the technology will be mature enough to use if it doesn't even have the most fundamental UI elements in it. Also, it crashed on me in Firefox on Mac OS X within a minute of use. It's going to need to match Flash in terms of stability. Stable only in IE on Windows isn't going to cut it.</p> <p></p> </blockquote> <p></p> <p>1.0 is a Beta, 1.1 is an Alpha. Isn't it a bit premature to be complaining about stability?</p> 2007-05-04T19:30:44-04:001350http://forums.silverlight.net//p/699/1350.aspx/1?Re+Unusable+without+basic+UI+controlsRe: Unusable without basic UI controls <p>I'm assuming they'll iron out the stability issues. However, the lack of basic controls means I won't be using this anytime soon. My guess is that it'll be several years before it's in a usable state. Look how long it's taken Microsoft to get an ORM out the door. They still haven't implemented the provider model that allows LINQ to SQL to use databases other than SQL Server. It also lacks basic mappings such as many-to-many that pretty every other ORM supports. Silverlight appears to have the same issues. In the long run, it can fundamentally change the way we develop applications for the better. The problem is that it isn't fully baked yet and I don't believe it will be for several years. The notion of having to use third-party controls for something as simple as a text box is pretty ridiculus IMHO. This isn't going to &quot;kill&quot; Flash anytime soon.</p> 2007-05-04T19:45:09-04:001353http://forums.silverlight.net//p/699/1353.aspx/1?Re+Unusable+without+basic+UI+controlsRe: Unusable without basic UI controls <p>Basic controls are available as a sample with the 1.1 Alpha, and they will be part of the final release of 1.1. The only reason they aren't included now is they are trying to decide which basic controls to create&nbsp; - its a balancing act of keeping the Silverlight download as small as possible while still providing developers with the controls they need.</p> <p>During MIX '07 they specifically asked developers to tell them which controls they thought were necessary for Silverlight to be viable.</p> 2007-05-04T20:14:59-04:001354http://forums.silverlight.net//p/699/1354.aspx/1?Re+Unusable+without+basic+UI+controlsRe: Unusable without basic UI controls <p></p> <blockquote><span class="icon-blockquote"></span> <h4>jemiller</h4> <p>I'm assuming they'll iron out the stability issues. However, the lack of basic controls means I won't be using this anytime soon. My guess is that it'll be several years before it's in a usable state. Look how long it's taken Microsoft to get an ORM out the door. They still haven't implemented the provider model that allows LINQ to SQL to use databases other than SQL Server. It also lacks basic mappings such as many-to-many that pretty every other ORM supports. Silverlight appears to have the same issues. In the long run, it can fundamentally change the way we develop applications for the better. The problem is that it isn't fully baked yet and I don't believe it will be for several years. The notion of having to use third-party controls for something as simple as a text box is pretty ridiculus IMHO. This isn't going to &quot;kill&quot; Flash anytime soon.</p> <p></p> </blockquote> <p></p> <p>Also, you can use an HTML text box and manipulate it from the code-behind if you don't feel like using the sample text box or rolling your own.</p> 2007-05-04T20:15:43-04:001359http://forums.silverlight.net//p/699/1359.aspx/1?Re+Unusable+without+basic+UI+controlsRe: Unusable without basic UI controls <p></p> <blockquote><span class="icon-blockquote"></span> <h4>jemiller</h4> <p>I'm assuming they'll iron out the stability issues. However, the lack of basic controls means I won't be using this anytime soon. My guess is that it'll be several years before it's in a usable state. Look how long it's taken Microsoft to get an ORM out the door. They still haven't implemented the provider model that allows LINQ to SQL to use databases other than SQL Server. It also lacks basic mappings such as many-to-many that pretty every other ORM supports. Silverlight appears to have the same issues. In the long run, it can fundamentally change the way we develop applications for the better. The problem is that it isn't fully baked yet and I don't believe it will be for several years. The notion of having to use third-party controls for something as simple as a text box is pretty ridiculus IMHO. This isn't going to &quot;kill&quot; Flash anytime soon.</p> <p></p> </blockquote> &nbsp; <p>Lucky for you that a text box control is&nbsp;available in 1.1a then.<br> In regard to the whole eco system of tools and services available to feed Silverlight with, SL is already years ahead of Flash and it isn't even 1.0 yet.<br> We'll see how it all works out, but it's pretty silly to say that SL won't be competing because it's missing a text box control.</p> 2007-05-04T20:43:36-04:001381http://forums.silverlight.net//p/699/1381.aspx/1?Re+Unusable+without+basic+UI+controlsRe: Unusable without basic UI controls <p>If you look at the Widget sets for Flash, they are implemented in ActionScript on top of the Flash core library that does similar things as Silverlight with respect to lines, fills etc. All Flash widgets are build up using these primitive operations. Due to the usage of ActionScript, the performance of these controls is sub-optimal, although the new Flash 9 version solved a lot of the performance issues due to the new JIT compiler included in this version.</p> <p>Silverlight is very similar to WPF, and you already see loads of control makers jumping on the WPF controls bandwagon. It wan't take long before they jump the Silverlight bandwagon as well, because Silverlight will get way more exposure than WPF (I think). One of the control builders is already providing a set of controls to get started with. Have a look at <a href="http://www.telerik.com/products/silverlight/overview.aspx">http://www.telerik.com/products/silverlight/overview.aspx</a>.</p> <p>Serge van den Oever [Macaw]<br> <a href="http://weblogs.asp.net/soever">http://weblogs.asp.net/soever</a></p> 2007-05-04T22:55:43-04:001387http://forums.silverlight.net//p/699/1387.aspx/1?Re+Unusable+without+basic+UI+controlsRe: Unusable without basic UI controls <p>Why worry about constraining the download to only 2 MB, when the user, if they are running Windows, has to download hundreds of MBs if not GBs&nbsp;of patches via Windows Update already? Running Windows without a high-speed Internet connection is nearly impossible if you want to keep your system up to date.&nbsp;I'm sure there are plenty of developers out there who feel as I do that having basic UI controls is a necessity not a nicety.&nbsp;Would they really increase the download size that much? Having to rely on third party controls for something so fundamental seems pretty crazy to me.</p> <p>&nbsp;</p> 2007-05-04T23:44:03-04:001393http://forums.silverlight.net//p/699/1393.aspx/1?Re+Unusable+without+basic+UI+controlsRe: Unusable without basic UI controls <p>What requirements do you specifically have for controls such as a textbox and button? Do you want richer controls than the ones that are part of the HTML DOM? Or do you simply want direct wrappers for those elements?</p> 2007-05-05T00:51:05-04:001406http://forums.silverlight.net//p/699/1406.aspx/1?Re+Unusable+without+basic+UI+controlsRe: Unusable without basic UI controls <p>Hey Wilco, </p> <p>Long time no see... so this was 'it', huh? &lt;s&gt;</p> <p>I think it's a fundamental issue and one that Microsoft is currently not addressing well in either WPF or Silverlight. MS is pandering to the designer set, which is needed for the platform for sure, but I think the impression most people get when they saw all the cool Silverlight stuff is that you can write fully self-contained UIs on the client side without having to muck with HTML markup and JavaScript.</p> <p>Sure you can use the 7 or so HTML controls and get the same limited functionality you get with HTML and you get to code interop between two platforms and deal with all the browser incompatibilities on top of it. I think the Html interop is not terribly useful without a much bigger (ala MS Ajax style)&nbsp; browser interop layer. Otherwise we're back to writing browser sniffing code and tweaking the DOM to make it work with different browsers...</p> <p>Native SL controls are very important to productivity. The basic primitives should be there as soon as possible because without it a non-designer type like me will be lost - well you can still do cool stuff with the code behind and flailing around with rectangles and textblocks, but it's terribly unproductive that way. </p> <p>Textbox, button, listbox, dropdown, checkbox, radio at the very least. Beyond that a ListView type control to display data without having to start from scratch creating rectangles and text runs &lt;s&gt;. Eventually there shoud be a full set of controls that can do many WinForms like UI features in the browser. DateTime picker, masked input, grid etc. - those are for later on surely, but this stuff should come in the box or as a separate UI library that's not part of the core package.</p> <p>To the designer set this may seem totally out of place, but if Microsoft wants quick uptake of this technology I think this is a vital requirement to get non-designers involved and playing with this stuff. I very much doubt if you take someone who hasn't looked at WPF at all to this point (a large number - most developers?) trying to do even the simplest thing will be pretty painful. A few controls can take that initial sticker shock away.</p> <p>&#43;&#43;&#43; Rick ---</p> <p>&nbsp;</p> 2007-05-05T03:31:22-04:001415http://forums.silverlight.net//p/699/1415.aspx/1?Re+Unusable+without+basic+UI+controlsRe: Unusable without basic UI controls <p>I believe there are currently already some C# controls available as a separate download. I'm not directly involved with this stuff though, so I don't know what's currently there, what you can expect, what kind of limitations there are, etc. That said, I absolutely agree it's important to have controls available for those using the presentation stuff provided as part of Silverlight.</p> <p>However, I'm not convinced that everyone will (or should for that matter) replace all their forms with Silverlight controls. If you just want to back up your existing forms with some managed code/new services (e.g. automatically saving a draft on the client using isolated storage&nbsp;every 10 seconds), I don't see any reason to having to replace that with Silverlight controls. Basic interop with form elements (read/write value) should work fine across all browsers. It's things like positioning/styling that gets messy real quick, and if that's what you're playing with, then sure, Silverlight controls are probably be the way to go to avoid dealing with browser differences.</p> <p>So basically I guess I'd like to know what the exact context is in which we're discussing. :)</p> 2007-05-05T04:27:11-04:001425http://forums.silverlight.net//p/699/1425.aspx/1?Re+Unusable+without+basic+UI+controlsRe: Unusable without basic UI controls <p>What I'm looking for in Silverlight is the ability to do the same thing that I'm able to do with Flex which is to create an application that makes use of basic UI controls such as text boxes, drop down lists, buttons, data grids, tabs, etc. I want to write the UI logic on the client side in .NET and not have to mess around with HTML or ASP.NET. The business logic for the application would be in a web service and the Silverlight application would make calls to the web service. I would also like to have the ability to popup modal dialog boxes. Basically, what I want to do is create a Windows Forms or WPF-like application that would run in a web browser that is cross platform. I would also like to make use of the data binding that WPF uses. If the controls were split into a separate downloadable library that would be fine, but, I would want it developed and supported by Microsoft. I wouldn't want to have to use a third party library for something as simple as a text box or button. One of the major benefits that I would see to Silverlight is a simplified programming model. I shouldn't have to mess around with DOM. I should be able to work at the same level of abstraction that I would if I were developing a Windows Form or WPF application. If I wanted to mess around with DOM, then,&nbsp;I wouldn't&nbsp;need Silverlight, I can use JavaScript for that. I shouldn't have to deal with browser differences as I would be working within the context of Silverlight.</p> 2007-05-05T05:04:52-04:001428http://forums.silverlight.net//p/699/1428.aspx/1?Re+Unusable+without+basic+UI+controlsRe: Unusable without basic UI controls <p>Please see <a href="http://blogs.msdn.com/mharsh/archive/2007/05/03/silverlight-c-controls.aspx"> http://blogs.msdn.com/mharsh/archive/2007/05/03/silverlight-c-controls.aspx</a>.</p> 2007-05-05T05:36:17-04:001434http://forums.silverlight.net//p/699/1434.aspx/1?Re+Unusable+without+basic+UI+controlsRe: Unusable without basic UI controls <p>I think everybody would LOVE to see that. I mean if it were possible to do Microsoft would have built WPF this way in the first place to run in the browser.</p> <p>I think the browser and cross platform scenario however makes a lot of this not as trivial as it may seem offhand. A lot of work has to go into the process for cross platform - if it wasn't for that you can already do what you're looking for with XBAP which is a full featured client side platform that can do all the things you are asking. Adobe has Flex that does some right now&nbsp;but the platform that Flex exposes is pretty thin compared to he richness of the CLR coupled with the XML based markup of XAML for wich Adobe has no equivalent.</p> <p>No matter what happens the client side in the browser will never have that kind of richness that full WPF has I'd expect at least not unless Silverlight is a huge runaway success and truly takes over which I find doubtful - the anti-Microsoft league will see to that &lt;s&gt;.</p> <p>So in order to run in the browser a lot of tradeoffs have to be made and Microsoft is still in the process from feedback like this trying to figure out what needs to go into this distributed runtime. I'm going to bet that a set of controls will be a part of the shipping set at one point (and ScottGu mentioned that this is coming in the future) but just how rich this set of controls is is to be seen.</p> <p>But the good news is that Silverlight has an open component model so it's going to be reasonably straightforward for control vendors (or individual developers) to step in and fill this void. While I agree that this stuff should be in the box my guess is that the first decent UI library won't come from Microsoft but an enterprising third party. Let's hope they're not all going after the high end designer control market though - in the current state of wow everybody's seems to be&nbsp;the &nbsp;'check out the pretty pictures dude' mode - let's hope that the basics that are needed for 90% of applications will be attended to. Even the full WPF doesn't do this at the moment.</p> <p>But give it some time. Microsoft has just unveiled this technology and from a platform perspective I for one am impressed and excited of the possibilities it offers. Right now probably the most important thing is that the base platform works and has what's needed to build on top of. Remember we're looking at an Alpha - lots can and will change before this technology goes RTM.</p> <p>&#43;&#43;&#43; Rick ---</p> <p>&nbsp;</p> 2007-05-05T06:42:04-04:001453http://forums.silverlight.net//p/699/1453.aspx/1?Re+Unusable+without+basic+UI+controlsRe: Unusable without basic UI controls <p>Yeah, let's not jump the gun.&nbsp; The alpha just came out.&nbsp; But I can understand the concern of not wanting to monkey around with HTML and CSS.&nbsp; The Flex controls are very cool, but as others have noted, Silverlight is years ahead of the Flash/Flex offering in other ways, so it's not a big deal.</p> 2007-05-05T11:11:02-04:001464http://forums.silverlight.net//p/699/1464.aspx/1?Re+Unusable+without+basic+UI+controlsRe: Unusable without basic UI controls <p>I'm one of the folks on the Silverlight team working on the controls story. For Silverlight 1.1 Alpha we've released source code samples for a modest set including Button, Slider, ScrollBar, ScrollViewer and&nbsp;ListBox. See <a class="" href="http://nerddawg.blogspot.com/2007/05/silverlight-ui-controls.html"> my post here</a>. I welcome you to try them and give us feedback on these forums.</p> <p>We're still&nbsp;debating what set of controls are part of the platform and what set get released as source code or binaries so your apps can depend on them. But make no mistake, a rich and robust controls set is indeed part of our goals. As with everything else, limitations of time and resources force us to prioritize some controls over others. This is another area where we'd appreciate feedback. If you are building or intend to build Silverlight applications, what canonical controls do you foresee using? Granted some can be easily built as part of the app development process. But for our part, we'd like you to focus on building your core app and leave the plumbing to us. </p> <p>Nevertheless,&nbsp;we're designing the platform features such that you are able to build rich custom controls (say, carousel view, for now)&nbsp;completely in user code by extending some platform types. For controls that cannot be build fully in user code (say, editing-related ones like TextBox), we'll have you covered. Keep the feedback coming.</p> 2007-05-05T15:57:47-04:001468http://forums.silverlight.net//p/699/1468.aspx/1?Re+Unusable+without+basic+UI+controlsRe: Unusable without basic UI controls I think you need to use WPF browser application in this case,but I still prefer more consistent intergration with existent (D)HTML code and js libraries-otherwise it's not browser anymore! 2007-05-05T16:39:06-04:002356http://forums.silverlight.net//p/699/2356.aspx/1?Re+Unusable+without+basic+UI+controlsRe: Unusable without basic UI controls <p>I see the point about keeping the Silverlight download small, however as a developer lets say I create 5 controls to get my app going then another developer uses 3 3rd party controls from vendor A and then a 3rd developer uses 4 controls from 3rd party developer B all up we are looking at 12 controls.&nbsp; I am assuming the controls are cached or put into a GAC or something now if MS had provided the controls from the start perhaps 8 intrinsic controls could have been used and only 4 3rd part controls therefore the net download speed for all 3 apps is significantly less then if the 3 apps used all different controls.&nbsp; This makes allot of assumptions concerning how controls are cached and perhaps they are not in which case please ignore my rantings. </p> 2007-05-14T12:52:40-04:002358http://forums.silverlight.net//p/699/2358.aspx/1?Re+Unusable+without+basic+UI+controlsRe: Unusable without basic UI controls <p>I think we need basic controls to replace what exists in HTML so that from there we the community can extend. However we need a basic control set such as:</p> <p>Button (maybe)<br> TextBox<br> CheckBox<br> ComboBox<br> ListBox</p> <p>Ontop of that we definately need what exists in WPF for layout. It makes making rich UI very simple and otherwise will require a lot of resize code manually done for every site etc.</p> <p>Border<br> WrapPanel<br> FlowPanel<br> StackPanel<br> .. etc..<br> <br> Ontop of that we really need docking/anchoring layout logic.</p> <p>With these things I think the UI of Silverlight will be awesome but I think we really need them.</p> 2007-05-14T14:11:22-04:00