diff options
| author | Jean-Philippe Bruyère <jp_bruyere@hotmail.com> | 2020-04-21 15:45:23 +0200 |
|---|---|---|
| committer | j-p <jp_bruyere@hotmail.com> | 2020-05-10 00:50:02 +0200 |
| commit | df2ad1e48d1aba38e93834bc89566761d56d35ff (patch) | |
| tree | 235f96f4afcbfb226a9f8825e1d966a991a724ed /Samples/BasicTests | |
| parent | 6b4d2ea66d5312a2494d49beb6d868da68f11e9d (diff) | |
add facilities for using icons for EnumSelector + path parsing documentation and test
Diffstat (limited to 'Samples/BasicTests')
| -rw-r--r-- | Samples/BasicTests/BasicTests.cs | 15 | ||||
| -rw-r--r-- | Samples/BasicTests/BasicTests.csproj | 14 |
2 files changed, 26 insertions, 3 deletions
diff --git a/Samples/BasicTests/BasicTests.cs b/Samples/BasicTests/BasicTests.cs index 8d76b31e..90917302 100644 --- a/Samples/BasicTests/BasicTests.cs +++ b/Samples/BasicTests/BasicTests.cs @@ -32,8 +32,9 @@ namespace tests //testFiles = new string [] { @"Interfaces/Experimental/testDock.crow" }; //testFiles = new string [] { @"Interfaces/Divers/welcome.crow" }; //testFiles = new string [] { @"Interfaces/TemplatedGroup/3.crow" }; - //testFiles = new string [] { @"Interfaces/Divers/perfMeasures.crow" }; - testFiles = new string [] { @"Interfaces/Divers/colorPicker2.crow" }; + //testFiles = new string [] { @"Interfaces/Divers/testShape.crow" }; + testFiles = new string [] { @"Interfaces/TemplatedControl/testEnumSelector.crow" }; + //testFiles = new string [] { @"Interfaces/Divers/colorPicker2.crow" }; testFiles = testFiles.Concat (Directory.GetFiles (@"Interfaces/GraphicObject", "*.crow")).ToArray (); testFiles = testFiles.Concat (Directory.GetFiles (@"Interfaces/Container", "*.crow")).ToArray (); testFiles = testFiles.Concat (Directory.GetFiles (@"Interfaces/Group", "*.crow")).ToArray (); @@ -126,6 +127,16 @@ namespace tests NotifyValueChanged ("IntValue", intValue); } } + VerticalAlignment currentVAlign; + public VerticalAlignment CurrentVAlign { + get => currentVAlign; + set { + if (currentVAlign == value) + return; + currentVAlign = value; + NotifyValueChanged ("CurrentVAlign", currentVAlign); + } + } void onSpinnerValueChange (object sender, ValueChangeEventArgs e) { if (e.MemberName != "Value") diff --git a/Samples/BasicTests/BasicTests.csproj b/Samples/BasicTests/BasicTests.csproj index 813b9b66..71a7a829 100644 --- a/Samples/BasicTests/BasicTests.csproj +++ b/Samples/BasicTests/BasicTests.csproj @@ -15,6 +15,9 @@ <ProjectReference Include="..\..\Crow\Crow.csproj" /> </ItemGroup> <ItemGroup> + <EmbeddedResource Remove="..\common\ui\templates\test.style" /> + </ItemGroup> + <ItemGroup> <Datas Include="..\data\**\*.*"> <Link>data\%(RecursiveDir)%(Filename)%(Extension)</Link> </Datas> @@ -29,5 +32,14 @@ <LogicalName>ui.%(Filename)%(Extension)</LogicalName> <Link>Templates\%(Filename)%(Extension)</Link> </EmbeddedResource> - </ItemGroup> + <EmbeddedResource Include="..\common\samples.style" /> + <EmbeddedResource Include="..\common\ui\images\**\*.*"> + <LogicalName>images.%(Filename)%(Extension)</LogicalName> + <Link>Images\%(Filename)%(Extension)</Link> + </EmbeddedResource> + <EmbeddedResource Include="..\common\ui\Icons\*.*"> + <LogicalName>Icons.%(Filename)%(Extension)</LogicalName> + <Link>Icons\%(Filename)%(Extension)</Link> + </EmbeddedResource> + </ItemGroup> </Project>
\ No newline at end of file |