Skip to content

Commit fc77fd0

Browse files
authored
Merge pull request #1052 from unoplatform/dev/agzi/RemoveTreasureHunt2023
chore: Remove Treasure Hunt 2023 as the event is done
2 parents b76ea37 + 06e3b0c commit fc77fd0

File tree

5 files changed

+0
-112
lines changed

5 files changed

+0
-112
lines changed

Uno.Gallery/Uno.Gallery.Shared/Converters/SecretConverter.cs

Lines changed: 0 additions & 63 deletions
This file was deleted.

Uno.Gallery/Uno.Gallery.Shared/Uno.Gallery.Shared.projitems

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,6 @@
157157
<Compile Include="$(MSBuildThisFileDirectory)Converters\FromValueToStringConverter.cs" />
158158
<Compile Include="$(MSBuildThisFileDirectory)Converters\HexToColorConverter.cs" />
159159
<Compile Include="$(MSBuildThisFileDirectory)Converters\RandomColorConverter.cs" />
160-
<Compile Include="$(MSBuildThisFileDirectory)Converters\SecretConverter.cs" />
161160
<Compile Include="$(MSBuildThisFileDirectory)Deeplinking\BranchService.cs" />
162161
<Compile Include="$(MSBuildThisFileDirectory)Domain\AnalyticsService.cs" />
163162
<Compile Include="$(MSBuildThisFileDirectory)Entities\Data\Plant.cs" />

Uno.Gallery/Uno.Gallery.Shared/Views/Converters.xaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,4 @@
4141
Provider="HashCode" />
4242

4343
<converters:DebugConverter x:Key="debug" />
44-
45-
<converters:SecretConverter x:Key="Secret" />
4644
</ResourceDictionary>

Uno.Gallery/Uno.Gallery.Shared/Views/SamplePages/ShadowContainerSamplePage.xaml

Lines changed: 0 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -1076,44 +1076,6 @@
10761076
</Viewbox>
10771077
</smtx:XamlDisplay>
10781078

1079-
<Grid x:Name="TreasureHuntSection"
1080-
HorizontalAlignment="Center"
1081-
Visibility="{Binding Converter={StaticResource Secret}, ConverterParameter=SecretShadowCombination, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
1082-
Margin="20">
1083-
<Grid.RowDefinitions>
1084-
<RowDefinition Height="Auto" />
1085-
<RowDefinition Height="Auto" />
1086-
</Grid.RowDefinitions>
1087-
1088-
<Border Background="#E2068C"
1089-
CornerRadius="15"
1090-
Margin="70,0,0,0"
1091-
Padding="10"
1092-
HorizontalAlignment="Left"
1093-
VerticalAlignment="Top">
1094-
<TextBlock TextWrapping="WrapWholeWords"
1095-
FontSize="20"
1096-
Foreground="White">
1097-
<Run Text="You got it!" />
1098-
<LineBreak /><Run Text="The .NET Conf secret decoder challenge letter is" />
1099-
<Span xml:space="preserve"><Run Text="&quot;" /><Run FontWeight="Bold"
1100-
Text="{Binding Converter={StaticResource Secret}, ConverterParameter=HiddenSecret, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" /><Run Text="&quot;" /></Span><Run Text="." />
1101-
</TextBlock>
1102-
</Border>
1103-
1104-
<Polygon Grid.Row="1"
1105-
Points="20,0 15,15, 16,16 18,16 19,15 40,0"
1106-
Fill="#E2068C"
1107-
Margin="65,0,0,70"
1108-
VerticalAlignment="Top" />
1109-
1110-
<Image Grid.RowSpan="2"
1111-
Source="ms-appx:///Assets/DotnetBot.png"
1112-
Width="100"
1113-
HorizontalAlignment="Left"
1114-
VerticalAlignment="Bottom" />
1115-
</Grid>
1116-
11171079
<utu:Divider Margin="0,36" />
11181080

11191081
<TextBlock Text="Neumorphic Styles"

Uno.Gallery/Uno.Gallery.Shared/Views/SamplePages/ShadowContainerSamplePage.xaml.cs

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -50,14 +50,6 @@ public ShadowContainerSamplePage()
5050
private void OnShadowsChanged()
5151
{
5252
RemoveShadowButton.IsEnabled = _shadows?.Count > 1;
53-
_shadows.Cast<Uno.Toolkit.UI.Shadow>().ToList().ForEach(shadow => shadow.PropertyChanged += (s, e) => OnShadowChanged());
54-
}
55-
56-
private void OnShadowChanged()
57-
{
58-
//Put it back to null to force the DataContext to be picked up again by the converter.
59-
TreasureHuntSection.DataContext = null;
60-
TreasureHuntSection.DataContext = ShadowsItemsRepeater.ItemsSource;
6153
}
6254

6355
private void AddShadow(object sender, RoutedEventArgs e)

0 commit comments

Comments
 (0)