Skip to content

Commit 09332b8

Browse files
committed
Added UI package documentation
1 parent 32963eb commit 09332b8

1 file changed

Lines changed: 25 additions & 0 deletions

File tree

  • docs/articles/features

docs/articles/features/ui.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,28 @@ title: Using the UI package | MADE.NET
55

66
# Using the UI package
77

8+
The UI package is a base package for building out UI components for native applications for Windows, Android, iOS, macOS, Linux, and the web.
9+
10+
Its main purpose is to be used by the additional MADE.NET UI packages. However, it can be used to build your own custom UI elements for your own applications.
11+
12+
## Building custom controls for Windows or Uno Platform applications
13+
14+
The `MADE.UI.Controls.Control` is an extension to the [`Windows.UI.Xaml.Controls.Control`](https://docs.microsoft.com/en-us/uwp/api/windows.ui.xaml.controls.control) that provides additional base components to make it easier to build custom controls.
15+
16+
For detail on building the custom control itself, we highly recommend these resources for information on building them.
17+
18+
- [Nick's .NET Travels - How to create a XAML templated control](https://nicksnettravels.builttoroam.com/tutorial-how-to-create-a-xaml-templated-control/)
19+
20+
With this base class, you get the following additional features to work with.
21+
22+
### IsVisible property
23+
24+
`IsVisible` is a boolean property that controls the `Visibility` state of the control.
25+
26+
When updated, the `IsVisibleChanged` event is fired which can be used to handle additional functions when a control is shown or hidden.
27+
28+
### GetChildView{TView} method
29+
30+
`GetChildView{TView}(string)` is a method which sits on top of the `GetTemplateChild` method of the underlying `Control` class.
31+
32+
The method simplifies the understanding and usability of retrieving child UI elements by retrieving your UI elements in the expected type.

0 commit comments

Comments
 (0)