Download data/DWSIM.Controls.IronPythonConsole/PythonConsoleWindow.xaml from introvoyz041/Dwsim: direct link, hf CLI and curl.
- Browser
- Download file 5.1 kB
-
https://huggingface.co/datasets/introvoyz041/Dwsim/resolve/main/data/DWSIM.Controls.IronPythonConsole/PythonConsoleWindow.xaml
- Command line
-
hf download hf://datasets/introvoyz041/Dwsim/data/DWSIM.Controls.IronPythonConsole/PythonConsoleWindow.xaml
-
curl -L -o PythonConsoleWindow.xaml https://huggingface.co/datasets/introvoyz041/Dwsim/resolve/main/data/DWSIM.Controls.IronPythonConsole/PythonConsoleWindow.xaml
5.1 kB
| <UserControl x:Class="IronPythonConsole.PythonConsoleWindow" | |
| xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | |
| xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | |
| xmlns:avalonEdit="http://icsharpcode.net/sharpdevelop/avalonedit" | |
| xmlns:console="clr-namespace:PythonConsoleControl;assembly=DWSIM.Controls.PythonConsoleControl" | |
| xmlns:pg="http://schemas.denisvuyka.wordpress.com/wpfpropertygrid" | |
| Height="500" Width="700"> | |
| <!-- | |
| Copyright (c) 2010 Joe Moorhouse | |
| --> | |
| <Grid> | |
| <Grid.RowDefinitions> | |
| <RowDefinition Height="50*"/> | |
| <RowDefinition Height="Auto"/> | |
| <RowDefinition Height="30*"/> | |
| </Grid.RowDefinitions> | |
| <Grid.ColumnDefinitions> | |
| <ColumnDefinition Width="1*"/> | |
| <ColumnDefinition Width="Auto"/> | |
| </Grid.ColumnDefinitions> | |
| <Grid Grid.Row="0" Grid.Column="0"> | |
| <console:IronPythonConsoleControl Name="console" FontFamily="Consolas" | |
| FontSize="12pt"></console:IronPythonConsoleControl> | |
| </Grid> | |
| <GridSplitter Grid.Row="1" Height="10" VerticalAlignment="Center" HorizontalAlignment="Stretch"></GridSplitter> | |
| <DockPanel Grid.Row="2" Grid.Column="0"> | |
| <ToolBar DockPanel.Dock="Top"> | |
| <ToolBar.Resources> | |
| <Style TargetType="{x:Type Image}"> | |
| <Style.Triggers> | |
| <DataTrigger Binding="{Binding RelativeSource={RelativeSource AncestorType={x:Type ButtonBase}, AncestorLevel=1}, Path=IsEnabled}" Value="False"> | |
| <Setter Property="Opacity" Value="0.30" /> | |
| </DataTrigger> | |
| </Style.Triggers> | |
| </Style> | |
| </ToolBar.Resources> | |
| <Button Command="Cut"> | |
| <Image Source="Images/Cut.png" Height="16"/> | |
| </Button> | |
| <Button Command="Copy"> | |
| <Image Source="Images/Copy.png" Height="16"/> | |
| </Button> | |
| <Button Command="Paste"> | |
| <Image Source="Images/Paste.png" Height="16"/> | |
| </Button> | |
| <Button Command="Delete"> | |
| <Image Source="Images/Delete.png" Height="16"/> | |
| </Button> | |
| <Separator/> | |
| <Button Command="Undo"> | |
| <Image Source="Images/Undo.png" Height="16"/> | |
| </Button> | |
| <Button Command="Redo"> | |
| <Image Source="Images/Redo.png" Height="16"/> | |
| </Button> | |
| <Separator/> | |
| <CheckBox IsChecked="{Binding ElementName=textEditor,Path=WordWrap}"> | |
| <Image Source="Images/WordWrap.png" Height="16"/> | |
| </CheckBox> | |
| <CheckBox IsChecked="{Binding ElementName=textEditor,Path=ShowLineNumbers}"> | |
| <TextBlock Width="16" TextAlignment="Center">#</TextBlock> | |
| </CheckBox> | |
| <CheckBox IsChecked="{Binding ElementName=textEditor,Path=Options.ShowEndOfLine}"> | |
| <TextBlock Width="16" TextAlignment="Center">¶</TextBlock> | |
| </CheckBox> | |
| <Separator/> | |
| <Button Click="runClick" Name="btnRun"> | |
| <Image Source="Images/Run.png" Height="16"/> | |
| </Button> | |
| <Button Click="stopClick" Name="btnStop" IsEnabled="False"> | |
| <Image Source="Images/Stop.png" Height="16" ToolTip="Stop any running script"/> | |
| </Button> | |
| </ToolBar> | |
| <Grid DockPanel.Dock="Bottom"> | |
| <Grid.ColumnDefinitions> | |
| <ColumnDefinition Width="289*"/> | |
| <ColumnDefinition Width="388*"/> | |
| </Grid.ColumnDefinitions> | |
| <avalonEdit:TextEditor | |
| Name="textEditor" | |
| FontFamily="Consolas" | |
| FontSize="10pt" Grid.ColumnSpan="2" | |
| ># IronPython Pad. Write code snippets here and F5 to run. If code is selected, only selection is run. | |
| </avalonEdit:TextEditor> | |
| </Grid> | |
| </DockPanel> | |
| <Expander Name="expander" Grid.Column="1" Grid.RowSpan="3" Margin="0 0 0 0" HorizontalAlignment="Right" ExpandDirection="Left" MaxWidth="300"> | |
| <!--<DockPanel Grid.Column="1" Grid.RowSpan="2" Margin="4 0 0 0">--> | |
| <DockPanel> | |
| <ComboBox Name="propertyGridComboBox" DockPanel.Dock="Top" | |
| SelectedIndex="0" SelectionChanged="propertyGridComboBoxSelectionChanged"> | |
| <ComboBoxItem>Console</ComboBoxItem> | |
| <ComboBoxItem>Pad</ComboBoxItem> | |
| </ComboBox> | |
| <pg:PropertyGrid Name="propertyGrid"> | |
| </pg:PropertyGrid> | |
| <!-- | |
| <wpg:PropertyGrid x:Name="propertyGrid" /> | |
| --> | |
| </DockPanel> | |
| </Expander> | |
| </Grid> | |
| </UserControl> | |