title: WPF binding label content
body: <p>Have a trouble with binding to label content</p>
  
  <p>I have special custom TabControl in page. Bind SelectedTab property from page viewmodel to controlview model to get actualSelectedTab</p>
  
  <pre><code>public int SelectedTab
      {
          get { return _selectedTab; }
          set
          {
              SetProperty(ref _selectedTab, value);
          }
      }
  </code></pre>
  
  <p>For example, my tab control has 3 tabs; When tab one is selected - Selected Tab value is 0, etc.</p>
  
  <p>But I need to show what current tab is selected in mainPage like 1/3 - 2/3 - 3/3</p>
  
  <p>My final result must be like:</p>
  
  <p>Selected Tab 1/3 ... 3/3</p>
  
  <pre><code>&lt;Label
                                       Margin="5 0 28 0"  
             VerticalAlignment="Stretch"
              HorizontalAlignment="Stretch"
              TextElement.FontSize="12"
              TextElement.FontWeight="Bold"
              TextElement.Foreground="White" 
              VerticalContentAlignment="Center"
              Content="{Binding SelectedTab, Mode=OneWay}"&gt;
  
  
                                     &lt;/Label&gt;
  </code></pre>