Use the type of the control you would like to extend
BasedOn="{StaticResource {x:Type TextBox}}"
Full example:
<Style x:Key="NamedStyle" TargetType="TextBox" BasedOn="{StaticResource {x:Type TextBox}}">
<Setter property="Opacity" value="0.5" />
</Style>
More Related Contents:
- How can I style the border and title bar of a window in WPF? [duplicate]
- How to set foreground and background colors on a WPF Menu control?
- Difference between SelectedItem, SelectedValue and SelectedValuePath
- Binding ConverterParameter
- How do you bind a CollectionContainer to a collection in a view model?
- {x:Null} vs. Transparent?
- WPF Attached Property Data Binding
- How can I get ScrollViewer to work inside a StackPanel?
- Why are ActualWidth and ActualHeight 0.0 in this case?
- WPF: Slider with an event that triggers after a user drags
- Set a property of a nested element in an WPF style
- How do I convert a Color to a Brush in XAML?
- What is the difference between x:Reference and ElementName?
- Are “{Binding Path=.}” and “{Binding}” really equal
- XAML Combine styles going beyond BasedOn?
- WPF Some styles not applied on DataTemplate controls
- WPF – Global Style?
- How to open a WPF Popup when another control is clicked, using XAML markup only?
- How to format number of decimal places in wpf using style/template?
- WPF Animation “Cannot freeze this Storyboard timeline tree for use across threads”
- How to create trapezoid tabs in WPF tab control
- Implement INotifyPropertyChanged on generated Entity Framework classes
- How to autosize and right-align GridViewColumn data in WPF?
- WPF C# button style
- Binding [VisualStateManager] view state to a MVVM viewmodel?
- Advanced XAML Animation effects. Pulse, Marching ants, Rotations. Alerts
- HorizontalAlignment=Stretch, MaxWidth, and Left aligned at the same time?
- WPF ComboBox without drop-down button
- WPF MenuItem.Command binding to ElementName results to System.Windows.Data Error: 4 : Cannot find source for binding with reference
- Can you use a Binding ValidationRule within 1 line in xaml?