Develop #10
@@ -8,6 +8,6 @@ namespace DoctorApp.ViewModels
|
||||
class ClientInfoViewModel
|
||||
{
|
||||
public string Username { get; set; }
|
||||
public string TabName { get; set; }
|
||||
public string Status { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -30,7 +30,6 @@ namespace DoctorApp.ViewModels
|
||||
Tabs.Add(new ClientInfoViewModel
|
||||
{
|
||||
Username = username,
|
||||
TabName = username
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
@@ -24,8 +24,8 @@
|
||||
<Setter Property="Margin" Value="0,0,20,0"/>
|
||||
</Style>
|
||||
</StackPanel.Resources>
|
||||
<Label Content="UserName" Name="Username_Label"/>
|
||||
<Label Content="Status: " Name="Status_Label"/>
|
||||
<Label Content="{Binding Username}"/>
|
||||
<Label Content="{Binding Status}"/>
|
||||
</StackPanel>
|
||||
<StackPanel Margin="0,10,0,0" Grid.RowSpan="2" Grid.Row="1">
|
||||
<StackPanel.Resources>
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
<TabControl TabStripPlacement="Left" ItemsSource="{Binding Tabs}" SelectedItem="{Binding Selected}">
|
||||
<TabControl.ItemTemplate>
|
||||
<DataTemplate>
|
||||
<TextBlock Text="{Binding TabName}"/>
|
||||
<TextBlock Text="{Binding Username}"/>
|
||||
</DataTemplate>
|
||||
</TabControl.ItemTemplate>
|
||||
<TabControl.ContentTemplate>
|
||||
|
||||
Reference in New Issue
Block a user