Surely Windows Mobile 7 will finally get me off my @ss and coding some
Silverlight 4 (and XNA).

 

Carl.

 

From: [email protected]
[mailto:[email protected]] On Behalf Of Winston
Pang <[email protected]>
Sent: Wednesday, 31 March 2010 4:36 PM
To: ozSilverlight <[email protected]>
Subject: Re: You can't set Global Styles right?

 

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



______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
______________________________________________________________________
_______________________________________________ 
ozsilverlight mailing list 
[email protected] 
http://prdlxvm0001.codify.net/mailman/listinfo/ozsilverlight 

________________________________________________________________________
_______ 

This email has been scanned by the Bankwest Email Security System. 
________________________________________________________________________
_______ 

_______________________________________________________________________________
Unencrypted electronic mail is not secure and may not be authentic.
If you have any doubts as to the contents please telephone to confirm.

This electronic transmission including any attachments is intended only
for those to whom it is addressed. It may contain copyright material or
information that is confidential, privileged or exempt from disclosure by law.
Any claim to privilege is not waived or lost by reason of mistaken transmission
of this information. If you are not the intended recipient you must not
distribute or copy this transmission and should please notify the sender.
Your costs for doing this will be reimbursed by the sender.

We do not accept liability in connection with computer virus, data corruption,
delay, interruption, unauthorised access or unauthorised amendment.
_______________________________________________________________________________


______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
______________________________________________________________________
_______________________________________________
ozsilverlight mailing list
[email protected]
http://prdlxvm0001.codify.net/mailman/listinfo/ozsilverlight

Reply via email to