2 changed files with 96 additions and 84 deletions
@ -1,81 +1,85 @@ |
|||||||
<?xml version="1.0" encoding="utf-8"?> |
<?xml version="1.0" encoding="utf-8"?> |
||||||
<UserControl |
<UserControl |
||||||
x:Class="ICSharpCode.SharpDevelop.Gui.OptionPanels.WebProjectOptionsPanel" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:core="http://icsharpcode.net/sharpdevelop/core" xmlns:widgets="http://icsharpcode.net/sharpdevelop/widgets" xmlns:gui="clr-namespace:ICSharpCode.SharpDevelop.Gui;assembly=ICSharpCode.SharpDevelop" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
x:Class="ICSharpCode.SharpDevelop.Gui.OptionPanels.WebProjectOptionsPanel" |
||||||
> |
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
||||||
<GroupBox Margin="0, 0, 85, 0" |
xmlns:core="http://icsharpcode.net/sharpdevelop/core" |
||||||
Header="{core:Localize ICSharpCode.WepProjectOptionsPanel.Server}"> |
xmlns:widgets="http://icsharpcode.net/sharpdevelop/widgets" |
||||||
|
xmlns:gui="clr-namespace:ICSharpCode.SharpDevelop.Gui;assembly=ICSharpCode.SharpDevelop" |
||||||
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
||||||
|
Width="Auto" Height="Auto"> |
||||||
|
<widgets:StackPanelWithSpacing SpaceBetweenItems="3"> |
||||||
|
<!--IIS Express--> |
||||||
<widgets:StackPanelWithSpacing SpaceBetweenItems="3"> |
<widgets:StackPanelWithSpacing SpaceBetweenItems="3"> |
||||||
<!--IIS Express--> |
<RadioButton |
||||||
<widgets:StackPanelWithSpacing SpaceBetweenItems="3"> |
IsChecked="False" |
||||||
<RadioButton |
GroupName="WebProject" |
||||||
IsChecked="False" |
x:Name="UseIISExpress" |
||||||
GroupName="WebProject" |
Click="UseIISExpress_Click" |
||||||
x:Name="UseIISExpress" |
Content="{core:Localize ICSharpCode.WepProjectOptionsPanel.UseIISExpress}" /> |
||||||
Click="UseIISExpress_Click" |
<Grid Margin="10, 3" |
||||||
Content="{core:Localize ICSharpCode.WepProjectOptionsPanel.UseIISExpress}" /> |
IsEnabled="False" |
||||||
<Grid Margin="10, 3" |
x:Name="IISExpressGroup" |
||||||
IsEnabled="False" |
VerticalAlignment="Top"> |
||||||
x:Name="IISExpressGroup" |
<Grid.ColumnDefinitions> |
||||||
VerticalAlignment="Top"> |
<ColumnDefinition Width="Auto"/> |
||||||
<Grid.ColumnDefinitions> |
<ColumnDefinition Width="Auto"/> |
||||||
<ColumnDefinition Width="Auto"/> |
</Grid.ColumnDefinitions> |
||||||
<ColumnDefinition Width="Auto"/> |
<TextBlock Text="{core:Localize ICSharpCode.WepProjectOptionsPanel.Port}" Margin="0,0,5,0"/> |
||||||
</Grid.ColumnDefinitions> |
<TextBox Grid.Column="1" x:Name="PortTextBox" |
||||||
<TextBlock Text="{core:Localize ICSharpCode.WepProjectOptionsPanel.Port}"/> |
PreviewTextInput="PortTextBox_PreviewTextInput" Text="8080" |
||||||
<TextBox Grid.Column="1" x:Name="PortTextBox" |
KeyUp="PortTextBox_KeyUp" /> |
||||||
PreviewTextInput="PortTextBox_PreviewTextInput" Text="8080" |
</Grid> |
||||||
KeyUp="PortTextBox_KeyUp" /> |
|
||||||
</Grid> |
|
||||||
</widgets:StackPanelWithSpacing> |
|
||||||
<!--IIS Local Server--> |
|
||||||
<widgets:StackPanelWithSpacing SpaceBetweenItems="3"> |
|
||||||
<RadioButton |
|
||||||
IsChecked="False" |
|
||||||
GroupName="WebProject" |
|
||||||
x:Name="UseLocalIIS" |
|
||||||
Click="UseLocalIIS_Click" |
|
||||||
Content="{core:Localize ICSharpCode.WepProjectOptionsPanel.UseLocalIIS}" /> |
|
||||||
<Grid Margin="10, 3" |
|
||||||
IsEnabled="False" |
|
||||||
x:Name="LocalIISGroup" |
|
||||||
VerticalAlignment="Top"> |
|
||||||
<Grid.ColumnDefinitions> |
|
||||||
<ColumnDefinition Width="Auto"/> |
|
||||||
<ColumnDefinition Width="Auto"/> |
|
||||||
</Grid.ColumnDefinitions> |
|
||||||
<TextBlock |
|
||||||
VerticalAlignment="Center" |
|
||||||
Grid.Row="1" |
|
||||||
TextWrapping="Wrap" |
|
||||||
Text="{core:Localize ICSharpCode.WepProjectOptionsPanel.ProjectUrl}" /> |
|
||||||
<TextBox |
|
||||||
Grid.Row="1" |
|
||||||
Grid.Column="1" |
|
||||||
x:Name="ProjectUrl" |
|
||||||
TextChanged="ProjectUrl_TextChanged" |
|
||||||
MinWidth="250" /> |
|
||||||
</Grid> |
|
||||||
</widgets:StackPanelWithSpacing> |
|
||||||
<TextBlock |
|
||||||
Foreground="Red" |
|
||||||
TextDecorations="Underline" |
|
||||||
FontSize="12" |
|
||||||
FontWeight="Bold" |
|
||||||
TextWrapping="Wrap" |
|
||||||
Name="StatusLabel" /> |
|
||||||
<widgets:UniformGridWithSpacing Columns="2" SpaceBetweenColumns="10"> |
|
||||||
<Button |
|
||||||
IsEnabled="False" |
|
||||||
Style="{x:Static core:GlobalStyles.ButtonStyle}" |
|
||||||
Name="CreateVirtualDirectoryButton" |
|
||||||
Content="{core:Localize ICSharpCode.WepProjectOptionsPanel.CreateVirtualDir}" |
|
||||||
Click="CreateVirtualDirectory_Click" /> |
|
||||||
<Button |
|
||||||
Style="{x:Static core:GlobalStyles.ButtonStyle}" |
|
||||||
Name="ClearWebServerButton" |
|
||||||
Content="{core:Localize ICSharpCode.WepProjectOptionsPanel.DisableWebServerButton}" |
|
||||||
Click="ClearWebServerButton_Click" /> |
|
||||||
</widgets:UniformGridWithSpacing> |
|
||||||
</widgets:StackPanelWithSpacing> |
</widgets:StackPanelWithSpacing> |
||||||
</GroupBox> |
<!--IIS Local Server--> |
||||||
|
<widgets:StackPanelWithSpacing SpaceBetweenItems="3"> |
||||||
|
<RadioButton |
||||||
|
IsChecked="False" |
||||||
|
GroupName="WebProject" |
||||||
|
x:Name="UseLocalIIS" |
||||||
|
Click="UseLocalIIS_Click" |
||||||
|
Content="{core:Localize ICSharpCode.WepProjectOptionsPanel.UseLocalIIS}" /> |
||||||
|
<Grid Margin="10, 3" |
||||||
|
IsEnabled="False" |
||||||
|
x:Name="LocalIISGroup" |
||||||
|
VerticalAlignment="Top"> |
||||||
|
<Grid.ColumnDefinitions> |
||||||
|
<ColumnDefinition Width="Auto"/> |
||||||
|
<ColumnDefinition Width="Auto"/> |
||||||
|
</Grid.ColumnDefinitions> |
||||||
|
<TextBlock |
||||||
|
VerticalAlignment="Center" Margin="0,0,5,0" |
||||||
|
Grid.Row="1" |
||||||
|
TextWrapping="Wrap" |
||||||
|
Text="{core:Localize ICSharpCode.WepProjectOptionsPanel.ProjectUrl}" /> |
||||||
|
<TextBox |
||||||
|
Grid.Row="1" |
||||||
|
Grid.Column="1" |
||||||
|
x:Name="ProjectUrl" |
||||||
|
TextChanged="ProjectUrl_TextChanged" |
||||||
|
MinWidth="250" /> |
||||||
|
</Grid> |
||||||
|
</widgets:StackPanelWithSpacing> |
||||||
|
<TextBlock |
||||||
|
Foreground="Red" |
||||||
|
TextDecorations="Underline" |
||||||
|
FontSize="12" |
||||||
|
FontWeight="Bold" |
||||||
|
TextWrapping="Wrap" |
||||||
|
Name="StatusLabel" /> |
||||||
|
<widgets:UniformGridWithSpacing Columns="2" SpaceBetweenColumns="10"> |
||||||
|
<Button |
||||||
|
IsEnabled="False" |
||||||
|
Margin="0,2,0,2" |
||||||
|
Style="{x:Static core:GlobalStyles.ButtonStyle}" |
||||||
|
Name="CreateVirtualDirectoryButton" |
||||||
|
Content="{core:Localize ICSharpCode.WepProjectOptionsPanel.CreateVirtualDir}" |
||||||
|
Click="CreateVirtualDirectory_Click" /> |
||||||
|
<Button |
||||||
|
Margin="0,2,2,2" |
||||||
|
Style="{x:Static core:GlobalStyles.ButtonStyle}" |
||||||
|
Name="ClearWebServerButton" |
||||||
|
Content="{core:Localize ICSharpCode.WepProjectOptionsPanel.DisableWebServerButton}" |
||||||
|
Click="ClearWebServerButton_Click" /> |
||||||
|
</widgets:UniformGridWithSpacing> |
||||||
|
</widgets:StackPanelWithSpacing> |
||||||
</UserControl> |
</UserControl> |
Loading…
Reference in new issue