Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DYN-1681a: As a Dynamo user, I want to resize the Set Value dialog #9600

Merged
merged 2 commits into from
Apr 16, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 14 additions & 7 deletions src/DynamoCoreWpf/UI/Prompts/EditWindow.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,26 @@
xmlns:ui="clr-namespace:Dynamo.UI"
xmlns:p="clr-namespace:Dynamo.Wpf.Properties"
Title="{x:Static p:Resources.EditWindowTitle}"
MinHeight="130" MaxHeight="200" Width="400">
MaxHeight="{x:Static SystemParameters.PrimaryScreenHeight}"
MaxWidth="{x:Static SystemParameters.PrimaryScreenWidth}"
MinHeight="130" Height="200" Width="400">

<StackPanel>
<Grid>

<StackPanel.Background>
<Grid.Background>
<LinearGradientBrush StartPoint="0.5,0" EndPoint="0.5,1">
<GradientStop Color="#444" Offset="0.0" />
<GradientStop Color="#222" Offset="1.0" />
</LinearGradientBrush>
</StackPanel.Background>
</Grid.Background>

<Grid.RowDefinitions>
<RowDefinition Height="*" />
<RowDefinition Height="auto" />
</Grid.RowDefinitions>

<TextBox
Grid.Row="0"
PreviewKeyDown="OnEditWindowPreviewKeyDown"
Margin="10"
x:FieldModifier="private"
Expand All @@ -31,16 +39,15 @@
AcceptsReturn="True"
HorizontalScrollBarVisibility="Disabled"
VerticalScrollBarVisibility="Auto"
Height="80"
TextWrapping="Wrap"
AcceptsTab="True"/>

<StackPanel Orientation="Horizontal" FlowDirection="RightToLeft">
<StackPanel Grid.Row="1" Orientation="Horizontal" FlowDirection="RightToLeft">
<!--<Button Content="Cancel" Style="{DynamicResource ResourceKey=STextButton}" Margin="10" Name="button1" VerticalAlignment="Bottom" Click="CancelClick" />-->
<Button Content="{x:Static p:Resources.EditWindowAcceptButton}" Style="{DynamicResource ResourceKey=STextButton}" Margin="10" Name="button2" VerticalAlignment="Bottom" Width="auto" MinWidth="75" Click="OkClick" />
</StackPanel>

</StackPanel>
</Grid>

<Window.Resources>
<ResourceDictionary>
Expand Down