File tree Expand file tree Collapse file tree 2 files changed +21
-0
lines changed
MahMaterialDragablzMashUp
MaterialDesignThemes.MahApps/Themes Expand file tree Collapse file tree 2 files changed +21
-0
lines changed Original file line number Diff line number Diff line change 66
66
<smtx : XamlDisplay UniqueKey =" NumericUpDown_2" >
67
67
<controls : NumericUpDown Culture =" ar-EG" FlowDirection =" RightToLeft" Margin =" 5" controls:TextBoxHelper.SelectAllOnFocus=" True" />
68
68
</smtx : XamlDisplay >
69
+ <smtx : XamlDisplay UniqueKey =" NumericUpDown_3" >
70
+ <controls : NumericUpDown Style =" {StaticResource MaterialDesignOutlinedNumericUpDown}" />
71
+ </smtx : XamlDisplay >
69
72
</StackPanel >
70
73
</TabItem >
71
74
<TabItem Header =" DataGrid" >
Original file line number Diff line number Diff line change 257
257
<Setter TargetName =" PART_NumericDown" Property =" Visibility" Value =" Collapsed" />
258
258
<Setter TargetName =" PART_NumericUp" Property =" Visibility" Value =" Collapsed" />
259
259
</Trigger >
260
+ <MultiTrigger >
261
+ <MultiTrigger .Conditions>
262
+ <Condition Property =" IsKeyboardFocusWithin" Value =" True" />
263
+ <Condition Property =" mah:ControlsHelper.FocusBorderThickness" Value =" 1" />
264
+ <Condition Property =" mah:ControlsHelper.CornerRadius" Value =" 4" />
265
+ </MultiTrigger .Conditions>
266
+ <Setter TargetName =" Base" Property =" BorderThickness" Value =" {Binding RelativeSource={RelativeSource TemplatedParent}, Path=(mah:ControlsHelper.FocusBorderThickness)}" />
267
+ <Setter TargetName =" Base" Property =" BorderBrush" Value =" {Binding RelativeSource={RelativeSource TemplatedParent}, Path=(mah:ControlsHelper.MouseOverBorderBrush)}" />
268
+ </MultiTrigger >
260
269
</ControlTemplate .Triggers>
261
270
</ControlTemplate >
262
271
</Setter .Value>
265
274
<Setter Property =" UpDownButtonsWidth" Value =" 22" />
266
275
<Setter Property =" Validation.ErrorTemplate" Value =" {StaticResource MaterialDesignValidationErrorTemplate}" />
267
276
</Style >
277
+
278
+ <Style TargetType =" {x:Type mah:NumericUpDown}" x : Key =" MaterialDesignOutlinedNumericUpDown" BasedOn =" {StaticResource MaterialDesignNumericUpDown}" >
279
+ <Setter Property =" mah:ControlsHelper.CornerRadius" Value =" 4" />
280
+ <Setter Property =" mah:ControlsHelper.FocusBorderThickness" Value =" 1" />
281
+ <Setter Property =" Padding" Value =" 16" />
282
+ <Setter Property =" BorderThickness" Value =" 1" />
283
+ <Setter Property =" BorderBrush" Value =" {DynamicResource MaterialDesignTextAreaBorder}" />
284
+ </Style >
285
+
268
286
</ResourceDictionary >
You can’t perform that action at this time.
0 commit comments