Click here to Skip to main content
15,867,141 members
Home / Discussions / WPF
   

WPF

 
Question'LayoutRoot' suddenly recognized [modified] Pin
Neo101018-Jul-11 22:01
Neo101018-Jul-11 22:01 
QuestionBasic Question about ADO.NET in Silverlight Pin
AmbiguousName7-Jul-11 2:25
AmbiguousName7-Jul-11 2:25 
AnswerRe: Basic Question about ADO.NET in Silverlight Pin
Mycroft Holmes7-Jul-11 21:57
professionalMycroft Holmes7-Jul-11 21:57 
AnswerRe: Basic Question about ADO.NET in Silverlight Pin
Mark Salsbery8-Jul-11 5:53
Mark Salsbery8-Jul-11 5:53 
AnswerRe: Basic Question about ADO.NET in Silverlight Pin
Abhinav S9-Jul-11 20:42
Abhinav S9-Jul-11 20:42 
QuestionPropertyChange doesn't refresh DataTemplate inside ItemsControl Pin
John-ph7-Jul-11 2:11
John-ph7-Jul-11 2:11 
AnswerRe: PropertyChange doesn't refresh DataTemplate inside ItemsControl Pin
SledgeHammer017-Jul-11 14:01
SledgeHammer017-Jul-11 14:01 
QuestionCalculation of value of DependencyProperty [modified] Pin
devvvy6-Jul-11 23:56
devvvy6-Jul-11 23:56 
Calculation of value of DependencyProperty[^]
1.Local value
2.Style triggers
3.Template triggers
4.Style setters
5.Theme style triggers
6.Theme style setters
7.Property value inheritance
8.Default value


Question is, what's difference between "Style trigger" and "Style setters"?

For example, below is "Style trigger"

<Button.Style>
<Style TargetType="{x:Type Button}">
<Style.Triggers>
<Trigger Property="IsMouseOver" Value="True">
<Setter Property="Foreground" Value="Blue"/>
</Trigger>
</Style.Triggers>
</Style>
</Button.Style>
OK
</Button>

I presume "Style setters" simply means:

<Window.Resources>
<Style TargetType="{x:Type Button}">
<Setter Property="FontFamily" Value="Times New Roman" />
<Setter Property="FontSize" Value="30" />
<Setter Property="FontWeight" Value="Bold" />
<Setter Property="Background" Value="#FFCA5132" />
</Style>
</Window.Resources>

From the reference [^]it says:
"Local value technically means any call to DependencyObject.SetValue, but this is typically seen with a simple property assignment in XAML or procedural code"
So by "Local Value", it means a simple assignment such as:

<Button Foreground="Blue" />

Am I right?

http://www.bobpowell.net/dependencyproperty.aspx[^]
dev
modified on Thursday, July 7, 2011 6:02 AM

AnswerRe: Calculation of value of DependencyProperty Pin
SledgeHammer017-Jul-11 14:03
SledgeHammer017-Jul-11 14:03 
QuestionIs it possible to access local file system in Silverlight Application. Pin
Gijomon MK6-Jul-11 23:49
Gijomon MK6-Jul-11 23:49 
AnswerRe: Is it possible to access local file system in Silverlight Application. [modified] Pin
#realJSOP7-Jul-11 7:50
mve#realJSOP7-Jul-11 7:50 
AnswerRe: Is it possible to access local file system in Silverlight Application. Pin
Mycroft Holmes7-Jul-11 22:02
professionalMycroft Holmes7-Jul-11 22:02 
QuestionIs it possible to include the Silverlight user control in WPF Application? Pin
Gijomon MK6-Jul-11 20:21
Gijomon MK6-Jul-11 20:21 
AnswerRe: Is it possible to include the Silverlight user control in WPF Application? Pin
Pete O'Hanlon6-Jul-11 21:20
subeditorPete O'Hanlon6-Jul-11 21:20 
GeneralRe: Is it possible to include the Silverlight user control in WPF Application? Pin
Gijomon MK6-Jul-11 22:49
Gijomon MK6-Jul-11 22:49 
GeneralRe: Is it possible to include the Silverlight user control in WPF Application? Pin
Pete O'Hanlon6-Jul-11 22:55
subeditorPete O'Hanlon6-Jul-11 22:55 
GeneralRe: Is it possible to include the Silverlight user control in WPF Application? Pin
Gijomon MK6-Jul-11 23:14
Gijomon MK6-Jul-11 23:14 
GeneralRe: Is it possible to include the Silverlight user control in WPF Application? Pin
Pete O'Hanlon6-Jul-11 23:24
subeditorPete O'Hanlon6-Jul-11 23:24 
GeneralRe: Is it possible to include the Silverlight user control in WPF Application? Pin
Gijomon MK6-Jul-11 23:30
Gijomon MK6-Jul-11 23:30 
GeneralRe: Is it possible to include the Silverlight user control in WPF Application? Pin
Pete O'Hanlon6-Jul-11 23:41
subeditorPete O'Hanlon6-Jul-11 23:41 
GeneralRe: Is it possible to include the Silverlight user control in WPF Application? Pin
Mehdi Ghiasi9-Jul-11 8:03
Mehdi Ghiasi9-Jul-11 8:03 
GeneralRe: Is it possible to include the Silverlight user control in WPF Application? Pin
Pete O'Hanlon9-Jul-11 10:49
subeditorPete O'Hanlon9-Jul-11 10:49 
QuestionLogical/Visual Tree- why bother understand Pin
devvvy6-Jul-11 18:08
devvvy6-Jul-11 18:08 
AnswerRe: Logical/Visual Tree- why bother understand Pin
Pete O'Hanlon6-Jul-11 21:18
subeditorPete O'Hanlon6-Jul-11 21:18 
GeneralRe: Logical/Visual Tree- why bother understand [modified] Pin
devvvy6-Jul-11 23:44
devvvy6-Jul-11 23:44 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.