-
-
Notifications
You must be signed in to change notification settings - Fork 200
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
hide next step when no verify code provided
- Loading branch information
Showing
11 changed files
with
125 additions
and
97 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 15 additions & 0 deletions
15
src/Snap.Hutao/Snap.Hutao/UI/Xaml/Data/Converter/EmptyStringToBoolConverter.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
// Copyright (c) DGP Studio. All rights reserved. | ||
// Licensed under the MIT license. | ||
|
||
using CommunityToolkit.WinUI.Converters; | ||
|
||
namespace Snap.Hutao.UI.Xaml.Data.Converter; | ||
|
||
internal sealed partial class EmptyStringToBoolConverter : EmptyStringToObjectConverter | ||
{ | ||
public EmptyStringToBoolConverter() | ||
{ | ||
EmptyValue = false; | ||
NotEmptyValue = true; | ||
} | ||
} |
16 changes: 16 additions & 0 deletions
16
src/Snap.Hutao/Snap.Hutao/UI/Xaml/Data/Converter/EmptyStringToVisibilityConverter.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
// Copyright (c) DGP Studio. All rights reserved. | ||
// Licensed under the MIT license. | ||
|
||
using CommunityToolkit.WinUI.Converters; | ||
using Microsoft.UI.Xaml; | ||
|
||
namespace Snap.Hutao.UI.Xaml.Data.Converter; | ||
|
||
internal sealed partial class EmptyStringToVisibilityConverter : EmptyStringToObjectConverter | ||
{ | ||
public EmptyStringToVisibilityConverter() | ||
{ | ||
EmptyValue = Visibility.Collapsed; | ||
NotEmptyValue = Visibility.Visible; | ||
} | ||
} |
21 changes: 0 additions & 21 deletions
21
src/Snap.Hutao/Snap.Hutao/UI/Xaml/Data/Converter/StringBoolConverter.cs
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters