129 references to StyleMode
PresentationBuildTasks (129)
Framework\System\Windows\Markup\StyleModeStack.cs (6)
35
Push(
StyleMode
.Base);
43
internal
StyleMode
Mode
52
internal void Push (
StyleMode
mode)
62
internal
StyleMode
Pop()
68
private Stack<
StyleMode
> _stack = new Stack<
StyleMode
>(64);
Framework\System\Windows\Markup\StyleXamlParser.cs (55)
208
_styleModeStack.Push(
StyleMode
.Key);
338
if ((_styleModeStack.Mode ==
StyleMode
.Setters || _styleModeStack.Mode ==
StyleMode
.TriggerBase) &&
454
if (_inSetterDepth < 0 && _styleModeStack.Mode ==
StyleMode
.TriggerBase)
596
_styleModeStack.Mode ==
StyleMode
.Base)
620
if (_styleModeStack.Mode ==
StyleMode
.Base)
638
StyleMode
mode = _styleModeStack.Mode;
645
if (mode ==
StyleMode
.Base && depth > 0)
657
mode =
StyleMode
.Setters;
668
else if (mode ==
StyleMode
.TriggerBase &&
677
else if (mode ==
StyleMode
.TriggerBase &&
684
else if (mode ==
StyleMode
.TargetTypeProperty &&
706
if (mode ==
StyleMode
.Setters)
798
if (mode ==
StyleMode
.Base && depth == 0)
821
StyleMode
mode = _styleModeStack.Mode;
824
if (mode ==
StyleMode
.TriggerBase &&
838
mode ==
StyleMode
.TargetTypeProperty &&
869
else if (mode ==
StyleMode
.Setters)
882
if (_styleModeStack.Mode ==
StyleMode
.TargetTypeProperty &&
901
if (_styleModeStack.Mode ==
StyleMode
.TargetTypeProperty &&
924
if (_styleModeStack.Mode ==
StyleMode
.TargetTypeProperty &&
951
StyleMode
mode = _styleModeStack.Mode;
957
mode =
StyleMode
.TargetTypeProperty;
961
mode =
StyleMode
.BasedOnProperty;
969
else if (mode ==
StyleMode
.TriggerBase)
974
else if (mode ==
StyleMode
.TargetTypeProperty &&
1000
if (_styleModeStack.Mode ==
StyleMode
.TriggerBase)
1005
else if (_styleModeStack.Mode ==
StyleMode
.TargetTypeProperty &&
1032
StyleMode
mode = _styleModeStack.Mode;
1039
mode =
StyleMode
.TriggerBase;
1050
mode =
StyleMode
.Setters;
1059
else if ((mode ==
StyleMode
.TriggerBase ||
1060
mode ==
StyleMode
.Setters) &&
1063
mode =
StyleMode
.Base;
1065
else if (mode ==
StyleMode
.TriggerBase &&
1070
mode =
StyleMode
.TriggerActions;
1089
if (_styleModeStack.Mode ==
StyleMode
.Setters)
1123
StyleMode
mode = _styleModeStack.Mode;
1124
if (_styleModeStack.Depth == 1 && mode ==
StyleMode
.Base)
1128
mode =
StyleMode
.Resources;
1156
StyleMode
mode = _styleModeStack.Mode;
1162
if (mode ==
StyleMode
.TargetTypeProperty)
1170
if (mode ==
StyleMode
.TargetTypeProperty &&
1182
if ((mode !=
StyleMode
.TriggerBase &&
1183
mode !=
StyleMode
.Base) ||
1184
(mode ==
StyleMode
.TriggerBase && _inSetterDepth >= 0) ||
1185
(mode ==
StyleMode
.TriggerActions) ||
1186
(mode ==
StyleMode
.TriggerBase &&
1212
if (_styleModeStack.Mode !=
StyleMode
.Setters)
1299
StyleMode
mode = _styleModeStack.Mode;
1301
Debug.Assert (mode !=
StyleMode
.Base || xamlPropertyNode.PropName != XamlStyleSerializer.TargetTypePropertyName,
1304
if (mode ==
StyleMode
.TargetTypeProperty &&
1320
if (mode ==
StyleMode
.Setters ||
1321
mode ==
StyleMode
.TriggerBase)
1427
if (_styleModeStack.Mode ==
StyleMode
.Base &&
Framework\System\Windows\Markup\TemplateXamlParser.cs (68)
164
StyleMode
mode = _styleModeStack.Mode;
233
_styleModeStack.Push(
StyleMode
.Key);
376
if (_styleModeStack.Mode ==
StyleMode
.VisualTree && !xamlEndAttributesNode.IsCompact)
381
if (_styleModeStack.Mode ==
StyleMode
.TriggerBase && !xamlEndAttributesNode.IsCompact)
511
if (_inSetterDepth < 0 && _styleModeStack.Mode ==
StyleMode
.TriggerBase)
620
_styleModeStack.Mode ==
StyleMode
.Base)
638
if (_styleModeStack.Mode ==
StyleMode
.Base)
656
StyleMode
mode = _styleModeStack.Mode;
659
if (mode ==
StyleMode
.Base && _styleModeStack.Depth == 0)
701
if (mode ==
StyleMode
.Base && _styleModeStack.Depth > 0)
705
else if (mode ==
StyleMode
.TriggerBase &&
714
else if (mode ==
StyleMode
.TriggerBase &&
721
else if (_styleModeStack.Mode ==
StyleMode
.DataTypeProperty &&
836
private void CommonElementStartProcessing (XamlNode xamlNode, Type elementType, ref
StyleMode
mode)
839
if (mode ==
StyleMode
.Base && _styleModeStack.Depth > 0 )
864
mode =
StyleMode
.VisualTree;
883
if (_styleModeStack.Mode ==
StyleMode
.TriggerBase &&
896
if (_styleModeStack.Mode ==
StyleMode
.DataTypeProperty &&
949
if (_styleModeStack.Mode ==
StyleMode
.DataTypeProperty &&
968
if (_styleModeStack.Mode ==
StyleMode
.DataTypeProperty &&
990
if (_styleModeStack.Mode ==
StyleMode
.DataTypeProperty &&
1017
StyleMode
mode = _styleModeStack.Mode;
1023
mode =
StyleMode
.TargetTypeProperty;
1027
mode =
StyleMode
.DataTypeProperty;
1039
mode =
StyleMode
.ComplexProperty;
1047
else if (mode ==
StyleMode
.VisualTree)
1051
else if (mode ==
StyleMode
.TriggerBase)
1056
else if (mode ==
StyleMode
.DataTypeProperty &&
1082
StyleMode
mode = _styleModeStack.Mode;
1084
if (mode ==
StyleMode
.VisualTree)
1088
if (mode ==
StyleMode
.TriggerBase)
1093
else if (mode ==
StyleMode
.DataTypeProperty &&
1108
mode =
StyleMode
.Base;
1124
StyleMode
mode = _styleModeStack.Mode;
1130
mode =
StyleMode
.TriggerBase;
1138
else if (mode ==
StyleMode
.VisualTree)
1142
else if (mode ==
StyleMode
.TriggerBase &&
1145
mode =
StyleMode
.Base;
1147
else if (mode ==
StyleMode
.TriggerBase &&
1151
mode =
StyleMode
.TriggerActions;
1153
else if (mode ==
StyleMode
.TriggerBase)
1172
if (_styleModeStack.Mode ==
StyleMode
.VisualTree)
1176
else if (_styleModeStack.Mode ==
StyleMode
.TriggerBase)
1190
if (_styleModeStack.Mode ==
StyleMode
.VisualTree)
1194
else if (_styleModeStack.Mode ==
StyleMode
.TriggerBase)
1209
if (_styleModeStack.Mode ==
StyleMode
.VisualTree)
1213
else if (_styleModeStack.Mode ==
StyleMode
.TriggerBase)
1226
StyleMode
mode = _styleModeStack.Mode;
1228
if (mode ==
StyleMode
.VisualTree)
1232
else if (mode ==
StyleMode
.TriggerBase)
1236
else if (_styleModeStack.Depth == 1 && mode ==
StyleMode
.Base)
1240
mode =
StyleMode
.Resources;
1259
StyleMode
mode = _styleModeStack.Mode;
1261
if (mode ==
StyleMode
.VisualTree)
1265
else if (mode ==
StyleMode
.TriggerBase)
1279
StyleMode
mode = _styleModeStack.Mode;
1286
if (mode ==
StyleMode
.TargetTypeProperty)
1299
if (mode ==
StyleMode
.DataTypeProperty &&
1316
if (mode !=
StyleMode
.TriggerBase ||
1343
Debug.Assert(_styleModeStack.Mode ==
StyleMode
.VisualTree);
1421
StyleMode
mode = _styleModeStack.Mode;
1423
if (mode ==
StyleMode
.TriggerBase &&
1433
if (mode ==
StyleMode
.Base &&
1471
else if (mode ==
StyleMode
.DataTypeProperty &&
1598
StyleMode
mode = _styleModeStack.Mode;
1600
if (mode ==
StyleMode
.Base &&
1609
else if (mode ==
StyleMode
.Base &&
1623
else if (mode ==
StyleMode
.DataTypeProperty &&