RE: The verboseness of Visibility
Maybe, but does hidden/collapsed have any value when visible? In which case having them as a separate state seems incorrect to me. I'm happy to have it as is, but as I said, I'm used to it. -Original Message- From: ozsilverlight-boun...@ozsilverlight.com [mailto:ozsilverlight-boun...@ozsilverlight.com] On Behalf Of Tony Wright Sent: Tuesday, 16 March 2010 7:07 AM To: 'ozSilverlight' Subject: RE: The verboseness of Visibility Well my thoughts are that Collapsed and Hidden are just states of not visible. So I'm still out on whether this is just annoying. T. -Original Message- From: ozsilverlight-boun...@ozsilverlight.com [mailto:ozsilverlight-boun...@ozsilverlight.com] On Behalf Of Steven Nagy Sent: Sunday, 14 March 2010 9:25 PM To: 'ozSilverlight' Subject: RE: The verboseness of Visibility I also find myself using MVVM a lot and I tend to just expose a property to bind to that is of type Visibility, wrapping up the underlying model that needs a bool. So really, I don't often find myself needing the BoolToVisibilityConverter anyway (and also I think there is a default converter for it now in the WPF framework bits, maybe there is one in SL too?) -Original Message- From: ozsilverlight-boun...@ozsilverlight.com [mailto:ozsilverlight-boun...@ozsilverlight.com] On Behalf Of ton...@tpg.com.au Sent: Friday, 12 March 2010 9:20 AM To: ozSilverlight Subject: RE: The verboseness of Visibility Cool, at least now I know the reason! Thanks. On Fri, Mar 12th, 2010 at 10:10 AM, ste...@snagy.name wrote: No idea about this in SL but in WPF we have the same. Visibility DOES have 3 states: Visible, Hidden, Collapsed. Hidden is much differen from collapsed - a hidden object will still take the same amount of real estate such that if you have items stacked and you set the first one as hidden, the second item will be in the same position still. However if you collapse the first item, the second item will move up to assume its spot. So collapsing works much better for flow layouts. For people in WPF world, they're used to this tri-state and a BoolToVisibilityConverter is a 2 second job. (you all have a master resource dictionary for all these common reusable elements right?). Perhaps the SL change is the first step towards supporting this tri-state? Quoting Mark markspambus...@gmail.com: Yeah, I've thought about this too. I use a converter and so the View Model can just use a bool, but it does seem like an unnecessary step. -Original Message- From: ozsilverlight-boun...@ozsilverlight.com [mailto:ozsilverlight-boun...@ozsilverlight.com] On Behalf Of ton...@tpg.com.au Sent: Friday, 12 March 2010 11:31 a.m. To: ozsilverlight@ozsilverlight.com Subject: The verboseness of Visibility Hi all, Does anyone else get annoyed at the extra hastle required to set and bind the Visibility property? I mean, how easy was it in the old days to simply set IsVisible=true or IsVisible=false? You didn't need a Visibility to Bool converter, which is extra unneccessary processing, and an extra point of failure if it's forgotten, and more text to make mistakes. I mean, come on, there are only two states. There will never be a third state. Instead of writing in my code: TermTextBox.IsVisible = MyBoolVar; I have to write something like: TermTextBox.Visibility = (MyBoolVar ? Visibility.Visible : Visibility.Collapsed); Does it somehow give it extra contextual meaning for all the extra effort? No. Can there be a third state, somehow semi-visible. No - that would be handled via an opacity or animation. There is only a single meaning! It's Friday, bring it on! Regards, Tony ___ ozsilverlight mailing list ozsilverlight@ozsilverlight.com http://prdlxvm0001.codify.net/mailman/listinfo/ozsilverlight ___ ozsilverlight mailing list ozsilverlight@ozsilverlight.com http://prdlxvm0001.codify.net/mailman/listinfo/ozsilverlight ___ ozsilverlight mailing list ozsilverlight@ozsilverlight.com http://prdlxvm0001.codify.net/mailman/listinfo/ozsilverlight ___ ozsilverlight mailing list ozsilverlight@ozsilverlight.com http://prdlxvm0001.codify.net/mailman/listinfo/ozsilverlight ___ ozsilverlight mailing list ozsilverlight@ozsilverlight.com http://prdlxvm0001.codify.net/mailman/listinfo/ozsilverlight ___ ozsilverlight mailing list ozsilverlight@ozsilverlight.com http://prdlxvm0001.codify.net/mailman/listinfo/ozsilverlight
RTF in silverlight
Hi all, I've got the a bunch of RTF coming from a service call that needs to render. I have two options: Find a control that can render RTF or convert the RTF to something else on the server side that can be rendered natively. For option 1, it seems the new SL4 RichTextbox doesn't support RTF (unless I've missed the mechanism for importing RTF text into the control?). I've trialed the DevExpress tool but it fails to render RTF with tables. I'm currently pulling down the ComponentOne RichTextbox to see if it does any better. I've also tried option 2 - using a WPF rich textbox (in memory only) to load the RTF and then push out various output formats. It supports output to XAML but of course the XAML is not compliant with Silverlight. I have my fingers crossed for the component one control but I'm not hopeful. I was wondering if anyone had any other suggestions on how to approach this and if anyone has found a good RTF control for silverlight. Client side is SL4 and server side is .Net 4.0. Cheers, Steven Nagy Readify | Senior Developer M: +61 404 044 513 | E: steven.n...@readify.netsip:steven.n...@readify.net | B: azure.snagy.namehttp://azure.snagy.name/ ___ ozsilverlight mailing list ozsilverlight@ozsilverlight.com http://prdlxvm0001.codify.net/mailman/listinfo/ozsilverlight
RE: RTF in silverlight
You're right to a degree. We get stuff in a variety of formats from different systems. Some are plain text, some are RTF, some are strongly typed classes of data, etc. So RTF is a source type that we have no control over. We also investigated the option of converting RTF to HTML and displaying that in a Html control (I tried all the control vendors controls here as well). Essentially they 'cheat' by putting a browser element into Silverlight. The result is that nothing can render over the top of the HTML; its always on top. In our case we do need menus to render over the HTML. There are other work-arounds for this problem but they degrade the user experience. PDF is possible; we could convert to PDF on the server side and return a link to the PDF file. However we are looking for a richer embedded experience where the content being displayed looks like it is part of the page. I'm not sure that we could achieve that with PDF. It's a shame that we're up to version 4 of SL and still have to make compromises. I'm too stubborn for that. :) However I also realise that it's a niche problem and SL can't accommodate all scenarios. Steven Nagy Readify | Senior Developer M: +61 404 044 513 | E: steven.n...@readify.netsip:steven.n...@readify.net | B: azure.snagy.namehttp://azure.snagy.name/ From: ozsilverlight-boun...@ozsilverlight.com [mailto:ozsilverlight-boun...@ozsilverlight.com] On Behalf Of Barry Beattie Sent: Saturday, 15 May 2010 8:50 AM To: ozSilverlight Subject: Re: RTF in silverlight just putting on my BA hat for a second I know the service call is spitting out RTF, but why RTF and not, say, PDF? it sounds like you just need to render them, not interact with them. just curious On Sat, May 15, 2010 at 8:11 AM, Steven Nagy steven.n...@readify.netmailto:steven.n...@readify.net wrote: Thanks for the various responses. The Telerik control - I couldn't see that it supported RTF. Its funny because there's lots of RichTextbox controls out there but very few actually support RTF (most have their own versions of WPF's FlowDocument instead). I suspect these issues are because different companies have different implementations of the specification. Plus the specification has many versions. Plus some writers/readers may be more tolerant to invalid control codes, while others are more strict. What the world needs is an RTF validator where you can post your RTF. I didn't know Silverlight supported XPS, I'll investigate that option. Thanks for the sample Carl, I actually need RTF though, including image data which is embedded in the RTF as binary. Pretty much fill RTF support in SL is required. Tried the ComponentOne control as well - didn't seem to support tables properly either. This seems to be a common problem. Thanks again all. Steven Nagy Readify | Senior Developer M: +61 404 044 513 | E: steven.n...@readify.netmailto:steven.n...@readify.net | B: azure.snagy.namehttp://azure.snagy.name/ From: ozsilverlight-boun...@ozsilverlight.commailto:ozsilverlight-boun...@ozsilverlight.com [mailto:ozsilverlight-boun...@ozsilverlight.commailto:ozsilverlight-boun...@ozsilverlight.com] On Behalf Of jason schluter Sent: Saturday, 15 May 2010 1:02 AM To: ozsilverlight@ozsilverlight.commailto:ozsilverlight@ozsilverlight.com Subject: RE: RTF in silverlight Perhaps you can convert it to XPS? From: steven.n...@readify.netmailto:steven.n...@readify.net To: ozsilverlight@ozsilverlight.commailto:ozsilverlight@ozsilverlight.com Date: Thu, 13 May 2010 16:31:31 -0700 Subject: RTF in silverlight Hi all, I've got the a bunch of RTF coming from a service call that needs to render. I have two options: Find a control that can render RTF or convert the RTF to something else on the server side that can be rendered natively. For option 1, it seems the new SL4 RichTextbox doesn't support RTF (unless I've missed the mechanism for importing RTF text into the control?). I've trialed the DevExpress tool but it fails to render RTF with tables. I'm currently pulling down the ComponentOne RichTextbox to see if it does any better. I've also tried option 2 - using a WPF rich textbox (in memory only) to load the RTF and then push out various output formats. It supports output to XAML but of course the XAML is not compliant with Silverlight. I have my fingers crossed for the component one control but I'm not hopeful. I was wondering if anyone had any other suggestions on how to approach this and if anyone has found a good RTF control for silverlight. Client side is SL4 and server side is .Net 4.0. Cheers, Steven Nagy Readify | Senior Developer M: +61 404 044 513 | E: steven.n...@readify.netmailto:steven.n...@readify.net | B: azure.snagy.namehttp://azure.snagy.name/ ___ ozsilverlight mailing list ozsilverlight@ozsilverlight.commailto:ozsilverlight@ozsilverlight.com http://prdlxvm0001.codify.net/mailman/listinfo/ozsilverlight
RE: Lots of bind/notify classes
Check out Post#: http://www.sharpcrafters.com/postsharp/documentation/getting-started Example: http://ruskin-dantra.blogspot.com/2009/03/inotifypropertychanged-made-easier.html Not sure if this works in Silverlight land though. Steven Nagy Readify | Senior Developer M: +61 404 044 513 | E: steven.n...@readify.netsip:steven.n...@readify.net | B: azure.snagy.namehttp://azure.snagy.name/ From: ozsilverlight-boun...@ozsilverlight.com [mailto:ozsilverlight-boun...@ozsilverlight.com] On Behalf Of Greg Keogh Sent: Friday, 28 May 2010 4:18 PM To: 'ozSilverlight' Subject: Lots of bind/notify classes Look Dave, I can see you're really upset about this. I honestly think you ought to sit down calmly, take a stress pill, and think things over - HAL (2001) I was wondering if anyone has found a nice way of creating/managing lots of classes that are suitable for binding and implement INotifyPropertyChanged. As you know, you have to keep coding properties like this: public string CompanyName { get {return this.companyNameValue;} set { if (value != this.companyNameValue) { this.companyNameValue = value; NotifyPropertyChanged(CompanyName); } } } You can create a simple base class to factor out the event, but not much else, as there is no way I know of to intercept any arbitrary property setter and add custom processing. Is that right?! Coding the above skeleton dozens or hundreds of times gets tedious and I'm hoping there's a better way. I did consider using a T4 generator to spit out the classes, but that's an obtuse way around the problem and will require extra research time (but I see others have done it already). I have dozens of existing classes with dozens of properties and I'd like to use them for binding, but I'd have to expand every property to be like the same above, which would be hell. Greg ___ ozsilverlight mailing list ozsilverlight@ozsilverlight.com http://prdlxvm0001.codify.net/mailman/listinfo/ozsilverlight
RE: Out of memory exceptions in VS2010 with Silverlight 4
Yes but everyone's Facebook status will have been updated during that outage period so its not a total loss... ;) -Original Message- From: ozsilverlight-boun...@ozsilverlight.com [mailto:ozsilverlight-boun...@ozsilverlight.com] On Behalf Of ton...@tpg.com.au Sent: Friday, 23 July 2010 10:21 AM To: ozsilverlight@ozsilverlight.com Subject: Out of memory exceptions in VS2010 with Silverlight 4 Hi all, It's Friday, so I thought I would let you know about one issue in our team. Basically, we are running 32-bit Windows XP. The machines have anywhere between 2 and 4GB RAM. Everyone in the team gets System Out Of Memory Exceptions. When that happens, you have wasted the compile time, and then you have to shut down VS2010, start it up, then open up the solution. The solution has a significant number of projects in it. Apparently this problem only happens in 32-bit windows. So for the whole restart process, we have assigned 10 minutes to this procedure. Next we have logged the total crash time for our team of 7 developers (some days people were away, but it ultimately doesn't matter). The times lost are as follows: 14th 240 mins 15th 100 mins 18th 120 mins 19th 60 mins 20th 200 mins 21st 100 mins 22nd 140 mins we have assigned an arbitrary value against the times of $100/hour. So the loss of productivity is 16 hours @ $100/hour = $1600. Hopefully soon these figures will become a significant enough figure to justify an upgrade! Regards, Tony ___ ozsilverlight mailing list ozsilverlight@ozsilverlight.com http://prdlxvm0001.codify.net/mailman/listinfo/ozsilverlight ___ ozsilverlight mailing list ozsilverlight@ozsilverlight.com http://prdlxvm0001.codify.net/mailman/listinfo/ozsilverlight
RE: IIS Log Reader
How many years in the making Joco? J From: ozsilverlight-boun...@ozsilverlight.com [mailto:ozsilverlight-boun...@ozsilverlight.com] On Behalf Of Joseph Cooney Sent: Wednesday, 18 August 2010 4:06 AM To: ozSilverlight Cc: ozDotNet Subject: Re: IIS Log Reader Thanks for the kind words grant. If anyone has any feature requests other than 'less crashy' I'm all ears. I've made the cheque out to 'Grant Molloy' - I hope this is OK ;-) Joseph On Tue, Aug 17, 2010 at 4:05 PM, Grant Molloy graken...@gmail.com wrote: Thought I would share with this little gem of a product I found hiding in my RSS feeds released by Joseph Cooney, author of LearnWpf.com.. http://jcooney.net/post/2010/08/03/Announcing-my-latest-side-project-logEnvy -bringing-e28098sexye28099-to-windows-and-IIS-logs.aspx ___ ozsilverlight mailing list ozsilverlight@ozsilverlight.com http://prdlxvm0001.codify.net/mailman/listinfo/ozsilverlight ___ ozsilverlight mailing list ozsilverlight@ozsilverlight.com http://prdlxvm0001.codify.net/mailman/listinfo/ozsilverlight
RE: Decoupling from RIA services
Hi David, We are using RIA and a standard ViewModel takes an IRepositoryT where T : Entity. When I want to track lists of items I use ObservableCollectionT as well and add it to the EntitySet if I want it commited to the database. Under the hood, an IRepositoryProduct and IRepositoryCategory will use the same domain context however we are in the process of adjusting this to use the same domain context only per ViewModel (ie unit of work) and this is managed by the IOC container. However I never really need to create NEW entity sets and was unsure how to answer your question. Usually with .Include(Products) you would get all the products with a category, or at least an empty entity set if there are none, and you can still add to that existing entity set on the Category entity. Steven Nagy Readify | Senior Consultant M: +61 404 044 513 | E: steven.n...@readify.netsip:steven.n...@readify.net | B: azure.snagy.namehttp://azure.snagy.name/ From: ozsilverlight-boun...@ozsilverlight.com [mailto:ozsilverlight-boun...@ozsilverlight.com] On Behalf Of David Burela Sent: Thursday, 2 September 2010 4:45 PM To: ozSilverlight Subject: Re: Decoupling from RIA services Answer: Just hack it out and use an ObservableCollection instead. On 2 September 2010 14:10, David Burela david.bur...@gmail.commailto:david.bur...@gmail.com wrote: I am working on a new Silverlight application. It is a standard MVVM application using RIA services to retrieve the data. I am trying to not have the domain service in my ViewModel, and I have managed to get 99% of the domain context out. The only thing that I am just left with, is a EntitySet as the base of one of my collections, which I'm not too worried about. But for testing, etc. I need to be able to new up one of these. When i go var entityset = new EnitySetProducts(); It does create a new EntitySet. However, it doesn't initialise it's internal list. So when I try to add items to it in my tests the whole thing throws null reference exceptions. Does anyone have a way of creating EntitySets client side so I can have everything decoupled from my domain context? -David Burela ___ ozsilverlight mailing list ozsilverlight@ozsilverlight.com http://prdlxvm0001.codify.net/mailman/listinfo/ozsilverlight
RE: Ria Services : Where clause with multiple items
Lambda expressions are serialisable with the right serialiser. you could have a custom service method that takes a string as input which happens to be the serialised lambda. Deserialise it and apply the lambda to your entity model and then return the results. Have no idea if this would actually work though J From: ozsilverlight-boun...@ozsilverlight.com [mailto:ozsilverlight-boun...@ozsilverlight.com] On Behalf Of David Burela Sent: Monday, 6 September 2010 5:10 PM To: ozSilverlight Subject: Re: Ria Services : Where clause with multiple items This sounded like the perfect solution. But unfortunately RIA crashes Nested query expressions are not supported -David Burela On 6 September 2010 16:41, Peter Gfader pe...@gfader.com wrote: Hi David Check out the PredicateBuilder from J. Albahiri (Nesting Predicates) Source here http://www.albahari.com/nutshell/predicatebuilder.aspx .peter.gfader. http://blog.gfader.com/ http://twitter.com/peitor On Mon, Sep 6, 2010 at 4:15 PM, David Burela david.bur...@gmail.com wrote: This seems like a simple problem but I am stumped. I have a screen with a number of filters. In one instance I have checkboxes of countries (Australia, China, Japan, etc). I want to filter to only show products that are located in the checked countries. So products listed in Australia OR in China OR in Japan. My issue is that the RIA servies query object, only lets you chain up ANDs var query = ProductDomainContext.ProductSelectQuery(); if(AustraliaIsSelected) query = query.Where(p = p.Country == Australia); if(ChinaIsSelected) query = query.Where(p = p.Country == China); Doing it this way will end up with a query where the country is Australia AND China. I was hoping I could go var checkedCountries = new []{Australia, China}; query = query.Where(p = checkedCountries.Contains(p.Country) But RIA complains that it does not support the contains operation. Any ideas? -David Burela P.S. I can't do it on one line like this query.Where(p = p.Country==Australia || p.Country == China); Because at runtime I don't know how many are there. The above is just a simplified example ___ ozsilverlight mailing list ozsilverlight@ozsilverlight.com http://prdlxvm0001.codify.net/mailman/listinfo/ozsilverlight -- .peter.gfader. http://blog.gfader.com/ http://twitter.com/peitor ___ ozsilverlight mailing list ozsilverlight@ozsilverlight.com http://prdlxvm0001.codify.net/mailman/listinfo/ozsilverlight ___ ozsilverlight mailing list ozsilverlight@ozsilverlight.com http://prdlxvm0001.codify.net/mailman/listinfo/ozsilverlight
RE: Ria Services : Where clause with multiple items
That would work but breaks the abstraction. Presumably this is part of his IRepositoryT. We have the same abstraction and instead of putting lambdas straight onto the repository.Entities, we instead use the SpecificationT pattern. Even still we would still have the same problem. From: ozsilverlight-boun...@ozsilverlight.com [mailto:ozsilverlight-boun...@ozsilverlight.com] On Behalf Of Jordan Knight Sent: Monday, 6 September 2010 7:13 PM To: ozSilverlight Subject: Re: Ria Services : Where clause with multiple items Pass the params up to the server and process it there... (just add a param to your query method) Cheers, Jordan. On 06/09/2010, at 4:15 PM, David Burela david.bur...@gmail.com wrote: This seems like a simple problem but I am stumped. I have a screen with a number of filters. In one instance I have checkboxes of countries (Australia, China, Japan, etc). I want to filter to only show products that are located in the checked countries. So products listed in Australia OR in China OR in Japan. My issue is that the RIA servies query object, only lets you chain up ANDs var query = ProductDomainContext.ProductSelectQuery(); if(AustraliaIsSelected) query = query.Where(p = p.Country == Australia); if(ChinaIsSelected) query = query.Where(p = p.Country == China); Doing it this way will end up with a query where the country is Australia AND China. I was hoping I could go var checkedCountries = new []{Australia, China}; query = query.Where(p = checkedCountries.Contains(p.Country) But RIA complains that it does not support the contains operation. Any ideas? -David Burela P.S. I can't do it on one line like this query.Where(p = p.Country==Australia || p.Country == China); Because at runtime I don't know how many are there. The above is just a simplified example ___ ozsilverlight mailing list ozsilverlight@ozsilverlight.com http://prdlxvm0001.codify.net/mailman/listinfo/ozsilverlight ___ ozsilverlight mailing list ozsilverlight@ozsilverlight.com http://prdlxvm0001.codify.net/mailman/listinfo/ozsilverlight
RE: So, is Silverlight dead yet?
He meant to post this image for his own perspective: http://tinypic.com/r/2hekmlc/7 I say let's stop speculating and get on with the show. Worst case we can rename this list 'ozHTML5' From: ozsilverlight-boun...@ozsilverlight.com [mailto:ozsilverlight-boun...@ozsilverlight.com] On Behalf Of Paul Stovell Sent: Monday, 1 November 2010 5:57 PM To: ozSilverlight Subject: Re: So, is Silverlight dead yet? Jose, There was a lot of sarcasm in those images. Don't take them literally. The second two charts are my impression of the technologies Microsoft tend to choose. I've actually managed to avoid all of #1 and #2 in your suggestions, so the only Silverlight application I'd ever used from Microsoft was Live Mesh. Paul On Mon, Nov 1, 2010 at 4:48 PM, Jose Fajardo jose.faja...@cynergysystems.com wrote: With all respect Paul Stovell I can't make sense of what your diagrams are saying. I apologize if I'm reading them incorrectly BUT the way I read that diagram your suggesting that with Rays' exodus Silverlight has no champion within MS and it will literally cease to exist?! I guess if you only read blog news articles, which pretty much relay that message, you'd be forgiven for thinking that way. But if you look at the facts MS are doing everything but neglecting Silverlight... Just look at Microsoft's use of Silverlight Penetration Numbers... 1. New Products a) the new Azure portal , b) Windows InTune , c) Lync client are all Silverlight apps d) Silverlight profiling tool in VS - massive investment by MS for Silverlight development d) Lightswitch e) PivotControl - this has massive potential to change the data visualization and mining industry f) etc many others that I'm sure will be announced in the near and far future 2. Deep integration of Silverlight into existing core products - deep Silverlight integration across the business, Live and server products (eg. Sharepoint/ MSCRM / Live Portal / Bing all have strong Silverlight integration) 3. Penetration numbers ~ 96% Flash ~ 69% Silverlight (that's up from 64%) ~ 10% (once you add up all the numbers) http://www.statowl.com/web_browser_usage_by_version.php?limit%5B%5D=ie http://www.statowl.com/web_browser_usage_by_version.php?limit%5B%5D=ielimi t%5B%5D=firefoxlimit%5B%5D=safarilimit%5B%5D=chromelimit%5B%5D=operalimi t%5B%5D=netscape limit%5B%5D=firefoxlimit%5B%5D=safarilimit%5B%5D=chromelimit%5B%5D=opera limit%5B%5D=netscape Again I apologize if I've miss-read your graphs BUT the way I see it based on the facts in front of me (from Microsoft's announcements and public data) Silverlight is alive and kicking and most importantly has healthy investment from Microsoft! Regards Jose Fajardo -Original Message- From: ozsilverlight-boun...@ozsilverlight.com [mailto:ozsilverlight-boun...@ozsilverlight.com] On Behalf Of ozsilverlight-requ...@ozsilverlight.com Sent: Monday, November 01, 2010 6:22 PM To: ozsilverlight@ozsilverlight.com Subject: ozsilverlight Digest, Vol 15, Issue 8 Send ozsilverlight mailing list submissions to ozsilverlight@ozsilverlight.com To subscribe or unsubscribe via the World Wide Web, visit http://prdlxvm0001.codify.net/mailman/listinfo/ozsilverlight or, via email, send a message with subject or body 'help' to ozsilverlight-requ...@ozsilverlight.com You can reach the person managing the list at ozsilverlight-ow...@ozsilverlight.com When replying, please edit your Subject line so it is more specific than Re: Contents of ozsilverlight digest... Today's Topics: 1. Re: So, is Silverlight dead yet? (Miguel Madero) 2. RE: So, is Silverlight dead yet? (Darren Neimke) 3. Re: So, is Silverlight dead yet? (Paul Stovell) -- Message: 1 Date: Mon, 1 Nov 2010 15:34:52 +1100 From: Miguel Madero m...@miguelmadero.com Subject: Re: So, is Silverlight dead yet? To: ozSilverlight ozsilverlight@ozsilverlight.com Message-ID: aanlktinc0xdyf6hexb6zy0pcnpf8x_ensbhyn3iwr...@mail.gmail.com Content-Type: text/plain; charset=iso-8859-1 Nice post. But I'm not sure MS is pushing that much (or even that little) for WPF internally or externally. On Mon, Nov 1, 2010 at 1:43 PM, Paul Stovell p...@paulstovell.com wrote: I took the liberty of graphing this: http://www.paulstovell.com/tool-for-the-job On Mon, Nov 1, 2010 at 12:08 PM, Stephen Price step...@littlevoices.comwrote: Wow. You mean, the right tool for the right job still applies? *feigned shocked look* I've been saying Silverlight is for Apps and HTML is for sites for ages. Nothing changed here. Should be interesting how they clarify the statement. :) On Mon, Nov 1, 2010 at 9:25 AM, Miguel Madero m...@miguelmadero.com wrote: I like how Shawn puts it, Silverlight is good for Apps; HTML is good for sites. That said, WPF is better
RE: DataGridCheckBoxColumn
Disclaimer - Office365 just put your post in my ozWpf folder and that was the hat I was wearing when I answered. Still, should be much the same... From: ozsilverlight-boun...@ozsilverlight.com [mailto:ozsilverlight-boun...@ozsilverlight.com] On Behalf Of Steven Nagy Sent: Tuesday, 6 December 2011 3:23 PM To: ozSilverlight Subject: RE: DataGridCheckBoxColumn I love your posts Greg because there's no actual question there :) To solve #1, Template column actually works fine and I promise it will only take you about 1 minute more. You get to provide your own DataTemplate which can contain a checkbox with the same {Binding Property} for the IsChecked property. Works a treat. But yeah, I hate this problem as a whole too... I can see you're a glass-half-full kinda guy! From: ozsilverlight-boun...@ozsilverlight.com [mailto:ozsilverlight-boun...@ozsilverlight.com] On Behalf Of Greg Keogh Sent: Tuesday, 6 December 2011 3:19 PM To: 'ozSilverlight' Subject: DataGridCheckBoxColumn So I bind some DataGrid columns and one of them is a bool which corresponds to a DataGridCheckBoxColumn. It all displays nicely and I get excited. Then I notice that clicking the CheckBox cell puts it in edit mode, then I click it again to change the value. Then I notice that the binding change doesn't fire until I press Enter or Tab or whatever to change focus. So it takes 3 gestures to change a value in a CheckBox column. This is unacceptable for this app. I see many people complain about the first quirk and suggest you use a template column or more code and tricks as a workaround, but it all looks fragile, unreliable and I can see myself burning another few hours of unpaid time and it all probably won't work anyway. No one seems to mention the focus problem. In WinForms you have to trap the cell dirty change event and commit to the data source, but there is no equivalent I can find. Nor does the UpdateSourceTrigger have a PropertyChanged value. So I'm stuffed again. Greg ___ ozsilverlight mailing list ozsilverlight@ozsilverlight.com http://prdlxvm0001.codify.net/mailman/listinfo/ozsilverlight
RE: DataGrid row button click
If you are using MVVM, then you can bind your button to a command on the object being bound to. From: ozsilverlight-boun...@ozsilverlight.com [mailto:ozsilverlight-boun...@ozsilverlight.com] On Behalf Of Greg Keogh Sent: Tuesday, 6 December 2011 8:04 PM To: 'ozSilverlight' Subject: DataGrid row button click Folks, I think I've outsmarted myself. I have a DataGrid bound with a template column containing a Button and it's all looking quite acceptable. Now I'm a bit flummoxed, as when one of the buttons is clicked I have to find out which object in the data source is behind the row containing the button. Unlike the WinForms grid, I have no RowIndex or similar property to help me, all I have are two properties on the Click event: sender and e.OriginalSource, which seem to be the same. I'll probably have to walk backwards up the control tree somehow to find the row and the item it's bound to, but I don't know how yet. Has anyone done this and got clues? I'll keep web searching in the meantime. Greg ___ ozsilverlight mailing list ozsilverlight@ozsilverlight.com http://prdlxvm0001.codify.net/mailman/listinfo/ozsilverlight
RE: DataGrid row button click (answered?!)
The row being acted upon is what actually has the Command object, so you're already in the context of what you want to get information from ViewModel: Public ObservableCollectionFooModel Foos { get; set; } FooModel: public string Name { get; set; } public RelayCommand AddWidget { get; set; } View.xaml: Datagrid ItemsSource={Binding Foos} Datagrid.Columns DataGridTemplateColumn Header=Execute! DataTemplate Button Command={Binding AddWidget} / .. Something like that (pseudocode) From: ozsilverlight-boun...@ozsilverlight.com [mailto:ozsilverlight-boun...@ozsilverlight.com] On Behalf Of Greg Keogh Sent: Tuesday, 6 December 2011 9:07 PM To: 'ozSilverlight' Subject: RE: DataGrid row button click (answered?!) To find the DataGridCell that contains the clicked button I found that a simple iteration up through the Parent properties of the sender eventually reaches the cell. I don't go to the trouble of using the VisualTreeHelper as the Parent property was enough in this case (I was doing that in a WPF app). The DataContext property of the cell can luckily be cast to the object type in the bound collection. I get the creeps about how fragile this all is, having no strongly typed or nicely indexed values to work with. Are we sure this is the way we're intended to do these things? I have this feeling of unease that there is some technique that I'm missing, but I doubt it. If you are using MVVM, then you can bind your button to a command on the object being bound to. How do you pass to the command handler something to identify the button/row/object being acted upon? Greg ___ ozsilverlight mailing list ozsilverlight@ozsilverlight.com http://prdlxvm0001.codify.net/mailman/listinfo/ozsilverlight
RE: Skills
Hi Jasim, I know you said 'not javascript' but I think JS frameworks are really the order of the day. The ones I hear thrown around the most are: - jQuery - Backbone - Knockout - Spline But you said you're doing UX work.. are you looking at developer skills or UX skills to improve? HTML5 seems a reasonably safe choice either way. And ASP.Net MVC 4 beta was released today, so that could be a good place to look as well if you are a .Net dev. Cheers, Steven Nagy Readify | Senior Consultant | MVP Windows Azure M: +61 404 044 513 | E: steven.n...@readify.netsip:steven.n...@readify.net | B: azure.snagy.namehttp://azure.snagy.name/ From: ozsilverlight-boun...@ozsilverlight.com [mailto:ozsilverlight-boun...@ozsilverlight.com] On Behalf Of Jasim Schluter Sent: Friday, 17 February 2012 2:11 PM To: ozsilverlight@ozsilverlight.com Subject: Skills Hi All, I've been playing with Silverlight since Silverlight 2 beta, and have just finished a 1 year 7 month contract doing UX work in Silverlight. Now that I have a chance to lift my head up and ask: What skills this group are they adding to their toolbox at the moment? And please not everyone say Javascipt! Cheers, Jasim Schluter Jasim Schluter | Blender3DLive | www.Blender3DLive.com | SilverLighter| mailmailto:cont...@blender3dlive.com | sitehttp://www.blender3dlive.com/ 6/166 Pacific Highway | North Sydney NSW 2060 | Australia | +61 400511241 m ___ ozsilverlight mailing list ozsilverlight@ozsilverlight.com http://prdlxvm0001.codify.net/mailman/listinfo/ozsilverlight
RE: Tracing deployed app
Hi Greg, Presuming it's a Silverlight app, the first thing you can do is attach the debugger from your dev machine. That's what's great about Silverlight - it's a client side technology. So when you hit the website in prod, you're still running the app locally. Just use VS to 'Attach to process' and find the IE (or other browser) instance that has process type 'Silverlight'. Next to ensure your app is talking to the server (let's say via WCF or RIA services) you can use Fiddler to view the requests/responses. If you are getting failed requests, you can turn on 'Failed Request Logging' in IIS, this will show you what HttpModules are being called, etc. You can also use process monitor to see which DLLs are spun up via the IIS worker process on the prod box (assuming you are allowed to RDP to it). Naturally turning on profiling to ensure your database is being called from the server helps identify any connection problems there. Beyond that, assuming it is a pure code issue, then yeah.. logging. :) Log4Net is a good place to start. But this is all for server side of course (WCF, RIA). If you're thinking about logging for client side, well just attaching the debugger should do the trick most the time. Hope this helps Steven Nagy Readify | Senior Consultant | MVP Windows Azure M: +61 404 044 513 | E: steven.n...@readify.netsip:steven.n...@readify.net | B: azure.snagy.namehttp://azure.snagy.name/ From: ozsilverlight-boun...@ozsilverlight.com [mailto:ozsilverlight-boun...@ozsilverlight.com] On Behalf Of Greg Keogh Sent: Saturday, 21 April 2012 5:52 PM To: 'ozSilverlight' Subject: Tracing deployed app Folks, I have one of those stinkers where my SL4 app woks nicely on my dev machine, but when it's deployed to the live server it behaves incorrectly. So I'm wondering what the easiest way is to log/trace what's happening inside the app on the live machine. In a previous app I had laced the code with my own logging which I put into a rolling array, and I had a button in the UI to show the lines in a list box. It works, but it's completely hand-written. I could add similar manual logging to my new app, but before I do that rather tedious work I was wondering if there are better ways of tracing/logging what's happening inside my SL4 app (inside IE8) on a live machine. It would be nice if I could add logging calls to my code, but let something else do the work of catching and displaying the data (like the Trace infrastructure). Perhaps there are tricks and techniques I'm not aware of. Greg ___ ozsilverlight mailing list ozsilverlight@ozsilverlight.com http://prdlxvm0001.codify.net/mailman/listinfo/ozsilverlight