Hi All
I'm very new to WPF and XAML, I'm building an application in VB.NET winforms and want to modernize the interface. I thought of using XAML, and read that I can add an ElementHost to my form and add in a XAML user control. I'm kind of getting the hang of editing gradients etc, the one thing I need to do is add a corner radius to my button and I cannot figure out how to do this, I have tried everything but nothing seems to work. Please can someone help me with this, or point me in the right direction. The code below is just for a button, please can someone help me with the corner radius.
Many thanks
AJ
I'm very new to WPF and XAML, I'm building an application in VB.NET winforms and want to modernize the interface. I thought of using XAML, and read that I can add an ElementHost to my form and add in a XAML user control. I'm kind of getting the hang of editing gradients etc, the one thing I need to do is add a corner radius to my button and I cannot figure out how to do this, I have tried everything but nothing seems to work. Please can someone help me with this, or point me in the right direction. The code below is just for a button, please can someone help me with the corner radius.
Code:
<UserControl x:Class="UserControl1"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:local="clr-namespace:POSt.Net"
mc:Ignorable="d"
d:DesignHeight="296.954" d:DesignWidth="303.046">
<Button x:Name="button" Content="Button" HorizontalAlignment="Left" Height="62" Margin="109,104,0,0" VerticalAlignment="Top" Width="74"/>
</UserControl>
AJ