57 lines
2.7 KiB
XML
57 lines
2.7 KiB
XML
<Window x:Class="JansenLegSimulator.Cálculos"
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
xmlns:local="clr-namespace:JansenLegViewer"
|
|
Name="thisWindow"
|
|
mc:Ignorable="d"
|
|
Title="MainWindow" Height="450" Width="800">
|
|
<Grid Margin="1,0,-1,0">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="80*" />
|
|
<ColumnDefinition Width="20*"/>
|
|
</Grid.ColumnDefinitions>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition/>
|
|
<RowDefinition Height="26"/>
|
|
</Grid.RowDefinitions>
|
|
<Canvas Name="plot" Grid.Column="0"/>
|
|
<GridSplitter BorderBrush="LightGray" BorderThickness="3"/>
|
|
|
|
<StackPanel Grid.Column="1">
|
|
<StackPanel Orientation="Horizontal">
|
|
<Button Name="btnPlay" Content=">" Click="btnPlay_Click"/>
|
|
<Button Name="btnPause" Content="| |" Click="btnPause_Click"/>
|
|
<Button Name="btnStop" Content="#" Click="btnStop_Click"/>
|
|
</StackPanel>
|
|
<Label Content="ω rotor (rad/s)"/>
|
|
<TextBox Text="{Binding ElementName=thisWindow, Path=Omega, UpdateSourceTrigger=PropertyChanged}" Width="100"/>
|
|
|
|
<StackPanel Orientation="Horizontal">
|
|
<Label Content="Número de puntos"/>
|
|
<Label Content="{Binding ElementName=sbPoints, Path=Value}"/>
|
|
</StackPanel>
|
|
|
|
<ScrollBar Name="sbPoints" Orientation="Horizontal" Value="{Binding ElementName=thisWindow, Path=MaxPoints, UpdateSourceTrigger=PropertyChanged}" Minimum="0" Maximum="500"/>
|
|
|
|
<ListView ItemsSource="{Binding ElementName=thisWindow, Path=Elements}">
|
|
<ListView.ItemTemplate>
|
|
<DataTemplate DataType="local:Rod">
|
|
<Grid>
|
|
<StackPanel>
|
|
<TextBox Text="{Binding RodName, UpdateSourceTrigger=PropertyChanged}" Width="100"/>
|
|
<TextBox Text="{Binding Length, UpdateSourceTrigger=PropertyChanged}" Width="100"/>
|
|
</StackPanel>
|
|
</Grid>
|
|
</DataTemplate>
|
|
</ListView.ItemTemplate>
|
|
</ListView>
|
|
</StackPanel>
|
|
<StatusBar Grid.Row="1" Grid.ColumnSpan="2">
|
|
<StatusBarItem Name="SimulationStatus"/>
|
|
<StatusBarItem Name="Time"/>
|
|
</StatusBar>
|
|
</Grid>
|
|
</Window>
|