RE: Invalid XML (addendum)
Can you use an InvokeCommandAction (see the Behaviors category in Blend. That behaviour isn't in Blend 3 and I can't yet find it online or in the gallery - Greg ___ ozsilverlight mailing list ozsilverlight@ozsilverlight.com http://prdlxvm0001.codify.net/mailman/listinfo/ozsilverlight
unsubscribe
unsubscibe This Message has been scanned for Viruses by AUSTAR Communications Antivirus and content checking applications. AUSTAR Communications ___ ozsilverlight mailing list ozsilverlight@ozsilverlight.com http://prdlxvm0001.codify.net/mailman/listinfo/ozsilverlight
RE: Invalid XML (Key attribute fixed)
The error Key attribute can only be used on an element was caused by pasting the block of XAML over from a WPF application into SL3. Simply removing the x:Key from the element fixes the problem with no side effects. I wasn't using the Key in code. However, more than an hour of web searching and experiments has failed to make Blend 3 recognise the Command= element and the designer remains broken. I felt sure that adding something to the as a hint to Blend's XAML parser would fix it, but no luck so far. -- Greg <>___ ozsilverlight mailing list ozsilverlight@ozsilverlight.com http://prdlxvm0001.codify.net/mailman/listinfo/ozsilverlight
Re: Invalid XML (addendum)
Can you use an InvokeCommandAction (see the Behaviors category in Blend. Could you do it in Blend 4? Things are way better with the new XamlParser. On Thu, Jul 29, 2010 at 8:32 AM, Greg Keogh wrote: > I should mention that I’ve been suffering the same Blend 3 designer red > box of death for weeks now since I used a merged resource dictionary in a > few controls. I presume this is related to my previous post about the > Command element with similar symptoms. I’ve got to find a way around these > designer problems urgently, as it’s becoming a serious drain upon my > productivity. > > > > Greg > > > > > > > > ___ > ozsilverlight mailing list > ozsilverlight@ozsilverlight.com > http://prdlxvm0001.codify.net/mailman/listinfo/ozsilverlight > > -- Miguel A. Madero Reyes www.miguelmadero.com (blog) m...@miguelmadero.com <>___ ozsilverlight mailing list ozsilverlight@ozsilverlight.com http://prdlxvm0001.codify.net/mailman/listinfo/ozsilverlight
Invalid XML (addendum)
I should mention that I've been suffering the same Blend 3 designer red box of death for weeks now since I used a merged resource dictionary in a few controls. I presume this is related to my previous post about the Command element with similar symptoms. I've got to find a way around these designer problems urgently, as it's becoming a serious drain upon my productivity. Greg <>___ ozsilverlight mailing list ozsilverlight@ozsilverlight.com http://prdlxvm0001.codify.net/mailman/listinfo/ozsilverlight
Command binding and Invalid XML
Folks, I used the instructions on this page to bind Button clicks to controller properties: http://johnpapa.net/silverlight/5-simple-steps-to-commanding-in-silverlight/ It's all working nicely, and I've created a generic version. However, it's killed the blend 3 designer. I just get the dreaded red box with Invalid XML and in the code you can see this: It's nice to have the command binding working, but it's worse to have the designer die everywhere I bind. Any ideas anyone? Greg <>___ ozsilverlight mailing list ozsilverlight@ozsilverlight.com http://prdlxvm0001.codify.net/mailman/listinfo/ozsilverlight
RE: ResourceDictionary cannot find key
The only exception is the ResourceKey not found exception. I checked in Reflector and the resources are in the .g.resources file. I thought about the resources dependency and I think I looked there, but I will have another look tomorrow and get back to you. T. From: ozsilverlight-boun...@ozsilverlight.com [mailto:ozsilverlight-boun...@ozsilverlight.com] On Behalf Of Miguel Madero Sent: Wednesday, 28 July 2010 4:38 PM To: ozSilverlight Subject: Re: ResourceDictionary cannot find key Not sure how the Telerik Theme's work, but I think the issue might be in another place. Do you an internal exception? Could you share the code inside GridView.xaml? I'm thinking it might have another dependency. Could you check in Reflector that you actual have the resource in the expected location? It should be inside AssemblyName.g.resources with the key themes/Telerik.Windows.Controls.GridView.xaml On Wed, Jul 28, 2010 at 2:29 PM, wrote: Hi all, I am having trouble with a ResourceDictionary that contains MergedDictionaries. Basically, I am attempting to create a theme for Telerik controls, however that should be irrelevant as the problem is with ResourceDictionary. I copied in all the theme information from one of their sample themes into an external assembly that I have referenced from within my project. All the xaml files have their Build Action set to Resource. The theme project has a class in it with the theme name and the BuiltIn attribute set, as follows: [ThemeLocation(ThemeLocation.BuiltIn)] public class AcmeDefaultTheme : Telerik.Windows.Controls.Theme { public AcmeDefaultTheme() { //the following line is actually ignored because of the BuiltIn attribute //above! this.Source = new Uri("/Acme.RadControls.Theme;component/themes/Generic.xaml", UriKind.Relative); } } I have added the namespace to the xaml of the page where I want to use the theme: xmlns:brightstarTheme="clr- namespace:Acme.RadControls.Theme;assembly=Acme.RadControls.Theme" I have made a reference to the theme in the resources section. Firstly like this: and secondly I tried this: In the grid tag, I have added the style: Everything compiles ok, however when I run the application, I get the following error: Failed to assign to property 'System.Windows.ResourceDictionary.Source'... with the more detailed error of: A ResourceDictionary '/Acme.RadControls.Theme;component/Themes/Telerik.Windows.Controls.Grid View.xaml' cannot be found. Please make sure that references to the needed theme assemblies have been added to the project. The problem is that this xaml resources file DOES exist at the location specified. Any ideas what I might be doing wrong? Regards, Tony ___ ozsilverlight mailing list ozsilverlight@ozsilverlight.com http://prdlxvm0001.codify.net/mailman/listinfo/ozsilverlight -- Miguel A. Madero Reyes www.miguelmadero.com (blog) m...@miguelmadero.com ___ ozsilverlight mailing list ozsilverlight@ozsilverlight.com http://prdlxvm0001.codify.net/mailman/listinfo/ozsilverlight