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: add value binding to SwitchPresenter #181

Merged
merged 1 commit into from
Nov 10, 2024
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
4 changes: 2 additions & 2 deletions Project2FA/Project2FA.UWP/Package.appxmanifest
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
xmlns:rescap="http://schemas.microsoft.com/appx/manifest/foundation/windows10/restrictedcapabilities"
xmlns:uap6="http://schemas.microsoft.com/appx/manifest/uap/windows10/6"
IgnorableNamespaces="uap mp rescap uap6">
<Identity Name="38343JanPhilippWeber.2fastTwoFactorAuthenticatorSu" Publisher="CN=31DBFF9D-D4FF-4E73-808A-7B49119D08D3" Version="0.0.1.0" />
<mp:PhoneIdentity PhoneProductId="422adbdb-6213-4e25-ada0-57ef2ef12d1f" PhonePublisherId="00000000-0000-0000-0000-000000000000" />
<Identity Name="38343JanPhilippWeber.2fastTwoFactorAuthenticatorSu" Publisher="CN=31DBFF9D-D4FF-4E73-808A-7B49119D08D3" Version="1.3.3.0" />
<mp:PhoneIdentity PhoneProductId="bc29244b-719f-4ec0-9714-0371a4b56bae" PhonePublisherId="00000000-0000-0000-0000-000000000000" />
<Properties>
<DisplayName>2fast – Two Factor Authenticator Supporting TOTP</DisplayName>
<PublisherDisplayName>Jan Philipp Weber</PublisherDisplayName>
Expand Down
26 changes: 19 additions & 7 deletions Project2FA/Project2FA.UWP/Views/UseDataFilePage.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -350,8 +350,9 @@

<ctwc:SwitchPresenter
Grid.ColumnSpan="3"
>
<ctwc:Case Value="GeneralError">
TargetType="x:Boolean"
Value="{x:Bind ViewModel.ShowError, Mode=OneWay}">
<ctwc:Case Value="True">
<Grid
Background="{ThemeResource TranslucentBackgroundHighBrush}">
<StackPanel>
Expand All @@ -371,7 +372,14 @@
</StackPanel>
</Grid>
</ctwc:Case>
<ctwc:Case Value="WebDAVLoginError">
</ctwc:SwitchPresenter>

<ctwc:SwitchPresenter
Grid.ColumnSpan="3"
TargetType="x:Boolean"
Value="{x:Bind ViewModel.WebDAVLoginError, Mode=OneWay}">

<ctwc:Case Value="True">
<Grid
Background="{ThemeResource TranslucentBackgroundHighBrush}">
<StackPanel>
Expand All @@ -391,7 +399,14 @@
</StackPanel>
</Grid>
</ctwc:Case>
<ctwc:Case Value="Loading">

</ctwc:SwitchPresenter>

<ctwc:SwitchPresenter
Grid.ColumnSpan="3"
TargetType="x:Boolean"
Value="{x:Bind ViewModel.IsLoading, Mode=OneWay}">
<ctwc:Case Value="True">
<Grid
Background="{ThemeResource TranslucentBackgroundHighBrush}">
<muxc:ProgressRing
Expand All @@ -404,9 +419,6 @@
</ctwc:SwitchPresenter>





<VisualStateManager.VisualStateGroups>
<VisualStateGroup x:Name="WindowStates">
<VisualState x:Name="NarrowState">
Expand Down