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

when bottom sheet dismiss then i want parent page opacity should be change #118

Open
Shubhampandharpote23 opened this issue May 31, 2024 · 0 comments

Comments

@Shubhampandharpote23
Copy link

<the49:BottomSheet xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
x:Class="ChangeBoxMobileApp.Views.FilterBottomSheet"
xmlns:viewModels="clr-namespace:ChangeBoxMobileApp.ViewModels"
x:DataType="viewModels:TransactionFilterViewModel"
xmlns:the49="https://schemas.the49.com/dotnet/2023/maui"
BackgroundColor="Transparent"
Dismissed="FilterBottomSheet_OnDismissed"
x:Name="BottomSheet">

                private void FilterBottomSheet_OnDismissed(object? sender, DismissOrigin e)
{
    var transactionView = (TransactionView)Shell.Current.CurrentPage;
    transactionView.Opacity = 1;
}
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
         xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
         x:Class="ChangeBoxMobileApp.Views.TransactionView"
         Title="TransactionView"
         BackgroundColor="#17063c"
         xmlns:Syncfusion="clr-namespace:Syncfusion.Maui.Core;assembly=Syncfusion.Maui.Core"
         Shell.NavBarIsVisible="False"
         xmlns:viewModels="clr-namespace:ChangeBoxMobileApp.ViewModels.Transaction"
         x:DataType="viewModels:TransactionViewModel"
         Opacity="1">

<Grid RowDefinitions=".1*,.1*,.8*"
      x:Name="TransactionPageContent"
      IsEnabled="{Binding IsTransactionEnable}"
      Opacity="{Binding PageOpacity}">
      here is more context this code not work please check
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant