upgraded doktor stuff
This commit is contained in:
@@ -6,37 +6,62 @@
|
|||||||
xmlns:local="clr-namespace:DokterApp"
|
xmlns:local="clr-namespace:DokterApp"
|
||||||
mc:Ignorable="d"
|
mc:Ignorable="d"
|
||||||
d:DesignHeight="450" d:DesignWidth="800">
|
d:DesignHeight="450" d:DesignWidth="800">
|
||||||
<Grid>
|
<Grid Margin="15,5,15,15">
|
||||||
<Grid.ColumnDefinitions>
|
<Grid.ColumnDefinitions>
|
||||||
<ColumnDefinition Width="5*"/>
|
<ColumnDefinition Width="5*"/>
|
||||||
<ColumnDefinition Width="3*"/>
|
<ColumnDefinition Width="3*"/>
|
||||||
</Grid.ColumnDefinitions>
|
</Grid.ColumnDefinitions>
|
||||||
<Grid.RowDefinitions>
|
<Grid.RowDefinitions>
|
||||||
<RowDefinition Height="1*"/>
|
<RowDefinition Height="43*"/>
|
||||||
<RowDefinition Height="2*"/>
|
<RowDefinition Height="47*"/>
|
||||||
<RowDefinition Height="2*"/>
|
<RowDefinition Height="180*"/>
|
||||||
|
<RowDefinition Height="180*"/>
|
||||||
</Grid.RowDefinitions>
|
</Grid.RowDefinitions>
|
||||||
<StackPanel Orientation="Horizontal">
|
<StackPanel Orientation="Horizontal" Grid.RowSpan="2" Margin="0,0,0,22">
|
||||||
<Label Content="Label"/>
|
<StackPanel.Resources>
|
||||||
<Label Content="Label"/>
|
<Style TargetType="{x:Type Label}">
|
||||||
|
<Setter Property="Margin" Value="0,0,20,0"/>
|
||||||
|
</Style>
|
||||||
|
</StackPanel.Resources>
|
||||||
|
<Label Content="UserName" Name="Username_Label"/>
|
||||||
|
<Label Content="Status: " Name="Status_Label"/>
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
<StackPanel Grid.Row="1">
|
<StackPanel Margin="0,10,0,0" Grid.RowSpan="2" Grid.Row="1">
|
||||||
<StackPanel Orientation="Horizontal" Height="50">
|
<StackPanel.Resources>
|
||||||
<Label Content="Label"/>
|
<Style TargetType="{x:Type DockPanel}">
|
||||||
<Label Content="Label"/>
|
<Setter Property="Margin" Value="0,20,0,0"/>
|
||||||
<Label Content="Label"/>
|
</Style>
|
||||||
|
</StackPanel.Resources>
|
||||||
|
<DockPanel Height="26" LastChildFill="False" HorizontalAlignment="Stretch">
|
||||||
|
<Label Content="Resistance" Width="110" DockPanel.Dock="Right"/>
|
||||||
|
<Label Content="Current Speed" Width="110" DockPanel.Dock="Left"/>
|
||||||
|
<Label Content="Current BPM" Width="110" DockPanel.Dock="Top"/>
|
||||||
|
</DockPanel>
|
||||||
|
<DockPanel Height="26" LastChildFill="False" HorizontalAlignment="Stretch">
|
||||||
|
<TextBox Name="textBox_Resistance" Text="" TextWrapping="Wrap" Width="110" DockPanel.Dock="Right" IsReadOnly="true"/>
|
||||||
|
<TextBox Name="textBox_CurrentSpeed" Text="" TextWrapping="Wrap" Width="110" DockPanel.Dock="Left" IsReadOnly="true"/>
|
||||||
|
<TextBox Name="textBox_CurrentBPM" Text="" TextWrapping="Wrap" Width="110" DockPanel.Dock="Top" Height="26" IsReadOnly="true"/>
|
||||||
|
</DockPanel>
|
||||||
|
<DockPanel Height="26" LastChildFill="False">
|
||||||
|
<Label Content="Distance Covered" Width="110" DockPanel.Dock="Right"/>
|
||||||
|
<Label Content="Current Power" Width="110" DockPanel.Dock="Left"/>
|
||||||
|
<Label Content="Acc. Power" Width="110" DockPanel.Dock="Top"/>
|
||||||
|
</DockPanel>
|
||||||
|
<DockPanel Height="26" LastChildFill="False">
|
||||||
|
<TextBox Name="textBox_DistanceCovered" Text="" TextWrapping="Wrap" Width="110" DockPanel.Dock="Right" IsReadOnly="true"/>
|
||||||
|
<TextBox Name="textBox_CurrentPower" Text="" TextWrapping="Wrap" Width="110" DockPanel.Dock="Left" IsReadOnly="true"/>
|
||||||
|
<TextBox Name="textBox_AccPower" Text="" TextWrapping="Wrap" Width="110" DockPanel.Dock="Top" Height="26" IsReadOnly="true"/>
|
||||||
|
</DockPanel>
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
<StackPanel Orientation="Horizontal" Height="50">
|
<ListBox Name="ChatBox" Grid.Column="1" Margin="59,41,0,0" SelectionChanged="ListBox_SelectionChanged" Grid.RowSpan="3"/>
|
||||||
<TextBox Text="TextBox" TextWrapping="Wrap" Width="120"/>
|
<TextBox Name="textBox_Chat" Grid.Column="1" HorizontalAlignment="Left" Margin="59,10,0,0" Grid.Row="3" Text="TextBox" TextWrapping="Wrap" VerticalAlignment="Top" Width="235"/>
|
||||||
<TextBox Text="TextBox" TextWrapping="Wrap" Width="120"/>
|
<Button Content="Button" Grid.Column="1" HorizontalAlignment="Left" Margin="59,33,0,0" Grid.Row="3" VerticalAlignment="Top" Click="Button_Click"/>
|
||||||
<TextBox Text="TextBox" TextWrapping="Wrap" Width="120"/>
|
<Button Content="Start Session" Grid.Column="1" HorizontalAlignment="Left" Margin="69,86,0,0" Grid.Row="3" VerticalAlignment="Top" Width="97" Click="StartSession_Click"/>
|
||||||
</StackPanel>
|
<Button Content="Stop Session" Grid.Column="1" HorizontalAlignment="Left" Margin="187,86,0,0" Grid.Row="3" VerticalAlignment="Top" Width="97" Click="StopSession_Click"/>
|
||||||
<StackPanel Orientation="Horizontal" Height="50">
|
<TextBox x:Name="textBox_SetResistance" Grid.Column="1" HorizontalAlignment="Left" Margin="69,128,0,0" Grid.Row="3" TextWrapping="Wrap" VerticalAlignment="Top" Width="97"/>
|
||||||
<Label Content="Label"/>
|
<Button Content="Set Resistance" Grid.Column="1" HorizontalAlignment="Left" Margin="187,128,0,0" Grid.Row="3" VerticalAlignment="Top" Width="97" Height="18" Click="SetResistance_Click"/>
|
||||||
<Label Content="Label"/>
|
<Canvas Grid.Row="3" Background="White" Margin="0,33,0,0"/>
|
||||||
<Label Content="Label"/>
|
<ComboBox Name="DropBox" HorizontalAlignment="Left" Margin="0,6,0,0" Grid.Row="3" VerticalAlignment="Top" Width="190"/>
|
||||||
</StackPanel>
|
<Button Content="Client Info" Grid.Column="1" HorizontalAlignment="Left" Margin="207,6,0,0" VerticalAlignment="Top" Height="26" Width="82" Click="ClientInfo_Click"/>
|
||||||
</StackPanel>
|
|
||||||
|
|
||||||
</Grid>
|
</Grid>
|
||||||
</UserControl>
|
</UserControl>
|
||||||
|
|||||||
@@ -21,6 +21,38 @@ namespace DokterApp
|
|||||||
public UserControlForTab()
|
public UserControlForTab()
|
||||||
{
|
{
|
||||||
InitializeComponent();
|
InitializeComponent();
|
||||||
|
Username_Label.Content = "Bob";
|
||||||
|
Status_Label.Content = "Status: Dead";
|
||||||
|
}
|
||||||
|
|
||||||
|
private void ListBox_SelectionChanged(object sender, SelectionChangedEventArgs e)
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
private void Button_Click(object sender, RoutedEventArgs e)
|
||||||
|
{
|
||||||
|
ChatBox.Items.Add(textBox_Chat.Text);
|
||||||
|
}
|
||||||
|
|
||||||
|
private void StartSession_Click(object sender, RoutedEventArgs e)
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
private void StopSession_Click(object sender, RoutedEventArgs e)
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
private void SetResistance_Click(object sender, RoutedEventArgs e)
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
private void ClientInfo_Click(object sender, RoutedEventArgs e)
|
||||||
|
{
|
||||||
|
MessageBox.Show("firstname:\tBob\n" +
|
||||||
|
"surname:\t\tde Bouwer");
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -5,11 +5,12 @@
|
|||||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||||
xmlns:local="clr-namespace:DokterApp"
|
xmlns:local="clr-namespace:DokterApp"
|
||||||
mc:Ignorable="d"
|
mc:Ignorable="d"
|
||||||
|
WindowState="Maximized"
|
||||||
Title="WindowTabs" Height="450" Width="800">
|
Title="WindowTabs" Height="450" Width="800">
|
||||||
<Grid>
|
<Grid>
|
||||||
<TabControl x:Name="tabControl" Loaded="tabControl_Load">
|
<TabControl x:Name="tabControl" Loaded="tabControl_Load" TabStripPlacement="Left" Margin="0,23,0,0" />
|
||||||
</TabControl>
|
<Button Content="Button" HorizontalAlignment="Left" Margin="578,125,0,0" VerticalAlignment="Top" Click="Button_Click"/>
|
||||||
<Button Content="Button" HorizontalAlignment="Left" Margin="400,76,0,0" VerticalAlignment="Top" Click="Button_Click"/>
|
<Button Content="Button" HorizontalAlignment="Left" Margin="10,0,0,0" VerticalAlignment="Top"/>
|
||||||
|
|
||||||
</Grid>
|
</Grid>
|
||||||
</Window>
|
</Window>
|
||||||
|
|||||||
@@ -34,7 +34,8 @@ namespace DokterApp
|
|||||||
TabItem newTabItem = new TabItem
|
TabItem newTabItem = new TabItem
|
||||||
{
|
{
|
||||||
Header = "Test",
|
Header = "Test",
|
||||||
|
Width = 110,
|
||||||
|
Height = 40
|
||||||
};
|
};
|
||||||
newTabItem.Content = new UserControlForTab();
|
newTabItem.Content = new UserControlForTab();
|
||||||
this.tbControl.Items.Add(newTabItem);
|
this.tbControl.Items.Add(newTabItem);
|
||||||
|
|||||||
Reference in New Issue
Block a user