I would use a Button
control and overwrite the Button.Template
to just show the content directly.
<ControlTemplate x:Key="ContentOnlyTemplate" TargetType="{x:Type Button}">
<ContentPresenter />
</ControlTemplate>
<Button Template="{StaticResource ContentOnlyTemplate}">
<Label Content="Test"/>
</Button>
Related Contents:
- How can I find WPF controls by name or type?
- How to make overlay control above all other controls?
- WPF TextBox and Scroll behavior
- Where is the WPF Numeric UpDown control?
- How to change disabled background color of TextBox in WPF
- How to Stretch WPF Tab Item Headers to Parent Control Width
- Mouse event on transparent background
- WPF Change button background image when clicked
- Two combobox with same ItemsSource of ObservableCollection
- WPF Programming Methodology
- Binding to static property
- Is it possible to set code behind a resource dictionary in WPF for event handling?
- INotifyPropertyChanged vs. DependencyProperty in ViewModel
- Pushing read-only GUI properties back into ViewModel
- How do I get the current mouse screen coordinates in WPF?
- DependencyProperty getter/setter not being called
- How to preserve control state within tab items in a TabControl
- How to get a group of toggle buttons to act like radio buttons in WPF?
- WPF Image Pan, Zoom and Scroll with layers on a canvas
- WPF CommandParameter is NULL first time CanExecute is called
- WPF StringFormat={0:C} showing as dollars
- How to create a semi transparent window in WPF that allows mouse events to pass through
- WPF StringFormat on Label Content
- Is there a way to use data-template inheritance in WPF?
- WPF ListView – detect when selected item is clicked
- Set superscript and subscript in formatted text in wpf
- ItemsControl with multiple DataTemplates for a viewmodel
- WPF and initial focus
- Add parameter to Button click event
- How to disable highlighting on listbox but keep selection?
- Finding the handle to a WPF window
- What’s the best approach to printing/reporting from WPF? [closed]
- How do I use an icon that is a resource in WPF?
- ComboBox.SelectedValue not updating from binding source
- When Clearing an ObservableCollection, There are No Items in e.OldItems
- Force rendering of a WPF control in memory
- How do I make modal dialog for a Page in my WPF-application?
- Implement INotifyPropertyChanged on generated Entity Framework classes
- Binding errors not showing on output window
- WPF: How to customize SelectionBoxItem in ComboBox
- Any free WPF themes? [closed]
- A TwoWay or OneWayToSource binding cannot work on the read-only property
- WPF Binding StringFormat Short Date String
- Displaying html from string in WPF WebBrowser control
- TabControl with Add New Tab Button (+)
- WPF UserControl Design Time Size
- Can WPF and WinForms be mixed within an application?
- Binding a WPF ShortCut Key to a Command in the ViewModel
- How do I dynamically generate columns in a WPF DataGrid?
- Setting the Visibility of an Element to Collapsed when Storyboard completes using XAML