Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>DataTemplate sholudnt contain window, it can contains any kind of control.</p> <p><strong>DataTemplate :</strong></p> <pre><code> &lt;DataTemplate DataType="{x:Type ViewModels:MainWindowViewModel}"&gt; &lt;Views:MainWindowView /&gt; &lt;/DataTemplate&gt; </code></pre> <p><strong>UserControl :</strong></p> <pre><code> &lt;UserControl x:Class="NavigationCleanBinding.Views.MainView" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Height="350" Width="525"&gt; &lt;Grid&gt; &lt;TextBox Height="23" HorizontalAlignment="Left" Margin="61,14,0,0" Name="textBox1" VerticalAlignment="Top" Width="120" Text="{Binding TestData, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"/&gt; &lt;Label Content="Test:" Height="28" HorizontalAlignment="Left" Margin="12,12,0,0" Name="label1" VerticalAlignment="Top" Width="43" /&gt; &lt;Label Content="Result:" Height="28" HorizontalAlignment="Left" Margin="10,46,0,0" Name="label2" VerticalAlignment="Top" /&gt; &lt;TextBox Height="23" HorizontalAlignment="Left" Margin="61,48,0,0" Name="textBox2" VerticalAlignment="Top" Width="120" Text="{Binding TestData, Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"/&gt; &lt;/Grid&gt; &lt;/UserControl&gt; </code></pre> <p><strong>Window :</strong></p> <pre><code> &lt;Window x:Class="NavigationCleanBinding.Views.MainWindowView" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Title="MainWindow" Height="350" Width="525"&gt; &lt;ContentControl Content={Binding}/&gt; &lt;/Window&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload