Skip to content

Commit cf343a9

Browse files
committed
Classes and namespaces should not be equal
1 parent d019bd9 commit cf343a9

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

Demo.WPF/MainWindow.xaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,6 @@
1414
<Grid.ColumnDefinitions>
1515
<ColumnDefinition Width="*" />
1616
</Grid.ColumnDefinitions>
17-
<wpf:VncDotnet x:Name="MyVncElement" />
17+
<wpf:VncDotnetControl x:Name="MyVncElement" />
1818
</Grid>
1919
</Window>

VncDotnet.WPF/Themes/Generic.xaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
33
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
44
xmlns:local="clr-namespace:VncDotnet.WPF">
5-
<Style TargetType="{x:Type local:VncDotnet}">
5+
<Style TargetType="{x:Type local:VncDotnetControl}">
66
<Setter Property="Template">
77
<Setter.Value>
8-
<ControlTemplate TargetType="{x:Type local:VncDotnet}">
8+
<ControlTemplate TargetType="{x:Type local:VncDotnetControl}">
99
<Image x:Name="Scene" Stretch="Uniform" />
1010
</ControlTemplate>
1111
</Setter.Value>

VncDotnet.WPF/VncDotnet.cs renamed to VncDotnet.WPF/VncDotnetControl.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,11 @@
2121

2222
namespace VncDotnet.WPF
2323
{
24-
public class VncDotnet : Control
24+
public class VncDotnetControl : Control
2525
{
26-
static VncDotnet()
26+
static VncDotnetControl()
2727
{
28-
DefaultStyleKeyProperty.OverrideMetadata(typeof(VncDotnet), new FrameworkPropertyMetadata(typeof(VncDotnet)));
28+
DefaultStyleKeyProperty.OverrideMetadata(typeof(VncDotnetControl), new FrameworkPropertyMetadata(typeof(VncDotnetControl)));
2929
}
3030

3131
private WriteableBitmap? Bitmap;

0 commit comments

Comments
 (0)