kimosavi
Active member
Hi,
I have use Inherits <Base Class Name> with great results. But still there are things I don't understand or what options I have to designing or modifying classes.
In the past, I have created new classes with new properties to be used with the designer and on the code
example:
This will create a new class that I will use in my XAML that I will use as follow:
Currently I want to setup a process to add a new property to the RibbonButton Class (or any other baseclass) without creating a new class.
example:
Is this possible?
I have use Inherits <Base Class Name> with great results. But still there are things I don't understand or what options I have to designing or modifying classes.
In the past, I have created new classes with new properties to be used with the designer and on the code
example:
VB.NET:
Class SecureRibbonButton
Inherits RibbonButton
Public Property Security As String
End Class
This will create a new class that I will use in my XAML that I will use as follow:
VB.NET:
<my:SecureRibbonButton x:Name="rbAuthenticate" LargeImageSource="/myAPP;component/img/png32/png32_login.png" Label="Login" Security="SEC_LOGIN" />
Currently I want to setup a process to add a new property to the RibbonButton Class (or any other baseclass) without creating a new class.
example:
VB.NET:
Class RibbonButton
Inherits RibbonButton
Public Property Security As String
End Class
VB.NET:
<RibbonButton Name="rbAuthenticate" LargeImageSource="/myAPP;component/img/png32/png32_login.png" Label="Login" Security="SEC_LOGIN"/>
Is this possible?