Skip to content

Commit 2636dc2

Browse files
committed
Begin XAML wizard dialog window.
1 parent 95ae06e commit 2636dc2

File tree

4 files changed

+67
-7
lines changed

4 files changed

+67
-7
lines changed

src/Stratis.VS.StratisEVM/BaseWizard.cs

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,14 +41,16 @@ public void RunStarted(object automationObject,
4141
{
4242
// Display a form to the user. The form collects
4343
// input for the custom message.
44-
inputForm = new SolidityProjectWizardUserInputForm();
45-
inputForm.ShowDialog();
44+
//inputForm = new SolidityProjectWizardUserInputForm();
45+
//inputForm.ShowDialog();
4646

47-
customMessage = SolidityProjectWizardUserInputForm.CustomMessage;
47+
//customMessage = SolidityProjectWizardUserInputForm.CustomMessage;
4848

49+
Window1 window1 = new Window1();
50+
window1.ShowDialog();
4951
// Add custom parameters.
50-
replacementsDictionary.Add("$custommessage$",
51-
customMessage);
52+
//replacementsDictionary.Add("$custommessage$",
53+
// customMessage);
5254
}
5355
catch (Exception ex)
5456
{

src/Stratis.VS.StratisEVM/Stratis.VS.StratisEVM.csproj

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,9 @@
6363
<Compile Include="SolidityLanguageClient.cs" />
6464
<Compile Include="StratisEVMPackage.cs" />
6565
<Compile Include="StratisEVMPackageIds.cs" />
66+
<Compile Include="Window1.xaml.cs">
67+
<DependentUpon>Window1.xaml</DependentUpon>
68+
</Compile>
6669
<Compile Include="VSUtil.cs" />
6770
</ItemGroup>
6871
<ItemGroup>
@@ -94,9 +97,12 @@
9497
</None>
9598
</ItemGroup>
9699
<ItemGroup>
100+
<Reference Include="PresentationCore" />
101+
<Reference Include="PresentationFramework" />
97102
<Reference Include="System" />
98103
<Reference Include="System.Drawing" />
99-
<Reference Include="System.Windows.Forms" />
104+
<Reference Include="System.Xaml" />
105+
<Reference Include="WindowsBase" />
100106
</ItemGroup>
101107
<ItemGroup>
102108
<PackageReference Include="Microsoft.VisualStudio.LanguageServer.Client">
@@ -167,7 +173,12 @@
167173
<ManifestResourceName>StratisEVMPackage</ManifestResourceName>
168174
</EmbeddedResource>
169175
</ItemGroup>
170-
<ItemGroup />
176+
<ItemGroup>
177+
<Page Include="Window1.xaml">
178+
<SubType>Designer</SubType>
179+
<Generator>MSBuild:Compile</Generator>
180+
</Page>
181+
</ItemGroup>
171182
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
172183
<Import Project="$(VSToolsPath)\VSSDK\Microsoft.VsSDK.targets" Condition="'$(VSToolsPath)' != ''" />
173184
<!--
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
<VS:DialogWindow x:Class="Stratis.VS.StratisEVM.Window1"
2+
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
3+
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
4+
xmlns:VS="clr-namespace:Microsoft.VisualStudio.PlatformUI"
5+
Title="Window1" Height="100" Width="300">
6+
<Window.Resources>
7+
<SolidColorBrush x:Key="MyBrush" Color="Gold"/>
8+
<Style TargetType="Border" x:Key="PageBackground">
9+
<Setter Property="BorderBrush" Value="Blue"/>
10+
<Setter Property="BorderThickness" Value="5" />
11+
</Style>
12+
</Window.Resources>
13+
<Border Style="{StaticResource PageBackground}">
14+
<StackPanel>
15+
<TextBlock Text="Hello" />
16+
</StackPanel>
17+
</Border>
18+
</VS:DialogWindow>
19+
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
using System;
2+
using System.Collections.Generic;
3+
using System.Linq;
4+
using System.Text;
5+
using System.Threading.Tasks;
6+
using System.Windows;
7+
using System.Windows.Controls;
8+
using System.Windows.Data;
9+
using System.Windows.Documents;
10+
using System.Windows.Input;
11+
using System.Windows.Media;
12+
using System.Windows.Media.Imaging;
13+
using System.Windows.Navigation;
14+
using System.Windows.Shapes;
15+
using Microsoft.VisualStudio.PlatformUI;
16+
namespace Stratis.VS.StratisEVM
17+
{
18+
/// <summary>
19+
/// Interaction logic for UserControl1.xaml
20+
/// </summary>
21+
public partial class Window1 : DialogWindow
22+
{
23+
public Window1()
24+
{
25+
InitializeComponent();
26+
}
27+
}
28+
}

0 commit comments

Comments
 (0)