You don’t need a custom control, just put your container in a border element:
<Border BorderBrush="#FF000000" BorderThickness="1" CornerRadius="8">
<Grid/>
</Border>
You can replace the <Grid/>
with any of the layout containers…
More Related Contents:
- WPF Blurry fonts issue- Solutions
- WPF animation: binding to the “To” attribute of storyboard animation
- How to detect broken WPF Data binding?
- Change background color for selected ListBox item
- The name does not exist in the namespace error in XAML
- How to get a group of toggle buttons to act like radio buttons in WPF?
- How to create custom window chrome in wpf?
- How do I access an element of a control template from within code-behind
- Is there a DesignMode property in WPF?
- WPF CommandParameter is NULL first time CanExecute is called
- How can I move a WPF Popup when its anchor element moves?
- Inheriting from a UserControl in WPF
- Passing parameters between viewmodels
- How to make the contents of a round-cornered border be also round-cornered?
- why setting ScrollViewer.CanContentScroll to false disable virtualization
- Set the caret/cursor position to the end of the string value WPF textbox
- Adding controls dynamically in WPF MVVM
- How can I reduce RadioButton binding code?
- WPF: Button single click + double click issue
- How to bind xml to the WPF DataGrid correctly?
- Mouse event on transparent background
- Finding coordinates of a point between two points?
- WPF MVVM: Convention over Configuration for ResourceDictionary?
- A TwoWay or OneWayToSource binding cannot work on the read-only property
- WPF ComboBox without drop-down button
- WPF – TabItem Background color changes when tabitem selected or hover over
- WPF ViewModel Commands CanExecute issue
- WPF MenuItem.Command binding to ElementName results to System.Windows.Data Error: 4 : Cannot find source for binding with reference
- Colors in Visual Studio Extension
- In what scenarios does freezing WPF objects benefit performance greatly?