Follow these steps to design our application UI with a simple button and then utilize Live Property Explorer to view and modify the XAML properties at runtime:
- From Solution Explorer, open the MainWindow.xaml file.
- Replace the content of the XAML with the following code to have a basic Button with default style:
<Window x:Class="CH10.LivePropertyExplorerDemo.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Title="Live Property Explorer Demo" Height="150" Width="400"> <Grid> <Button x:Name="myButton" Content="Click here"/> </Grid> </Window>
- Let's run the application. You will see that the button automatically arranges itself to cover the entire application. This is because we have placed the button inside a...