how to pass data between components mudblazor(or blazor)

I want to pass ActivatedValue.Value (which is my model’s id) to another component.

@using ProtaTestTrack2.Helpers
@using ProtaTestTrack2.Services
@inject IDialogService DialogService


<MudPaper Class="d-flex flex-column" Style="position: relative; padding: 16px;">
    <MudIconButton Icon="@Icons.Material.Filled.Add" Color="Color.Primary" Style="position: absolute; top: 10px; right: 50px;" OnClick="OpenDialog" />
    <MudIconButton Icon="@Icons.Material.Filled.Edit" Color="Color.Secondary" Style="position: absolute; top: 10px; right: 10px;" OnClick="EditFeature" />

    <MudTreeView Items="TreeItems" MultiSelection="false" SelectedValueChanged="FeatureChanged" @bind-ActivatedValue="ActivatedValue" @bind-SelectedValues="SelectedValues" Dense>
        <ItemTemplate Context="item">
            <MudTreeViewItem @bind-Expanded="@item.IsExpanded" Items="@item.TreeItems" Value="@item"
                            Icon="@item.Icon" Text="@item.Title" EndText="@item.Number?.ToString()" EndTextTypo="@Typo.caption">
                <BodyContent>
                    <MudText Style="justify-self: start;">
                        <MudHighlighter Text="@context.Text" />
                    </MudText>
                </BodyContent>
            </MudTreeViewItem>
        </ItemTemplate>
    </MudTreeView>
</MudPaper>

@code {

    private int myVar;

    public int MyProperty
    {
        get { return myVar; }
        set { myVar = value; }
    }

    [Inject] FeatureService featureService { get; set; }

    private TreeItemData _ActivatedValue;

    [Parameter]
    public TreeItemData ActivatedValue
    {
        get { return _ActivatedValue; }
        set
        {
            _ActivatedValue = value;
            FeatureChanged.InvokeAsync(value);
        }
    }

    [Parameter] public EventCallback<TreeItemData> FeatureChanged { get; set; }

    [Parameter] public HashSet<TreeItemData> SelectedValues { get; set; } = new HashSet<TreeItemData>();

    private HashSet<TreeItemData> TreeItems { get; set; } = new HashSet<TreeItemData>();

    protected override async Task OnInitializedAsync()
    {
        await PopulateTree();
    }

    public async Task PopulateTree()
    {
        var features = await featureService.GetAllFeaturesAsync();
        var treehelper = new Helpers.TreeviewHelper(features);
        treehelper.BuildTree();
        TreeItems = treehelper.TreeItems;

        StateHasChanged();
    }

    private Task OpenDialog(MouseEventArgs e)
    {
        var options = new DialogOptions { CloseOnEscapeKey = true };

        return DialogService.ShowAsync<FeatureDialog>("Feature", options);
    }
    

    private void EditFeature(MouseEventArgs e)
    {
        // Edit feature logic here
    }
}

this is my models component which is feature.

@using ProtaTestTrack2.Model
@using ProtaTestTrack2.Services
@inject FeatureService featureService

<MudDialog>
    <DialogContent>
        <MudTextField T="string" Label="Name" @bind-Value="featureData.Name" />
    </DialogContent>
    <DialogActions>
        <MudButton OnClick="Cancel">Cancel</MudButton>
        <MudButton Color="Color.Primary" OnClick="Submit">Ok</MudButton>
    </DialogActions>
</MudDialog>

@code {
    public class FeatureData 
    {
        public string Name { get; set; }
        public string ParentFeatureID { get; set; }
    }
    [CascadingParameter]
    private MudDialogInstance MudDialog { get; set; }

    private FeatureData featureData = new FeatureData();

    private async Task Submit()
    {
        var feature = MapFeatureData(featureData);
        var createdFeature = await featureService.CreateFeatureAsync(feature);
        MudDialog.Close(DialogResult.Ok(true));
    }

    private void Cancel() => MudDialog.Cancel();
    private Feature MapFeatureData(FeatureData featureData)
    {
        return new Feature
        {
            Name = featureData.Name,
            ParentFeatureID = featureData.ParentFeatureID
        };
    }
}

and this is my dialog component for feature. I want to pass it to here because if the coming data is null that means i will create as parent but if data is not null i will map that data to parent featureId.

<FeatureDialog SelectedFeatureId=”@_ActivatedValue?.Value” /> I tried something like that but it isn’t working and also activated value might change constantly but I couldn’t manage to handle.

Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa Dịch vụ tổ chức sự kiện 5 sao Thông tin về chúng tôi Dịch vụ sinh nhật bé trai Dịch vụ sinh nhật bé gái Sự kiện trọn gói Các tiết mục giải trí Dịch vụ bổ trợ Tiệc cưới sang trọng Dịch vụ khai trương Tư vấn tổ chức sự kiện Hình ảnh sự kiện Cập nhật tin tức Liên hệ ngay Thuê chú hề chuyên nghiệp Tiệc tất niên cho công ty Trang trí tiệc cuối năm Tiệc tất niên độc đáo Sinh nhật bé Hải Đăng Sinh nhật đáng yêu bé Khánh Vân Sinh nhật sang trọng Bích Ngân Tiệc sinh nhật bé Thanh Trang Dịch vụ ông già Noel Xiếc thú vui nhộn Biểu diễn xiếc quay đĩa Dịch vụ tổ chức tiệc uy tín Khám phá dịch vụ của chúng tôi Tiệc sinh nhật cho bé trai Trang trí tiệc cho bé gái Gói sự kiện chuyên nghiệp Chương trình giải trí hấp dẫn Dịch vụ hỗ trợ sự kiện Trang trí tiệc cưới đẹp Khởi đầu thành công với khai trương Chuyên gia tư vấn sự kiện Xem ảnh các sự kiện đẹp Tin mới về sự kiện Kết nối với đội ngũ chuyên gia Chú hề vui nhộn cho tiệc sinh nhật Ý tưởng tiệc cuối năm Tất niên độc đáo Trang trí tiệc hiện đại Tổ chức sinh nhật cho Hải Đăng Sinh nhật độc quyền Khánh Vân Phong cách tiệc Bích Ngân Trang trí tiệc bé Thanh Trang Thuê dịch vụ ông già Noel chuyên nghiệp Xem xiếc khỉ đặc sắc Xiếc quay đĩa thú vị
Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa
Thiết kế website Thiết kế website Thiết kế website Cách kháng tài khoản quảng cáo Mua bán Fanpage Facebook Dịch vụ SEO Tổ chức sinh nhật