Advertisement
Guest User

Untitled

a guest
Oct 16th, 2019
131
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | None | 0 0
  1. private WpfButton _searchButton;
  2. public WpfButton SearchButton
  3. {
  4. get
  5. {
  6. if (_searchButton == null)
  7. {
  8. _searchButton = new WpfButton(this);
  9. _searchButton.SearchProperties[WpfButton.PropertyNames.Name] = "Search";
  10.  
  11. if (_searchButton == null)
  12. throw new NullReferenceException("SearchButton not found");
  13.  
  14. }
  15. return _searchButton;
  16. }
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement