The49.Maui.BottomSheet icon indicating copy to clipboard operation
The49.Maui.BottomSheet copied to clipboard

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

Open Shubhampandharpote23 opened this issue 1 year ago • 0 comments

<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

Shubhampandharpote23 avatar May 31 '24 05:05 Shubhampandharpote23