31 lines
		
	
	
		
			667 B
		
	
	
	
		
			C#
		
	
	
	
			
		
		
	
	
			31 lines
		
	
	
		
			667 B
		
	
	
	
		
			C#
		
	
	
	
| using System;
 | |
| 
 | |
| namespace Ooui
 | |
| {
 | |
|     public abstract class Element : Node
 | |
|     {
 | |
|         protected Element (string tagName)
 | |
|             : base (tagName)
 | |
|         {
 | |
|         }
 | |
| 
 | |
|         string className = "";
 | |
|         public string ClassName {
 | |
|             get => className;
 | |
|             set => SetProperty (ref className, value, "className");
 | |
|         }
 | |
| 
 | |
|         string title = "";
 | |
|         public string Title {
 | |
|             get => title;
 | |
|             set => SetProperty (ref title, value, "title");
 | |
|         }
 | |
| 
 | |
|         bool hidden = false;
 | |
|         public bool IsHidden {
 | |
|             get => hidden;
 | |
|             set => SetProperty (ref hidden, value, "hidden");
 | |
|         }
 | |
|     }
 | |
| }
 |