SHARE
TWEET

Untitled

a guest Jun 17th, 2019 57 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. public RelayCommand ChangeUC => new RelayCommand(e =>
  2.         {
  3.             UserControl1 uc = new UserControl1();
  4.  
  5.             Control = uc;
  6.         }
  7.  private ContentControl
  8.  public ContentControl Control
  9.  {  
  10.    get => control;
  11.    set
  12.      {
  13.        control = value;
  14.        OnPropertyChanged();
  15.      }
  16.  }
  17.      
  18. <Grid Margin="0 60 0 0">
  19.             <dragablz:TabablzControl Name="Tabcontrol">
  20.                 <dragablz:TabablzControl.InterTabController>
  21.                     <dragablz:InterTabController/>
  22.                 </dragablz:TabablzControl.InterTabController>
  23.                 <TabItem Header="HOME">
  24.  
  25.                 </TabItem>
  26.  
  27.  
  28.                 <!--Problem is here-->
  29.                 <TabItem Header="Books" Name="DesignTabItem"
  30.                          Content="{Binding Control,Mode=TwoWay}">
  31.                 </TabItem>
  32.                 <!--...-->
  33.  
  34.  
  35.                 <TabItem>
  36.                     <TabItem.Header>
  37.                         <materialDesign:PackIcon Kind="Login" Foreground="{DynamicResource PrimaryHueLightBrush}"/>
  38.                     </TabItem.Header>
  39.                     <TextBlock Text="github.com/Abel13/TabMenu2" HorizontalAlignment="Center" VerticalAlignment="Center"/>
  40.                 </TabItem>
  41.             </dragablz:TabablzControl>
  42.  
  43.  
  44.  
  45.             <Button Height="50" Width="150" Content="ChangeUC"
  46.                     Command="{Binding ChangeUC}"></Button>
  47.  
  48.         </Grid>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top