Skip to content

InvalidOperationException LayoutTransform.ScaleX #3

@4g0st1n0

Description

@4g0st1n0

Hi,
I have an issue when using Notification with areaname like

notificationManager.Show(new NotificationContent
            {
                Title = "Comando inviato",
                Message = message,
                Type = NotificationType.Success

            }, "ControlloAmbWindowArea");
<Grid>
        <DockPanel>

            <ProgressBar Visibility="{Binding ProgressBarVisibility}" DockPanel.Dock="Top" IsIndeterminate="True" Height="10"/>
            <Label x:Name="lblName" DockPanel.Dock="Top" FontSize="16" FontWeight="Bold" HorizontalAlignment="Center" Content="{Binding DispositivoAudio.Nome}"/>


            <ui:ControlloAmbView IsEnabled="{Binding IsControlEnabled}" ></ui:ControlloAmbView>
        </DockPanel>
        <notifications:NotificationArea x:Name="ControlloAmbWindowArea" Width="250"  Position="TopRight" MaxItems="3"/>

    </Grid>

Sometime before the notification close itself there is an unhandled exception:

Eccezione non gestita: System.InvalidOperationException: Impossibile risolvere tutti i riferimenti di proprietà nel percorso della proprietà 'LayoutTransform.ScaleX'. Verificare che gli oggetti applicabili supportino le proprietà.
in System.Windows.Media.Animation.Storyboard.VerifyPathIsAnimatable(PropertyPath path)
in System.Windows.Media.Animation.Storyboard.ClockTreeWalkRecursive(Clock currentClock, DependencyObject containingObject, INameScope nameScope, DependencyObject parentObject, String parentObjectName, PropertyPath parentPropertyPath, HandoffBehavior handoffBehavior, HybridDictionary clockMappings, Int64 layer)
in System.Windows.Media.Animation.Storyboard.ClockTreeWalkRecursive(Clock currentClock, DependencyObject containingObject, INameScope nameScope, DependencyObject parentObject, String parentObjectName, PropertyPath parentPropertyPath, HandoffBehavior handoffBehavior, HybridDictionary clockMappings, Int64 layer)
in System.Windows.Media.Animation.Storyboard.BeginCommon(DependencyObject containingObject, INameScope nameScope, HandoffBehavior handoffBehavior, Boolean isControllable, Int64 layer)
in Notifications.Wpf.Controls.Notification.Close()
in Notifications.Wpf.Controls.NotificationArea.d__12.MoveNext()
in System.Windows.Application.RunInternal(Window window)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions