A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
app broken help
The app is broken in release mode
Thís is a video going thru everything
https://reccloud.com/u/lvtemaz
I don't know how to read the logcart there is a bunch of things
I created another app, with a collectionview and I put it in release mode and works
https://github.com/eduardoagr/tessting
do you think the error is becouse I deleted all
<?xml version="1.0" encoding="utf-8" ?>
from my xaml pages?
Or probably is the template
`
<?xml version="1.0" encoding="utf-8" ?>
<ResourceDictionary
x:Class="METROWIND.Resources.TurbineTemplate"
xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:constant="clr-namespace:METROWIND.Constants"
xmlns:controls="clr-namespace:METROWIND.Controls"
xmlns:local="clr-namespace:METROWIND"
xmlns:mct="http://schemas.microsoft.com/dotnet/2022/maui/toolkit"
xmlns:vm="clr-namespace:METROWIND.ViewModel">
<DataTemplate
x:Key="PhoneTemplate"
x:DataType="{x:Null}">
<SwipeView Threshold="200">
<SwipeView.RightItems>
<SwipeItems Mode="Execute">
<SwipeItemView
Command="{x:Binding DeleteTurbineCommand,
Source={x:RelativeSource AncestorType={x:Type vm:TurbinesCollectionPageViewModel}}}"
CommandParameter="{x:Binding .}">
<Label Style="{x:StaticResource DeleteStyleForMobile}" />
</SwipeItemView>
</SwipeItems>
</SwipeView.RightItems>
<controls:TurbineData
x:Name="TirbineDataControl"
TurbineAddres="{x:Binding Turbine.Address}"
TurbineCreationDate="{x:Binding Turbine.StringifyInstalationDate}"
TurbineName="{x:Binding Turbine.Name}" />
</SwipeView>
</DataTemplate>
<DataTemplate x:Key="DeskTopTemplate">
<Grid
x:Name="GridContainer"
ColumnDefinitions="*">
<controls:TurbineData
Grid.ColumnSpan="2"
TurbineAddres="{x:Binding Turbine.Address}"
TurbineCreationDate="{x:Binding Turbine.StringifyInstalationDate}"
TurbineName="{x:Binding Turbine.Name}" />
<Border
BackgroundColor="#C62B26"
Style="{x:StaticResource DeleteBtonBorderStyle}">
<Label
Grid.RowSpan="3"
Grid.Column="1"
Style="{x:StaticResource DeleteLabelStyleDesktop}">
<Label.GestureRecognizers>
<TapGestureRecognizer
Command="{x:Binding DeleteTurbineCommand,
Source={x:RelativeSource AncestorType={x:Type vm:TurbinesCollectionPageViewModel}}}"
CommandParameter="{x:Binding .}" />
</Label.GestureRecognizers>
</Label>
</Border>
<Grid.GestureRecognizers>
<PointerGestureRecognizer
PointerEnteredCommand="{x:Binding MouseEnterCommand,
Source={x:RelativeSource AncestorType={x:Type vm:TurbinesCollectionPageViewModel}}}"
PointerEnteredCommandParameter="{x:Binding Source={x:Reference GridContainer}}" />
<PointerGestureRecognizer
PointerExitedCommand="{x:Binding MouseLeaveCommand,
Source={x:RelativeSource AncestorType={x:Type vm:TurbinesCollectionPageViewModel}}}"
PointerExitedCommandParameter="{x:Binding Source={x:Reference GridContainer}}" />
</Grid.GestureRecognizers>
</Grid>
</DataTemplate>
<local:DeviceDataTemplateSelector
x:Key="SelectDataTemplateSelector"
DeskTopTemplate="{x:StaticResource DeskTopTemplate}"
PhoneTemplate="{x:StaticResource PhoneTemplate}" />
</ResourceDictionary>
or the collectionPege
<ContentPage
x:Class="METROWIND.Views.TurbinesCollectionPage"
xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:editors="clr-namespace:Syncfusion.Maui.Inputs;assembly=Syncfusion.Maui.Inputs"
xmlns:inputLayout="clr-namespace:Syncfusion.Maui.Core;assembly=Syncfusion.Maui.Core"
xmlns:mct="http://schemas.microsoft.com/dotnet/2022/maui/toolkit"
xmlns:rex="clr-namespace:METROWIND.Resources"
xmlns:vm="clr-namespace:METROWIND.ViewModel"
x:Name="TurbinesCollection"
x:DataType="vm:TurbinesCollectionPageViewModel">
<ContentPage.Behaviors>
<mct:EventToCommandBehavior
Command="{x:Binding PageEnterCommand}"
CommandParameter="{x:Binding Source={x:Reference TurbineCollection}}"
EventName="Appearing" />
</ContentPage.Behaviors>
<ContentPage.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<rex:TurbineTemplate />
</ResourceDictionary.MergedDictionaries>
</ResourceDictionary>
</ContentPage.Resources>
<Grid
RowDefinitions="Auto,*"
RowSpacing="-30">
<inputLayout:SfTextInputLayout Style="{x:StaticResource TurbineCollectionComboBoxStyle}">
<editors:SfComboBox
x:Name="combobox"
DisplayMemberPath="Turbine.Name"
ItemsSource="{x:Binding Turbines}"
Style="{x:DynamicResource TurbinesCollectionComboBoxStyle}">
<editors:SfComboBox.Behaviors>
<mct:EventToCommandBehavior
Command="{x:Binding SelectedItemChangeCommand}"
CommandParameter="{x:Binding Source={x:Reference combobox}}"
EventName="SelectionChanged" />
</editors:SfComboBox.Behaviors>
</editors:SfComboBox>
</inputLayout:SfTextInputLayout>
<CollectionView
x:Name="TurbineCollection"
Grid.Row="1"
ItemTemplate="{x:StaticResource SelectDataTemplateSelector}"
ItemsSource="{x:Binding Turbines}"
Style="{x:StaticResource TurbineCollectionViewStyle}" />
<Button
Grid.Row="1"
Command="{x:Binding AddNewTurbinePopUpCommand}"
CommandParameter="{x:Binding Source={x:Reference TurbinePopUp}}"
Style="{x:StaticResource OpenPopUpButtonStyle}" />
</Grid>
</ContentPage>
these are my release option
If you release on windows
My app will not navigate to the collection page
------------------UPDATE------------------------
I found the error
the error was here
CommandParameter="{x:Binding Source={x:Reference TurbinePopUp}}
```Since I am not using a pop up anymore
Thank you