SL4 does this OOB. The ImplicitStyleManager was deprecated. SL4 is so close to be released that I would suggest to use it for any new development even if its just for this feature.
On Wed, Mar 31, 2010 at 1:27 AM, Stephen Price <[email protected]>wrote: > You can use the Silverlight toolkit to apply your theme.xaml file and then > put implicit styles in that theme file. > > Its funny, I was surprised you couldn't do it, had forgotten I was using > the toolkit to apply my implicit styles. Glad its part of SL4. > > > On Wed, Mar 31, 2010 at 2:53 PM, ross <[email protected]> wrote: > >> In WPF you can do this in say your app.xaml or in a merged dictionary: >> >> <Application.Resources> >> <Style TargetType="Button"> >> <Setter Property="Background" Value="Red"/> >> </Style> >> </Application.Resources> >> >> And all buttons will be red unless the style is overridden. >> >> This doesn't work in Silverlight 3. You have to name the style then >> reference it as a static resource: >> >> <Style TargetType="Button" x:Name="buttonStyle"> >> <Setter Property="Background" Value="Red"/> >> </Style> >> >> <Button Style="{StaticResource buttonStyle}"></Button> >> >> Of course you can do this via the UI in Blend as well. >> >> I think it might be possible to set implicit styles in Silverlight 4 >> but haven't tried. >> >> On Wed, Mar 31, 2010 at 4:19 PM, Scott Barnes <[email protected]> >> wrote: >> > In WPF you can set global styles but in SIlverlight it's >> right+click+Apply >> > Style right? ie i'm not high in thinking that am I? >> > >> > >> > >> > J >> > >> > >> > >> > _______________________________________________ >> > ozsilverlight mailing list >> > [email protected] >> > http://prdlxvm0001.codify.net/mailman/listinfo/ozsilverlight >> > >> > >> _______________________________________________ >> ozsilverlight mailing list >> [email protected] >> http://prdlxvm0001.codify.net/mailman/listinfo/ozsilverlight >> > > > _______________________________________________ > ozsilverlight mailing list > [email protected] > http://prdlxvm0001.codify.net/mailman/listinfo/ozsilverlight > > -- Miguel A. Madero Reyes www.miguelmadero.com (blog) [email protected]
_______________________________________________ ozsilverlight mailing list [email protected] http://prdlxvm0001.codify.net/mailman/listinfo/ozsilverlight
