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

chore: Remove Treasure Hunt 2023 as the event is done #1052

Merged
merged 1 commit into from
Nov 22, 2023
Merged
Show file tree
Hide file tree
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
63 changes: 0 additions & 63 deletions Uno.Gallery/Uno.Gallery.Shared/Converters/SecretConverter.cs

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,6 @@
<Compile Include="$(MSBuildThisFileDirectory)Converters\FromValueToStringConverter.cs" />
<Compile Include="$(MSBuildThisFileDirectory)Converters\HexToColorConverter.cs" />
<Compile Include="$(MSBuildThisFileDirectory)Converters\RandomColorConverter.cs" />
<Compile Include="$(MSBuildThisFileDirectory)Converters\SecretConverter.cs" />
<Compile Include="$(MSBuildThisFileDirectory)Deeplinking\BranchService.cs" />
<Compile Include="$(MSBuildThisFileDirectory)Domain\AnalyticsService.cs" />
<Compile Include="$(MSBuildThisFileDirectory)Entities\Data\Plant.cs" />
Expand Down
2 changes: 0 additions & 2 deletions Uno.Gallery/Uno.Gallery.Shared/Views/Converters.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,4 @@
Provider="HashCode" />

<converters:DebugConverter x:Key="debug" />

<converters:SecretConverter x:Key="Secret" />
</ResourceDictionary>
Original file line number Diff line number Diff line change
Expand Up @@ -1076,44 +1076,6 @@
</Viewbox>
</smtx:XamlDisplay>

<Grid x:Name="TreasureHuntSection"
HorizontalAlignment="Center"
Visibility="{Binding Converter={StaticResource Secret}, ConverterParameter=SecretShadowCombination, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
Margin="20">
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
</Grid.RowDefinitions>

<Border Background="#E2068C"
CornerRadius="15"
Margin="70,0,0,0"
Padding="10"
HorizontalAlignment="Left"
VerticalAlignment="Top">
<TextBlock TextWrapping="WrapWholeWords"
FontSize="20"
Foreground="White">
<Run Text="You got it!" />
<LineBreak /><Run Text="The .NET Conf secret decoder challenge letter is" />
<Span xml:space="preserve"><Run Text="&quot;" /><Run FontWeight="Bold"
Text="{Binding Converter={StaticResource Secret}, ConverterParameter=HiddenSecret, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" /><Run Text="&quot;" /></Span><Run Text="." />
</TextBlock>
</Border>

<Polygon Grid.Row="1"
Points="20,0 15,15, 16,16 18,16 19,15 40,0"
Fill="#E2068C"
Margin="65,0,0,70"
VerticalAlignment="Top" />

<Image Grid.RowSpan="2"
Source="ms-appx:///Assets/DotnetBot.png"
Width="100"
HorizontalAlignment="Left"
VerticalAlignment="Bottom" />
</Grid>

<utu:Divider Margin="0,36" />

<TextBlock Text="Neumorphic Styles"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,14 +50,6 @@ public ShadowContainerSamplePage()
private void OnShadowsChanged()
{
RemoveShadowButton.IsEnabled = _shadows?.Count > 1;
_shadows.Cast<Uno.Toolkit.UI.Shadow>().ToList().ForEach(shadow => shadow.PropertyChanged += (s, e) => OnShadowChanged());
}

private void OnShadowChanged()
{
//Put it back to null to force the DataContext to be picked up again by the converter.
TreasureHuntSection.DataContext = null;
TreasureHuntSection.DataContext = ShadowsItemsRepeater.ItemsSource;
}

private void AddShadow(object sender, RoutedEventArgs e)
Expand Down
Loading