I would like for the shape to be a circle. How do I get this to be circular instead of a square colour?
MainWindow:
<Window x:Class="WPF_UI_Design_2.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Title="MainWindow" Height="350" Width="525"><Grid><GroupBox Header="Control Prototyping for DVLink" Background="White" Foreground="#00c7d5" ><StackPanel HorizontalAlignment="Center" Orientation="Vertical" VerticalAlignment="Top" Height="150" Width="180"><TextBox VerticalContentAlignment="Center" SelectionBrush="#23b7c2" Margin="0,10,0,0" Text="12243-2343-34534" Template="{StaticResource TextBoxBaseControlTemplate}" Foreground="{DynamicResource DVLinkBlueBrush}" Height="25" Width="120"/><ComboBox Text="Edit me!" IsEditable="True"><ComboBoxItem>20</ComboBoxItem><ComboBoxItem>40</ComboBoxItem><ComboBoxItem>60</ComboBoxItem></ComboBox><ComboBox Text="20" IsEditable="False"><ComboBoxItem>20</ComboBoxItem><ComboBoxItem>40</ComboBoxItem><ComboBoxItem>60</ComboBoxItem></ComboBox></StackPanel></GroupBox></Grid></Window>
App.xaml
<Application x:Class="WPF_UI_Design_2.App" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" StartupUri="MainWindow.xaml"><Application.Resources><!--Control colors.--><Color x:Key="InputBoxBorderColour">Black</Color><Color x:Key="DVLinkBlue">#FF00C7D5</Color><SolidColorBrush x:Key="DVLinkBlueBrush" Color="{DynamicResource DVLinkBlue}" /><Color x:Key="DVLinkBlueGradientStop">White</Color><Color x:Key="DVLinkBorderGray">Gray</Color><SolidColorBrush x:Key="DVLinkBorderGrayBrush" Color="{DynamicResource DVLinkBorderGray}" /><Color x:Key="WindowColor">#FFE8EDF9</Color><Color x:Key="ContentAreaColorLight">#FF6CD0E0</Color><Color x:Key="ContentAreaColorDark">#FF47A8B8</Color><Color x:Key="DisabledControlLightColor">#FF6CD0E0</Color><Color x:Key="DisabledControlDarkColor">#FF47A8B8</Color><Color x:Key="DisabledForegroundColor">#FF888888</Color><Color x:Key="SelectedBackgroundColor">#FF47A8B8</Color><Color x:Key="SelectedUnfocusedColor">#FFDDDDDD</Color><Color x:Key="ControlLightColor">White</Color><Color x:Key="ControlMediumColor">#FF47A8B8</Color><Color x:Key="ControlDarkColor">#FF34ABBF</Color><Color x:Key="ControlMouseOverColor">#FF34ABBF</Color><Color x:Key="ControlPressedColor">#FF6CD0E0</Color><Color x:Key="GlyphColor">#FF444444</Color><Color x:Key="GlyphMouseOver">sc#1, 0.004391443, 0.002428215, 0.242281124</Color><!--Border colors--><Color x:Key="BorderLightColor">#FFCCCCCC</Color><Color x:Key="BorderMediumColor">#FF888888</Color><Color x:Key="BorderDarkColor">#FF444444</Color><Color x:Key="PressedBorderLightColor">#FF888888</Color><Color x:Key="PressedBorderDarkColor">#FF444444</Color><Color x:Key="DisabledBorderLightColor">#FFAAAAAA</Color><Color x:Key="DisabledBorderDarkColor">#FF888888</Color><Color x:Key="DefaultBorderBrushDarkColor">Black</Color><!--Control-specific resources.--><Color x:Key="HeaderTopColor">#FFC5CBF9</Color><Color x:Key="DatagridCurrentCellBorderColor">Black</Color><Color x:Key="SliderTrackDarkColor">#FFC5CBF9</Color><Color x:Key="NavButtonFrameColor">#FF3843C4</Color><ControlTemplate x:Key="ComboBoxToggleButton" TargetType="{x:Type ToggleButton}"><Grid><Grid.ColumnDefinitions><ColumnDefinition /><ColumnDefinition Width="20" /></Grid.ColumnDefinitions><Border x:Name="Border" Grid.ColumnSpan="2" CornerRadius="2" BorderThickness="1" ><Border.BorderBrush> <SolidColorBrush Color="{DynamicResource DVLinkBorderGray}" /><!--This will change the colour of the combobox's textbox border (not the dropdown's border)--></Border.BorderBrush><Border.Background><!--This controls the background displayed behind the combobox arrow that brings up the dropdown --><LinearGradientBrush StartPoint="0,0" EndPoint="0,1"><LinearGradientBrush.GradientStops><GradientStopCollection><GradientStop Color="{DynamicResource DVLinkBlueGradientStop}" /><GradientStop Color="{DynamicResource DVLinkBlue}" Offset="1.0" /></GradientStopCollection></LinearGradientBrush.GradientStops></LinearGradientBrush></Border.Background></Border><Border Grid.Column="0" CornerRadius="2,0,0,2" Margin="0.75"><!--Margin of 0.75 above neccessary to prevent the RHS colour from 'spilling' throug on the left --><Border.Background><SolidColorBrush Color="{DynamicResource ControlLightColor}"/></Border.Background></Border><!-- The following Path will draw the arrow to indicate that the control may be clicked for more options --><Path x:Name="Arrow" Grid.Column="1" HorizontalAlignment="Center" VerticalAlignment="Center" Data="M 0 0 L 4 4 L 8 0 Z" ><Path.Fill><SolidColorBrush Color="{DynamicResource ControlMediumColor}"/></Path.Fill></Path></Grid></ControlTemplate><ControlTemplate x:Key="ComboBoxTextBox" TargetType="{x:Type TextBox}"><Border x:Name="PART_ContentHost" Focusable="False" Background="{TemplateBinding Background}"/></ControlTemplate><Style x:Key="{x:Type ComboBox}" TargetType="{x:Type ComboBox}"><Setter Property="SnapsToDevicePixels" Value="true" /> <Setter Property="Margin" Value="0,10,0,0"/><Setter Property="Width" Value="120"/><Setter Property="Height" Value="30"/><Setter Property="OverridesDefaultStyle" Value="true" /><Setter Property="ScrollViewer.HorizontalScrollBarVisibility" Value="Auto" /><Setter Property="ScrollViewer.VerticalScrollBarVisibility" Value="Auto" /><Setter Property="ScrollViewer.CanContentScroll" Value="true" /><Setter Property="MinWidth" Value="120" /><Setter Property="MinHeight" Value="30" /><Setter Property="VerticalContentAlignment" Value="Center"/><Setter Property="Foreground" Value="{DynamicResource DVLinkBlueBrush}"/> <!-- * The currently selected text : displayed in the textbox part of combobox *--><Setter Property="Template"><Setter.Value><ControlTemplate TargetType="{x:Type ComboBox}"><Grid><VisualStateManager.VisualStateGroups><VisualStateGroup x:Name="CommonStates"><VisualState x:Name="Normal" /><VisualState x:Name="Disabled"><Storyboard><ColorAnimationUsingKeyFrames Storyboard.TargetName="PART_EditableTextBox" Storyboard.TargetProperty="(TextElement.Foreground).(SolidColorBrush.Color)"><EasingColorKeyFrame KeyTime="0" Value="{StaticResource DisabledForegroundColor}" /></ColorAnimationUsingKeyFrames></Storyboard></VisualState></VisualStateGroup><VisualStateGroup x:Name="EditStates"><VisualState x:Name="Editable"><Storyboard><ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="PART_EditableTextBox"><DiscreteObjectKeyFrame KeyTime="0" Value="{x:Static Visibility.Visible}" /></ObjectAnimationUsingKeyFrames><ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="ContentSite"><DiscreteObjectKeyFrame KeyTime="0" Value="{x:Static Visibility.Hidden}" /></ObjectAnimationUsingKeyFrames></Storyboard></VisualState><VisualState x:Name="Uneditable" /></VisualStateGroup><VisualStateGroup x:Name="FocusStates"><VisualState x:Name="Focused"/><!-- ripped out the FocusedState Storyboard so it doesnt do anything when focused.--><VisualState x:Name="Unfocused"/></VisualStateGroup></VisualStateManager.VisualStateGroups><ToggleButton x:Name="ToggleButton" Template="{StaticResource ComboBoxToggleButton}" Grid.Column="2" Focusable="false" ClickMode="Press" IsChecked="{Binding IsDropDownOpen, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}"/><ContentPresenter x:Name="ContentSite" IsHitTestVisible="False" Content="{TemplateBinding SelectionBoxItem}" ContentTemplate="{TemplateBinding SelectionBoxItemTemplate}" ContentTemplateSelector="{TemplateBinding ItemTemplateSelector}" Margin="3,3,23,3" VerticalAlignment="Center" HorizontalAlignment="Left"></ContentPresenter><TextBox x:Name="PART_EditableTextBox" Style="{x:Null}" Template="{StaticResource ComboBoxTextBox}" HorizontalAlignment="Left" VerticalAlignment="Center" SelectionBrush="#23b7c2" VerticalContentAlignment="Center" Margin="3,3,23,3" Focusable="True" Background="Transparent" Text="{TemplateBinding Text}" Visibility="Hidden" Foreground="{DynamicResource DVLinkBlueBrush}" IsReadOnly="{TemplateBinding IsReadOnly}"/><!-- ** VerticalAlignment centers the text in the editable part of the combobox ** --><Popup x:Name="Popup" Placement="Bottom" IsOpen="{TemplateBinding IsDropDownOpen}" AllowsTransparency="True" Focusable="False" PopupAnimation="Slide"><Grid x:Name="DropDown" SnapsToDevicePixels="True" MinWidth="{TemplateBinding ActualWidth}" MaxHeight="{TemplateBinding MaxDropDownHeight}"><Border x:Name="DropDownBorder" BorderThickness="1" ><Border.BorderBrush><SolidColorBrush Color="{DynamicResource BorderMediumColor}" /></Border.BorderBrush><Border.Background><SolidColorBrush Color="{DynamicResource ControlLightColor}" /></Border.Background></Border><ScrollViewer Margin="4,6,4,6" SnapsToDevicePixels="True"><StackPanel IsItemsHost="True" KeyboardNavigation.DirectionalNavigation="Contained" /></ScrollViewer></Grid></Popup></Grid><ControlTemplate.Triggers><Trigger Property="HasItems" Value="false"><Setter TargetName="DropDownBorder" Property="MinHeight" Value="95" /></Trigger><Trigger Property="IsGrouping" Value="true"><Setter Property="ScrollViewer.CanContentScroll" Value="false" /></Trigger><Trigger SourceName="Popup" Property="AllowsTransparency" Value="true"><Setter TargetName="DropDownBorder" Property="CornerRadius" Value="4" /><Setter TargetName="DropDownBorder" Property="Margin" Value="0,2,0,0" /></Trigger><MultiTrigger><MultiTrigger.Conditions><Condition Property="IsEditable" Value="false" /><Condition Property="SelectedItem" Value="{x:Null}" /></MultiTrigger.Conditions><Setter TargetName="PART_EditableTextBox" Property="Visibility" Value="Visible"/></MultiTrigger></ControlTemplate.Triggers></ControlTemplate></Setter.Value></Setter></Style><Style x:Key="{x:Type ComboBoxItem}" TargetType="{x:Type ComboBoxItem}"><Setter Property="Foreground" Value="Black" /><!-- * text displayed in the dropdown is black in colour * --><Style.Resources><SolidColorBrush x:Key="{x:Static SystemColors.HighlightBrushKey}" Color="{DynamicResource DVLinkBlue}"/><!-- * when the mouse moves over a combobox entry (item), the colour is our own custom blue, instead of windows system default colour * --></Style.Resources></Style><ControlTemplate x:Key="TextBoxBaseControlTemplate" TargetType="{x:Type TextBoxBase}"><Border Background="{TemplateBinding Background}" BorderBrush="{DynamicResource DVLinkBorderGrayBrush}" BorderThickness="1" CornerRadius="2"><ScrollViewer x:Name="PART_ContentHost"/> <!-- This line will ensure that the text is displayed --></Border></ControlTemplate></Application.Resources></Application>
Regards,
Harriet