I think these are one of the many gripes I had with 3 and my lack of
motivation to write an actual SL app.

I know I'll be frustrated as hell moving from WPF down to SL3, with these
subtlties in the way. But hopefully SL4 becomes the starting path for me.

On Wed, Mar 31, 2010 at 6:27 PM, 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
>
>
_______________________________________________
ozsilverlight mailing list
[email protected]
http://prdlxvm0001.codify.net/mailman/listinfo/ozsilverlight

Reply via email to