File tree Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 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 >
Original file line number Diff line number Diff line change 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>
Original file line number Diff line number Diff line change 2121
2222namespace 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 ;
You can’t perform that action at this time.
0 commit comments