The49.Maui.BottomSheet
The49.Maui.BottomSheet copied to clipboard
when bottom sheet dismiss then i want parent page opacity should be change
<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