package WhateverName ;
my $fields = {} ; #this hash describes each property of
#the class
sub new
{
my $invocant= shift ;
my $class = ref ($invocant ) || $invocant ; #could be called as object cloning method
my $self = {} ;
my $fields = { @_, }; #get the passed parameters to the constr
while (@_)
{
my $name = shift ;
my $value = shift ;
set( $self , $name , $value );
}
bless $self , $class ;
return $self ;
}
sub get {
shift;
my $name = shift;
return $fields->{$name};
}
sub set {
shift;
my $name = shift;
my $value = shift;
$fields->{$name}=$value;
}
sub dumpFields
{
my $self = shift ;
foreach $key (keys %$fields)
{
print "$key = $fields->{$key}\n";
}
}
1;
__END__
Getting the Current TabItem when the Tab is not selected in WPF
-
[image: Banner]
This is a quick reminder to self on how to retrieve a TabItem from a WPF
TabControl *when the tab is not currently selected* because I ru...
2 weeks ago
No comments:
Post a Comment
- the first minus - Comments have to be moderated because of the spammers
- the second minus - I am very lazy at moderating comments ... hardly find time ...
- the third minus - Short links are no good for security ...
- The REAL PLUS : Any critic and positive feedback is better than none, so your comments will be published sooner or later !!!!