picpic2006
Topic Author
Posts: 67
Joined: 07 Nov 2013, 15:59

Hard Crash with lisbox on ipad only !

15 Apr 2014, 14:30

Hi i have a hard crash with a listbox populated by a usercontrols list as itemsource.

The bug only accure on my ipad not in the editor, not on osx build, not windows, not test to android.

crash xcode
https://drive.google.com/file/d/0B7tPUW ... sp=sharing

in my editor
https://drive.google.com/file/d/0B7tPUW ... sp=sharing

The error happen when i select an element in my listbox, i populated it with a usercontrol and making a resources form the listboxitem in my panel.

this is my xaml
<UserControl
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
	xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
	mc:Ignorable="d"
	x:Class="ItemListControl"
	x:Name="MyListControl"
	d:DesignWidth="640" d:DesignHeight="480" Width="Auto" Height="760" HorizontalAlignment="Left" VerticalAlignment="Center">
	<UserControl.Resources>
			<Style x:Key="ButtonFocusVisual">
			<Setter Property="Control.Template">
				<Setter.Value>
					<ControlTemplate>
						<Rectangle Margin="2" SnapsToDevicePixels="true" StrokeThickness="1" StrokeDashArray="1 2"/>
					</ControlTemplate>
				</Setter.Value>
			</Setter>
		</Style>
		<LinearGradientBrush x:Key="ButtonNormalBackground" EndPoint="0,1" StartPoint="0,0">
			<GradientStop Color="#F3F3F3" Offset="0"/>
			<GradientStop Color="#EBEBEB" Offset="0.5"/>
			<GradientStop Color="#DDDDDD" Offset="0.5"/>
			<GradientStop Color="#CDCDCD" Offset="1"/>
		</LinearGradientBrush>
		<SolidColorBrush x:Key="ButtonNormalBorder" Color="#FF707070"/>
		<Style x:Key="ButtonInfo" TargetType="{x:Type Button}">
			<Setter Property="FocusVisualStyle" Value="{StaticResource ButtonFocusVisual}"/>
			<Setter Property="Background" Value="{StaticResource ButtonNormalBackground}"/>
			<Setter Property="BorderBrush" Value="{StaticResource ButtonNormalBorder}"/>
			<Setter Property="BorderThickness" Value="1"/>
			<Setter Property="HorizontalContentAlignment" Value="Center"/>
			<Setter Property="VerticalContentAlignment" Value="Center"/>
			<Setter Property="Padding" Value="1"/>
			<Setter Property="Template">
				<Setter.Value>
					<ControlTemplate TargetType="{x:Type Button}">
						<Grid HorizontalAlignment="Stretch" Height="Auto" VerticalAlignment="Stretch" Width="Auto" Margin="0">
							<VisualStateManager.VisualStateGroups>
								<VisualStateGroup x:Name="CommonStates">
									<VisualState x:Name="Normal"/>
									<VisualState x:Name="MouseOver"/>
									<VisualState x:Name="Pressed">
										<Storyboard>
											<ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops)[0].(GradientStop.Color)" Storyboard.TargetName="rectangle">
												<EasingColorKeyFrame KeyTime="0" Value="#FF0D8D00"/>
											</ColorAnimationUsingKeyFrames>
											<ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops)[0].(GradientStop.Color)" Storyboard.TargetName="rectangle1">
												<EasingColorKeyFrame KeyTime="0" Value="#FF3BB13C"/>
											</ColorAnimationUsingKeyFrames>
										</Storyboard>
									</VisualState>
									<VisualState x:Name="Disabled"/>
								</VisualStateGroup>
							</VisualStateManager.VisualStateGroups>
							<Rectangle x:Name="rectangle" HorizontalAlignment="Stretch" Height="Auto" Stroke="#FF00B922" VerticalAlignment="Stretch" Width="Auto" RadiusX="5" RadiusY="5">
								<Rectangle.Fill>
									<LinearGradientBrush EndPoint="0.5,1" MappingMode="RelativeToBoundingBox" StartPoint="0.5,0">
										<GradientStop Color="#FF65F230" Offset="1"/>
										<GradientStop Color="#FF7DE694"/>
									</LinearGradientBrush>
								</Rectangle.Fill>
							</Rectangle>
							<Rectangle x:Name="rectangle1" HorizontalAlignment="Stretch" Height="20" Stroke="{x:Null}" VerticalAlignment="Top" Width="Auto" RadiusX="5" RadiusY="5" Margin="2.667,2,2.667,0" Opacity="0.5">
								<Rectangle.Fill>
									<LinearGradientBrush EndPoint="0.5,1" MappingMode="RelativeToBoundingBox" StartPoint="0.5,0">
										<GradientStop Color="#FF2FE258" Offset="1"/>
										<GradientStop Color="#FFE9FFEE"/>
									</LinearGradientBrush>
								</Rectangle.Fill>
							</Rectangle>
							<Ellipse HorizontalAlignment="Stretch" Height="10" Margin="39.563,0,39.563,8.994" Stroke="{x:Null}" VerticalAlignment="Bottom" Width="10" Panel.ZIndex="2" Fill="White"/>
							<Rectangle Height="Auto" Margin="39.563,10,39.563,23.875" RadiusY="5" RadiusX="5" Stroke="{x:Null}" VerticalAlignment="Stretch" Width="10" Panel.ZIndex="2" Fill="White"/>
						</Grid>
						<ControlTemplate.Triggers>
							<Trigger Property="IsKeyboardFocused" Value="true"/>
							<Trigger Property="ToggleButton.IsChecked" Value="true"/>
							<Trigger Property="IsEnabled" Value="false">
								<Setter Property="Foreground" Value="#ADADAD"/>
							</Trigger>
						</ControlTemplate.Triggers>
					</ControlTemplate>
				</Setter.Value>
			</Setter>
		</Style>
	<!--template pour les items-->
			<DataTemplate x:Key="ListItem"> 
					<Grid x:Name="item">
						<Rectangle Fill="#FFEEEEEE" Stroke="#FF00B418" Width="300" StrokeThickness="0.5"/>
						<TextBlock x:Name="ItemBlock" HorizontalAlignment="Left" Height="90" Margin="10,5,0,0" TextWrapping="Wrap" Text="{Binding Label}" VerticalAlignment="Top" Width="191" FontSize="16" FontWeight="Bold"/>
					</Grid>
				</DataTemplate>
				<!--template pour les items selectionnés-->
				<DataTemplate x:Key="SelectedItem"> 
				   	<Grid x:Name="itemclicked">
						<Rectangle Stroke="#FF00B418" Width="300" StrokeThickness="0.5">
							<Rectangle.Fill>
								<RadialGradientBrush GradientOrigin="0.515,1.075" Center="0.515,1.033" RadiusY="0.8" RadiusX="0.8">
									<GradientStop Color="#FF68E684" Offset="0.064"/>
									<GradientStop Color="White" Offset="1"/>
								</RadialGradientBrush>
							</Rectangle.Fill>
						</Rectangle>
						<Button Content="Detail" Margin="206,5,4.874,5.795" Command="{Binding ShowCommentCommand}" Style="{DynamicResource ButtonInfo}" RenderTransformOrigin="0.5,0.5">
						</Button>
						<TextBlock x:Name="ItemBlock" HorizontalAlignment="Left" Height="90" Margin="10,5,0,0" TextWrapping="Wrap" Text="{Binding Label}" VerticalAlignment="Top" Width="191" FontSize="16" FontWeight="Bold"/>
					</Grid>
				</DataTemplate>
				<Style TargetType="{x:Type ListBoxItem}" x:Key="ContainerStyle">
					<Setter Property="ContentTemplate" Value="{StaticResource ListItem}" />
					<Style.Triggers>
						<Trigger Property="IsSelected" Value="True">
							<Setter Property="ContentTemplate" Value="{StaticResource SelectedItem}" />
						</Trigger>
					</Style.Triggers>
        		</Style>
		<Storyboard x:Key="AppearPanelStoryboard">
			<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.X)" Storyboard.TargetName="LayoutRoot">
				<EasingDoubleKeyFrame KeyTime="0" Value="-1039"/>
				<EasingDoubleKeyFrame KeyTime="0:0:2" Value="0">
					<EasingDoubleKeyFrame.EasingFunction>
						<BackEase EasingMode="EaseOut" Amplitude="-12"/>
					</EasingDoubleKeyFrame.EasingFunction>
				</EasingDoubleKeyFrame>
			</DoubleAnimationUsingKeyFrames>
		</Storyboard>
		<SolidColorBrush x:Key="ListBorder" Color="#828790"/>
	</UserControl.Resources>
	<UserControl.Triggers>
		<EventTrigger RoutedEvent="FrameworkElement.Loaded">
			<BeginStoryboard Storyboard="{StaticResource AppearPanelStoryboard}"/>
		</EventTrigger>
	</UserControl.Triggers>
	<Grid x:Name="LayoutRoot" RenderTransformOrigin="0.5,0.5" Height="700">
		<Grid.RenderTransform>
			<TransformGroup>
				<ScaleTransform/>
				<SkewTransform/>
				<RotateTransform/>
				<TranslateTransform/>
			</TransformGroup>
		</Grid.RenderTransform>
		<Grid x:Name="ItemListGrid" Margin="0,23.333,49.333,0" VerticalAlignment="Top" Height="650">
			<Rectangle x:Name="panneau_Copy" StrokeThickness="0" Margin="0,0,0,1" Stroke="#FF303030" Panel.ZIndex="-3" VerticalAlignment="Bottom" Height="21">
				<Rectangle.Fill>
					<RadialGradientBrush RadiusY="0.559">
						<GradientStop Color="#75000000" Offset="0.62"/>
						<GradientStop Offset="1"/>
					</RadialGradientBrush>
				</Rectangle.Fill>
			</Rectangle>
			<Rectangle Fill="#FFF4F4F5" Stroke="Black" RadiusY="5" RadiusX="5" StrokeThickness="0" Margin="0,0,0,10"/>
			<ListBox x:Name="Collection" Margin="10,10,10,20" PanningMode="VerticalOnly" ItemsSource="{Binding ItemCollection, ElementName=MyListControl}" ItemContainerStyle="{DynamicResource ContainerStyle }">
			</ListBox>
			<Button x:Name="quitterbtn" Height="50" Style="{DynamicResource GrappeBtnRounded}" VerticalAlignment="Top" Width="50" HorizontalAlignment="Right" Margin="0,-18.331,-20.998,0" Panel.ZIndex="15">
				<Path HorizontalAlignment="Left" Stroke="#FF303030" StrokeThickness="0" VerticalAlignment="Top" Width="18.647" Fill="Black" Data="M12.546,0 L18.121,0 18.121,12.546 30.667,12.546 30.667,18.120999 18.121,18.120999 18.121,30.667 12.546,30.667 12.546,18.120999 0,18.120999 0,12.546 12.546,12.546 z" Height="18.647" RenderTransformOrigin="0.500000002985382,0.499999987560905" Stretch="Fill">
					<Path.RenderTransform>
						<TransformGroup>
							<ScaleTransform ScaleY="-1"/>
							<SkewTransform/>
							<RotateTransform Angle="-45"/>
							<TranslateTransform/>
						</TransformGroup>
					</Path.RenderTransform>
				</Path>
			</Button>
			<Button x:Name="ValiderBtn" Content="Valider" HorizontalAlignment="Right" Height="80" Style="{DynamicResource GrappeBtnRounded}" VerticalAlignment="Bottom" Width="80" FontWeight="Bold" FontSize="16" Margin="0,0,-40,-30" Foreground="Black" RenderTransformOrigin="0.5,0.5"/>
		</Grid>
	</Grid>
</UserControl>
I'm going to try some thing and i will continue this topic thanks
 
picpic2006
Topic Author
Posts: 67
Joined: 07 Nov 2013, 15:59

Re: Hard Crash with lisbox on ipad only !

15 Apr 2014, 14:50

Ok i tested the same usercontrol listbox without setting my listbox
with my itemcontainerstyle

ItemContainerStyle="{DynamicResource ContainerStyle }
<UserControl
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
	xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
	mc:Ignorable="d"
	x:Class="ItemListControl"
	x:Name="MyListControl"
	d:DesignWidth="640" d:DesignHeight="480" Width="Auto" Height="760" HorizontalAlignment="Left" VerticalAlignment="Center">
	<UserControl.Resources>
			<Style x:Key="ButtonFocusVisual">
			<Setter Property="Control.Template">
				<Setter.Value>
					<ControlTemplate>
						<Rectangle Margin="2" SnapsToDevicePixels="true" StrokeThickness="1" StrokeDashArray="1 2"/>
					</ControlTemplate>
				</Setter.Value>
			</Setter>
		</Style>
		<LinearGradientBrush x:Key="ButtonNormalBackground" EndPoint="0,1" StartPoint="0,0">
			<GradientStop Color="#F3F3F3" Offset="0"/>
			<GradientStop Color="#EBEBEB" Offset="0.5"/>
			<GradientStop Color="#DDDDDD" Offset="0.5"/>
			<GradientStop Color="#CDCDCD" Offset="1"/>
		</LinearGradientBrush>
		<SolidColorBrush x:Key="ButtonNormalBorder" Color="#FF707070"/>
		<Style x:Key="ButtonInfo" TargetType="{x:Type Button}">
			<Setter Property="FocusVisualStyle" Value="{StaticResource ButtonFocusVisual}"/>
			<Setter Property="Background" Value="{StaticResource ButtonNormalBackground}"/>
			<Setter Property="BorderBrush" Value="{StaticResource ButtonNormalBorder}"/>
			<Setter Property="BorderThickness" Value="1"/>
			<Setter Property="HorizontalContentAlignment" Value="Center"/>
			<Setter Property="VerticalContentAlignment" Value="Center"/>
			<Setter Property="Padding" Value="1"/>
			<Setter Property="Template">
				<Setter.Value>
					<ControlTemplate TargetType="{x:Type Button}">
						<Grid HorizontalAlignment="Stretch" Height="Auto" VerticalAlignment="Stretch" Width="Auto" Margin="0">
							<VisualStateManager.VisualStateGroups>
								<VisualStateGroup x:Name="CommonStates">
									<VisualState x:Name="Normal"/>
									<VisualState x:Name="MouseOver"/>
									<VisualState x:Name="Pressed">
										<Storyboard>
											<ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops)[0].(GradientStop.Color)" Storyboard.TargetName="rectangle">
												<EasingColorKeyFrame KeyTime="0" Value="#FF0D8D00"/>
											</ColorAnimationUsingKeyFrames>
											<ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops)[0].(GradientStop.Color)" Storyboard.TargetName="rectangle1">
												<EasingColorKeyFrame KeyTime="0" Value="#FF3BB13C"/>
											</ColorAnimationUsingKeyFrames>
										</Storyboard>
									</VisualState>
									<VisualState x:Name="Disabled"/>
								</VisualStateGroup>
							</VisualStateManager.VisualStateGroups>
							<Rectangle x:Name="rectangle" HorizontalAlignment="Stretch" Height="Auto" Stroke="#FF00B922" VerticalAlignment="Stretch" Width="Auto" RadiusX="5" RadiusY="5">
								<Rectangle.Fill>
									<LinearGradientBrush EndPoint="0.5,1" MappingMode="RelativeToBoundingBox" StartPoint="0.5,0">
										<GradientStop Color="#FF65F230" Offset="1"/>
										<GradientStop Color="#FF7DE694"/>
									</LinearGradientBrush>
								</Rectangle.Fill>
							</Rectangle>
							<Rectangle x:Name="rectangle1" HorizontalAlignment="Stretch" Height="20" Stroke="{x:Null}" VerticalAlignment="Top" Width="Auto" RadiusX="5" RadiusY="5" Margin="2.667,2,2.667,0" Opacity="0.5">
								<Rectangle.Fill>
									<LinearGradientBrush EndPoint="0.5,1" MappingMode="RelativeToBoundingBox" StartPoint="0.5,0">
										<GradientStop Color="#FF2FE258" Offset="1"/>
										<GradientStop Color="#FFE9FFEE"/>
									</LinearGradientBrush>
								</Rectangle.Fill>
							</Rectangle>
							<Ellipse HorizontalAlignment="Stretch" Height="10" Margin="39.563,0,39.563,8.994" Stroke="{x:Null}" VerticalAlignment="Bottom" Width="10" Panel.ZIndex="2" Fill="White"/>
							<Rectangle Height="Auto" Margin="39.563,10,39.563,23.875" RadiusY="5" RadiusX="5" Stroke="{x:Null}" VerticalAlignment="Stretch" Width="10" Panel.ZIndex="2" Fill="White"/>
						</Grid>
						<ControlTemplate.Triggers>
							<Trigger Property="IsKeyboardFocused" Value="true"/>
							<Trigger Property="ToggleButton.IsChecked" Value="true"/>
							<Trigger Property="IsEnabled" Value="false">
								<Setter Property="Foreground" Value="#ADADAD"/>
							</Trigger>
						</ControlTemplate.Triggers>
					</ControlTemplate>
				</Setter.Value>
			</Setter>
		</Style>
	<!--template pour les items-->
			<DataTemplate x:Key="ListItem"> 
					<Grid x:Name="item">
						<Rectangle Fill="#FFEEEEEE" Stroke="#FF00B418" Width="300" StrokeThickness="0.5"/>
						<TextBlock x:Name="ItemBlock" HorizontalAlignment="Left" Height="90" Margin="10,5,0,0" TextWrapping="Wrap" Text="{Binding Label}" VerticalAlignment="Top" Width="191" FontSize="16" FontWeight="Bold"/>
					</Grid>
				</DataTemplate>
				<!--template pour les items selectionnés-->
				<DataTemplate x:Key="SelectedItem"> 
				   	<Grid x:Name="itemclicked">
						<Rectangle Stroke="#FF00B418" Width="300" StrokeThickness="0.5">
							<Rectangle.Fill>
								<RadialGradientBrush GradientOrigin="0.515,1.075" Center="0.515,1.033" RadiusY="0.8" RadiusX="0.8">
									<GradientStop Color="#FF68E684" Offset="0.064"/>
									<GradientStop Color="White" Offset="1"/>
								</RadialGradientBrush>
							</Rectangle.Fill>
						</Rectangle>
						<Button Content="Detail" Margin="206,5,4.874,5.795" Command="{Binding ShowCommentCommand}" Style="{DynamicResource ButtonInfo}" RenderTransformOrigin="0.5,0.5">
						</Button>
						<TextBlock x:Name="ItemBlock" HorizontalAlignment="Left" Height="90" Margin="10,5,0,0" TextWrapping="Wrap" Text="{Binding Label}" VerticalAlignment="Top" Width="191" FontSize="16" FontWeight="Bold"/>
					</Grid>
				</DataTemplate>
				<Style TargetType="{x:Type ListBoxItem}" x:Key="ContainerStyle">
					<Setter Property="ContentTemplate" Value="{StaticResource ListItem}" />
					<Style.Triggers>
						<Trigger Property="IsSelected" Value="True">
							<Setter Property="ContentTemplate" Value="{StaticResource SelectedItem}" />
						</Trigger>
					</Style.Triggers>
        		</Style>
		<Storyboard x:Key="AppearPanelStoryboard">
			<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.X)" Storyboard.TargetName="LayoutRoot">
				<EasingDoubleKeyFrame KeyTime="0" Value="-1039"/>
				<EasingDoubleKeyFrame KeyTime="0:0:2" Value="0">
					<EasingDoubleKeyFrame.EasingFunction>
						<BackEase EasingMode="EaseOut" Amplitude="-12"/>
					</EasingDoubleKeyFrame.EasingFunction>
				</EasingDoubleKeyFrame>
			</DoubleAnimationUsingKeyFrames>
		</Storyboard>
		<SolidColorBrush x:Key="ListBorder" Color="#828790"/>
	</UserControl.Resources>
	<UserControl.Triggers>
		<EventTrigger RoutedEvent="FrameworkElement.Loaded">
			<BeginStoryboard Storyboard="{StaticResource AppearPanelStoryboard}"/>
		</EventTrigger>
	</UserControl.Triggers>
	<Grid x:Name="LayoutRoot" RenderTransformOrigin="0.5,0.5" Height="700">
		<Grid.RenderTransform>
			<TransformGroup>
				<ScaleTransform/>
				<SkewTransform/>
				<RotateTransform/>
				<TranslateTransform/>
			</TransformGroup>
		</Grid.RenderTransform>
		<Grid x:Name="ItemListGrid" Margin="0,23.333,49.333,0" VerticalAlignment="Top" Height="650">
			<Rectangle x:Name="panneau_Copy" StrokeThickness="0" Margin="0,0,0,1" Stroke="#FF303030" Panel.ZIndex="-3" VerticalAlignment="Bottom" Height="21">
				<Rectangle.Fill>
					<RadialGradientBrush RadiusY="0.559">
						<GradientStop Color="#75000000" Offset="0.62"/>
						<GradientStop Offset="1"/>
					</RadialGradientBrush>
				</Rectangle.Fill>
			</Rectangle>
			<Rectangle Fill="#FFF4F4F5" Stroke="Black" RadiusY="5" RadiusX="5" StrokeThickness="0" Margin="0,0,0,10"/>
			<ListBox x:Name="Collection" Margin="10,10,10,20" PanningMode="VerticalOnly" ItemsSource="{Binding ItemCollection, ElementName=MyListControl}">
			</ListBox>
			<Button x:Name="quitterbtn" Height="50" Style="{DynamicResource GrappeBtnRounded}" VerticalAlignment="Top" Width="50" HorizontalAlignment="Right" Margin="0,-18.331,-20.998,0" Panel.ZIndex="15">
				<Path HorizontalAlignment="Left" Stroke="#FF303030" StrokeThickness="0" VerticalAlignment="Top" Width="18.647" Fill="Black" Data="M12.546,0 L18.121,0 18.121,12.546 30.667,12.546 30.667,18.120999 18.121,18.120999 18.121,30.667 12.546,30.667 12.546,18.120999 0,18.120999 0,12.546 12.546,12.546 z" Height="18.647" RenderTransformOrigin="0.500000002985382,0.499999987560905" Stretch="Fill">
					<Path.RenderTransform>
						<TransformGroup>
							<ScaleTransform ScaleY="-1"/>
							<SkewTransform/>
							<RotateTransform Angle="-45"/>
							<TranslateTransform/>
						</TransformGroup>
					</Path.RenderTransform>
				</Path>
			</Button>
			<Button x:Name="ValiderBtn" Content="Valider" HorizontalAlignment="Right" Height="80" Style="{DynamicResource GrappeBtnRounded}" VerticalAlignment="Bottom" Width="80" FontWeight="Bold" FontSize="16" Margin="0,0,-40,-30" Foreground="Black" RenderTransformOrigin="0.5,0.5"/>
		</Grid>
	</Grid>
</UserControl>
So now i have no over effect wih my button appear etc etc..
and my listboxitem style is generated by my other usercontrol listitem.

But every thing is working like expected i have no more crash on my ipad.
 
User avatar
sfernandez
Site Admin
Posts: 1915
Joined: 22 Dec 2011, 19:20

Re: Hard Crash with lisbox on ipad only !

16 Apr 2014, 19:06

We tested the following scene (directly generated from your code, and renaming some missing brush resources):

https://drive.google.com/file/d/0Bwl3Ci ... sp=sharing

And it worked correctly on PC, OS X, iOS and Android.

Maybe is something related on how you defined the data items that populate the ListBox. Could you please attach the class definition and how you create and set that items into your UserControl item collection?
 
picpic2006
Topic Author
Posts: 67
Joined: 07 Nov 2013, 15:59

Re: Hard Crash with lisbox on ipad only !

16 Apr 2014, 21:28

Thanks for the reply,
I will give you my complete source tomorow morning.
I will check my version to, i had some problems with my update from version 1.3 to 1.6.
 
picpic2006
Topic Author
Posts: 67
Joined: 07 Nov 2013, 15:59

Re: Hard Crash with lisbox on ipad only !

17 Apr 2014, 09:55

Hi i checked this morning my version of noesisgui in unity, it was the 1.3 so i try to update it with a clear removing of folder.

After somes naming collision with vector3 and somes more, i have this error in my console
InvalidCastException: Cannot cast from source type to destination type.
System.Reflection.MonoProperty.GetterAdapterFrame[EquipementItemListControl,Collection] (System.Reflection.Getter`2 getter, System.Object obj) (at /Users/builduser/buildslave/monoAndRuntimeClassLibs/build/mcs/class/corlib/System.Reflection/MonoProperty.cs:234)
System.Reflection.MonoProperty.GetValue (System.Object obj, System.Object[] index) (at /Users/builduser/buildslave/monoAndRuntimeClassLibs/build/mcs/class/corlib/System.Reflection/MonoProperty.cs:292)
Noesis.Extend.GetPropertyValue_BaseComponent (IntPtr unityType, Int32 propertyIndex, IntPtr cPtr) (at Assets/Plugins/NoesisGUI/Scripts/Core/NoesisExtend.cs:845)
(wrapper native-to-managed) Noesis.Extend:GetPropertyValue_BaseComponent (intptr,int,intptr)
Noesis.BuildToolKernel.Build () (at Assets/Editor/NoesisGUI/NoesisBuildToolKernel.cs:140)
NoesisPostProcessor.Build (System.String platform, Boolean doScan, Boolean doBuild) (at Assets/Editor/NoesisGUI/NoesisPostProcessor.cs:252)
NoesisPostProcessor.OnPostprocessAllAssets (System.String[] importedAssets, System.String[] deletedAssets, System.String[] movedAssets, System.String[] movedFromPath) (at Assets/Editor/NoesisGUI/NoesisPostProcessor.cs:219)
System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at /Users/builduser/buildslave/monoAndRuntimeClassLibs/build/mcs/class/corlib/System.Reflection/MonoMethod.cs:222)
Rethrow as TargetInvocationException: Exception has been thrown by the target of an invocation.
System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at /Users/builduser/buildslave/monoAndRuntimeClassLibs/build/mcs/class/corlib/System.Reflection/MonoMethod.cs:232)
System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) (at /Users/builduser/buildslave/monoAndRuntimeClassLibs/build/mcs/class/corlib/System.Reflection/MethodBase.cs:115)
UnityEditor.AssetPostprocessingInternal.PostprocessAllAssets (System.String[] importedAssets, System.String[] addedAssets, System.String[] deletedAssets, System.String[] movedAssets, System.String[] movedFromPathAssets)

The problem seem to be my delegate command, it seem to come from the script who is causing my crash on ipad
i use your example command here to test.
using Noesis;
using System;
using UnityEngine;

[Noesis.Extended]
[Noesis.UserControlSource("Assets/Scripts/Gui_Context/GUI_XAML/UserControl/ListItem.xaml")]
public class EquipementItemControl : UserControl {

	private string _label;
	public string Label
	{
		get {return _label;}
		set {
			_label = value;
			NotifyPropertyChanged("Label");
		}
	}

	private string _description;
	public string Description
	{
		get {return _description;}
		set {
			_description = value;
			NotifyPropertyChanged("Description");
		}
	}

	private Noesis.Samples.DelegateCommand showcommentcommand;
	public Noesis.Samples.DelegateCommand ShowCommentCommand 
	{ 
		get{return showcommentcommand;}
		set
		{
			if(showcommentcommand != value)
			{
				showcommentcommand = value;
				NotifyPropertyChanged("ShowCommentCommand");
			}
		}
	}

	public void OnPostInit()
	{
	}
}
My item xaml
<UserControl
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
	xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
	xmlns:Themes="clr-namespace:Microsoft.Windows.Themes;assembly=PresentationFramework.Aero"
	mc:Ignorable="d"
	x:Class="EquipementItemControl"
	x:Name="MyItemControl" Height="100" VerticalAlignment="Top">

	<UserControl.Resources>
		<Style x:Key="ButtonFocusVisual">
			<Setter Property="Control.Template">
				<Setter.Value>
					<ControlTemplate>
						<Rectangle Margin="2" SnapsToDevicePixels="true" StrokeThickness="1" StrokeDashArray="1 2"/>
					</ControlTemplate>
				</Setter.Value>
			</Setter>
		</Style>
		<LinearGradientBrush x:Key="ButtonNormalBackground" EndPoint="0,1" StartPoint="0,0">
			<GradientStop Color="#F3F3F3" Offset="0"/>
			<GradientStop Color="#EBEBEB" Offset="0.5"/>
			<GradientStop Color="#DDDDDD" Offset="0.5"/>
			<GradientStop Color="#CDCDCD" Offset="1"/>
		</LinearGradientBrush>
		<SolidColorBrush x:Key="ButtonNormalBorder" Color="#FF707070"/>
		<Style x:Key="ButtonInfo" TargetType="{x:Type Button}">
			<Setter Property="FocusVisualStyle" Value="{StaticResource ButtonFocusVisual}"/>
			<Setter Property="Background" Value="{StaticResource ButtonNormalBackground}"/>
			<Setter Property="BorderBrush" Value="{StaticResource ButtonNormalBorder}"/>
			<Setter Property="BorderThickness" Value="1"/>
			<Setter Property="HorizontalContentAlignment" Value="Center"/>
			<Setter Property="VerticalContentAlignment" Value="Center"/>
			<Setter Property="Padding" Value="1"/>
			<Setter Property="Template">
				<Setter.Value>
					<ControlTemplate TargetType="{x:Type Button}">
						<Grid HorizontalAlignment="Stretch" Height="Auto" VerticalAlignment="Stretch" Width="Auto" Margin="0">
							<VisualStateManager.VisualStateGroups>
								<VisualStateGroup x:Name="CommonStates">
									<VisualState x:Name="Normal"/>
									<VisualState x:Name="MouseOver"/>
									<VisualState x:Name="Pressed">
										<Storyboard>
											<ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops)[0].(GradientStop.Color)" Storyboard.TargetName="rectangle">
												<EasingColorKeyFrame KeyTime="0" Value="#FF0D8D00"/>
											</ColorAnimationUsingKeyFrames>
											<ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops)[0].(GradientStop.Color)" Storyboard.TargetName="rectangle1">
												<EasingColorKeyFrame KeyTime="0" Value="#FF3BB13C"/>
											</ColorAnimationUsingKeyFrames>
										</Storyboard>
									</VisualState>
									<VisualState x:Name="Disabled"/>
								</VisualStateGroup>
							</VisualStateManager.VisualStateGroups>
							<Rectangle x:Name="rectangle" HorizontalAlignment="Stretch" Height="Auto" Stroke="#FF00B922" VerticalAlignment="Stretch" Width="Auto" RadiusX="5" RadiusY="5">
								<Rectangle.Fill>
									<LinearGradientBrush EndPoint="0.5,1" MappingMode="RelativeToBoundingBox" StartPoint="0.5,0">
										<GradientStop Color="#FF00C72D" Offset="1"/>
										<GradientStop Color="#FF7DE694"/>
									</LinearGradientBrush>
								</Rectangle.Fill>
							</Rectangle>
							<Rectangle x:Name="rectangle1" HorizontalAlignment="Stretch" Height="20" Stroke="{x:Null}" VerticalAlignment="Top" Width="Auto" RadiusX="5" RadiusY="5" Margin="2.667,2,2.667,0" Opacity="0.5">
								<Rectangle.Fill>
									<LinearGradientBrush EndPoint="0.5,1" MappingMode="RelativeToBoundingBox" StartPoint="0.5,0">
										<GradientStop Color="#FF2FE258" Offset="1"/>
										<GradientStop Color="#FFE9FFEE"/>
									</LinearGradientBrush>
								</Rectangle.Fill>
							</Rectangle>
							<Ellipse HorizontalAlignment="Stretch" Height="10" Margin="39.563,0,39.563,8.994" Stroke="{x:Null}" VerticalAlignment="Bottom" Width="10" Panel.ZIndex="2" Fill="White"/>
							<Rectangle Height="Auto" Margin="39.563,10,39.563,23.875" RadiusY="5" RadiusX="5" Stroke="{x:Null}" VerticalAlignment="Stretch" Width="10" Panel.ZIndex="2" Fill="White"/>
						</Grid>
						<ControlTemplate.Triggers>
							<Trigger Property="IsKeyboardFocused" Value="true"/>
							<Trigger Property="ToggleButton.IsChecked" Value="true"/>
							<Trigger Property="IsEnabled" Value="false">
								<Setter Property="Foreground" Value="#ADADAD"/>
							</Trigger>
						</ControlTemplate.Triggers>
					</ControlTemplate>
				</Setter.Value>
			</Setter>
		</Style>
	</UserControl.Resources>

	<Grid x:Name="LayoutRoot">
		<Rectangle Fill="#FFEEEEEE" Stroke="#FF00B418" Width="300" StrokeThickness="0.5"/>
		<Button Content="Detail" Margin="206,5,4.874,5.795" Command="{Binding ShowCommentCommand, ElementName=MyItemControl}" Style="{DynamicResource ButtonInfo}" RenderTransformOrigin="0.5,0.5">
		</Button>
		<TextBlock x:Name="ItemBlock" HorizontalAlignment="Left" Height="90" Margin="10,5,0,0" TextWrapping="Wrap" Text="{Binding Label, ElementName=MyItemControl}" VerticalAlignment="Top" Width="191" FontSize="16" FontWeight="Bold"/>
	</Grid>

</UserControl>
this is my control for my itemlistpanel

using Noesis;
using System;
using UnityEngine;

[Noesis.Extended]
[Noesis.UserControlSource("Assets/Scripts/Gui_Context/GUI_XAML/UserControl/ItemListPanel.xaml")]
public class EquipementItemListControl : Noesis.UserControl {
	
	private Collection _collection = new Collection();
	public Collection ItemCollection
    {
        get { return _collection; }
        set {
			if (_collection != value)
			{
				_collection = value; 
				NotifyPropertyChanged("ItemCollection");
			}
		}
    }
	
	private  BaseButton.ClickDelegate  quitevent;
	public BaseButton.ClickDelegate Quitevent
	{
		set{
			quitevent = value;
			if(QuitterBtn != null)
			QuitterBtn.Click += quitevent;
		}
	}
	
	private  BaseButton.ClickDelegate  validevent;
	public BaseButton.ClickDelegate ValidEvent
	{
		set{
			validevent = value;
			if(ValiderBtn != null)
			ValiderBtn.Click += validevent;
		}
	}

	private Selector.SelectionChangedDelegate selectevent;
	public Selector.SelectionChangedDelegate SelectEvent
	{
		set{
			selectevent = value;
			if(CollectionBox != null)
				CollectionBox.SelectionChanged += selectevent;
		}
	}

	private Button QuitterBtn = null;
	private Button ValiderBtn = null;
	private ListBox CollectionBox = null;

	public BaseComponent SelectedItem
	{
		get
		{ 
			if(CollectionBox != null)
			{
			return CollectionBox.GetSelectedItem();
			}
			return null;
		}
		set
		{
			if(CollectionBox != null)
			{
			  CollectionBox.SetSelectedItem(value);
			}
		}
	}
	
	public void OnPostInit()
	{
		Button QuitterBtn = FindName<Button>("quitterbtn");
		QuitterBtn.Click += quitevent;
		
		Button ValiderBtn = FindName<Button>("ValiderBtn");
		ValiderBtn.Click += validevent;
		
		CollectionBox = FindName<ListBox>("Collection");
		CollectionBox.SelectionChanged += selectevent;
    }
	
	public void ShowPopup()
	{
		
	}//montre la popup avec storyboard
	
	public void HidePopup()
	{
		
	}//montre la popup avec storyboard
	
	#region callback
	#endregion
	
}
my itemlistpanel xaml
<UserControl
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
	xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
	mc:Ignorable="d"
	x:Class="EquipementItemListControl"
	x:Name="MyListControl"
	d:DesignWidth="640" d:DesignHeight="480" Width="Auto" Height="760" HorizontalAlignment="Left" VerticalAlignment="Center">
	<UserControl.Resources>
			<Style x:Key="ButtonFocusVisual">
			<Setter Property="Control.Template">
				<Setter.Value>
					<ControlTemplate>
						<Rectangle Margin="2" SnapsToDevicePixels="true" StrokeThickness="1" StrokeDashArray="1 2"/>
					</ControlTemplate>
				</Setter.Value>
			</Setter>
		</Style>
		<LinearGradientBrush x:Key="ButtonNormalBackground" EndPoint="0,1" StartPoint="0,0">
			<GradientStop Color="#F3F3F3" Offset="0"/>
			<GradientStop Color="#EBEBEB" Offset="0.5"/>
			<GradientStop Color="#DDDDDD" Offset="0.5"/>
			<GradientStop Color="#CDCDCD" Offset="1"/>
		</LinearGradientBrush>
		<SolidColorBrush x:Key="ButtonNormalBorder" Color="#FF707070"/>
		<Style x:Key="ButtonInfo" TargetType="{x:Type Button}">
			<Setter Property="FocusVisualStyle" Value="{StaticResource ButtonFocusVisual}"/>
			<Setter Property="Background" Value="{StaticResource ButtonNormalBackground}"/>
			<Setter Property="BorderBrush" Value="{StaticResource ButtonNormalBorder}"/>
			<Setter Property="BorderThickness" Value="1"/>
			<Setter Property="HorizontalContentAlignment" Value="Center"/>
			<Setter Property="VerticalContentAlignment" Value="Center"/>
			<Setter Property="Padding" Value="1"/>
			<Setter Property="Template">
				<Setter.Value>
					<ControlTemplate TargetType="{x:Type Button}">
						<Grid HorizontalAlignment="Stretch" Height="Auto" VerticalAlignment="Stretch" Width="Auto" Margin="0">
							<VisualStateManager.VisualStateGroups>
								<VisualStateGroup x:Name="CommonStates">
									<VisualState x:Name="Normal"/>
									<VisualState x:Name="MouseOver"/>
									<VisualState x:Name="Pressed">
										<Storyboard>
											<ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops)[0].(GradientStop.Color)" Storyboard.TargetName="rectangle">
												<EasingColorKeyFrame KeyTime="0" Value="#FF0D8D00"/>
											</ColorAnimationUsingKeyFrames>
											<ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops)[0].(GradientStop.Color)" Storyboard.TargetName="rectangle1">
												<EasingColorKeyFrame KeyTime="0" Value="#FF3BB13C"/>
											</ColorAnimationUsingKeyFrames>
										</Storyboard>
									</VisualState>
									<VisualState x:Name="Disabled"/>
								</VisualStateGroup>
							</VisualStateManager.VisualStateGroups>
							<Rectangle x:Name="rectangle" HorizontalAlignment="Stretch" Height="Auto" Stroke="#FF00B922" VerticalAlignment="Stretch" Width="Auto" RadiusX="5" RadiusY="5">
								<Rectangle.Fill>
									<LinearGradientBrush EndPoint="0.5,1" MappingMode="RelativeToBoundingBox" StartPoint="0.5,0">
										<GradientStop Color="#FF65F230" Offset="1"/>
										<GradientStop Color="#FF7DE694"/>
									</LinearGradientBrush>
								</Rectangle.Fill>
							</Rectangle>
							<Rectangle x:Name="rectangle1" HorizontalAlignment="Stretch" Height="20" Stroke="{x:Null}" VerticalAlignment="Top" Width="Auto" RadiusX="5" RadiusY="5" Margin="2.667,2,2.667,0" Opacity="0.5">
								<Rectangle.Fill>
									<LinearGradientBrush EndPoint="0.5,1" MappingMode="RelativeToBoundingBox" StartPoint="0.5,0">
										<GradientStop Color="#FF2FE258" Offset="1"/>
										<GradientStop Color="#FFE9FFEE"/>
									</LinearGradientBrush>
								</Rectangle.Fill>
							</Rectangle>
							<Ellipse HorizontalAlignment="Stretch" Height="10" Margin="39.563,0,39.563,8.994" Stroke="{x:Null}" VerticalAlignment="Bottom" Width="10" Panel.ZIndex="2" Fill="White"/>
							<Rectangle Height="Auto" Margin="39.563,10,39.563,23.875" RadiusY="5" RadiusX="5" Stroke="{x:Null}" VerticalAlignment="Stretch" Width="10" Panel.ZIndex="2" Fill="White"/>
						</Grid>
						<ControlTemplate.Triggers>
							<Trigger Property="IsKeyboardFocused" Value="true"/>
							<Trigger Property="ToggleButton.IsChecked" Value="true"/>
							<Trigger Property="IsEnabled" Value="false">
								<Setter Property="Foreground" Value="#ADADAD"/>
							</Trigger>
						</ControlTemplate.Triggers>
					</ControlTemplate>
				</Setter.Value>
			</Setter>
		</Style>
	<!--template pour les items-->
			<DataTemplate x:Key="ListItem"> 
					<Grid x:Name="item">
						<Rectangle Fill="#FFEEEEEE" Stroke="#FF00B418" Width="300" StrokeThickness="0.5"/>
						<TextBlock x:Name="ItemBlock" HorizontalAlignment="Left" Height="90" Margin="10,5,0,0" TextWrapping="Wrap" Text="{Binding Label}" VerticalAlignment="Top" Width="191" FontSize="16" FontWeight="Bold"/>
					</Grid>
				</DataTemplate>
				<!--template pour les items selectionnés-->
				<DataTemplate x:Key="SelectedItem"> 
				   	<Grid x:Name="itemclicked">
						<Rectangle Stroke="#FF00B418" Width="300" StrokeThickness="0.5">
							<Rectangle.Fill>
								<RadialGradientBrush GradientOrigin="0.515,1.075" Center="0.515,1.033" RadiusY="0.8" RadiusX="0.8">
									<GradientStop Color="#FF68E684" Offset="0.064"/>
									<GradientStop Color="White" Offset="1"/>
								</RadialGradientBrush>
							</Rectangle.Fill>
						</Rectangle>
						<Button Content="Detail" Margin="206,5,4.874,5.795" Command="{Binding ShowCommentCommand}" Style="{DynamicResource ButtonInfo}" RenderTransformOrigin="0.5,0.5">
						</Button>
						<TextBlock x:Name="ItemBlock" HorizontalAlignment="Left" Height="90" Margin="10,5,0,0" TextWrapping="Wrap" Text="{Binding Label}" VerticalAlignment="Top" Width="191" FontSize="16" FontWeight="Bold"/>
					</Grid>
				</DataTemplate>
				<Style TargetType="{x:Type ListBoxItem}" x:Key="ContainerStyle">
					<Setter Property="ContentTemplate" Value="{StaticResource ListItem}" />
					<Style.Triggers>
						<Trigger Property="IsSelected" Value="True">
							<Setter Property="ContentTemplate" Value="{StaticResource SelectedItem}" />
						</Trigger>
					</Style.Triggers>
        		</Style>
		<Storyboard x:Key="AppearPanelStoryboard">
			<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.X)" Storyboard.TargetName="LayoutRoot">
				<EasingDoubleKeyFrame KeyTime="0" Value="-1039"/>
				<EasingDoubleKeyFrame KeyTime="0:0:2" Value="0">
					<EasingDoubleKeyFrame.EasingFunction>
						<BackEase EasingMode="EaseOut" Amplitude="-12"/>
					</EasingDoubleKeyFrame.EasingFunction>
				</EasingDoubleKeyFrame>
			</DoubleAnimationUsingKeyFrames>
		</Storyboard>
		<SolidColorBrush x:Key="ListBorder" Color="#828790"/>
	</UserControl.Resources>
	<UserControl.Triggers>
		<EventTrigger RoutedEvent="FrameworkElement.Loaded">
			<BeginStoryboard Storyboard="{StaticResource AppearPanelStoryboard}"/>
		</EventTrigger>
	</UserControl.Triggers>
	<Grid x:Name="LayoutRoot" RenderTransformOrigin="0.5,0.5" Height="700">
		<Grid.RenderTransform>
			<TransformGroup>
				<ScaleTransform/>
				<SkewTransform/>
				<RotateTransform/>
				<TranslateTransform/>
			</TransformGroup>
		</Grid.RenderTransform>
		<Grid x:Name="ItemListGrid" Margin="0,23.333,49.333,0" VerticalAlignment="Top" Height="650">
			<Rectangle x:Name="panneau_Copy" StrokeThickness="0" Margin="0,0,0,1" Stroke="#FF303030" Panel.ZIndex="-3" VerticalAlignment="Bottom" Height="21">
				<Rectangle.Fill>
					<RadialGradientBrush RadiusY="0.559">
						<GradientStop Color="#75000000" Offset="0.62"/>
						<GradientStop Offset="1"/>
					</RadialGradientBrush>
				</Rectangle.Fill>
			</Rectangle>
			<Rectangle Fill="#FFF4F4F5" Stroke="Black" RadiusY="5" RadiusX="5" StrokeThickness="0" Margin="0,0,0,10"/>
			<ListBox x:Name="Collection" Margin="10,10,10,20" ItemsSource="{Binding ItemCollection, ElementName=MyListControl}" ItemContainerStyle="{DynamicResource ContainerStyle }" ScrollViewer.VerticalScrollBarVisibility="Hidden" ScrollViewer.HorizontalScrollBarVisibility="Hidden">
				<ListBox.OpacityMask>
					<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
						<GradientStop Color="Black" Offset="0.699"/>
						<GradientStop Color="#14FFFFFF" Offset="1"/>
					</LinearGradientBrush>
				</ListBox.OpacityMask>
			</ListBox>
			<Button x:Name="quitterbtn" Height="50" Style="{DynamicResource GrappeBtnRounded}" VerticalAlignment="Top" Width="50" HorizontalAlignment="Right" Margin="0,-18.331,-20.998,0" Panel.ZIndex="15">
				<Path HorizontalAlignment="Left" Stroke="#FF303030" StrokeThickness="0" VerticalAlignment="Top" Width="18.647" Fill="Black" Data="M12.546,0 L18.121,0 18.121,12.546 30.667,12.546 30.667,18.120999 18.121,18.120999 18.121,30.667 12.546,30.667 12.546,18.120999 0,18.120999 0,12.546 12.546,12.546 z" Height="18.647" RenderTransformOrigin="0.500000002985382,0.499999987560905" Stretch="Fill">
					<Path.RenderTransform>
						<TransformGroup>
							<ScaleTransform ScaleY="-1"/>
							<SkewTransform/>
							<RotateTransform Angle="-45"/>
							<TranslateTransform/>
						</TransformGroup>
					</Path.RenderTransform>
				</Path>
			</Button>
			<Button x:Name="ValiderBtn" Content="Valider" HorizontalAlignment="Right" Height="80" Style="{DynamicResource GrappeBtnRounded}" VerticalAlignment="Bottom" Width="80" FontWeight="Bold" FontSize="16" Margin="0,0,-40,-30" Foreground="Black" RenderTransformOrigin="0.5,0.5"/>
			<Path Data="M101,199.667 L132.5,199.667 116.25,215.917 z" Fill="#FF212121" HorizontalAlignment="Center" Height="10" Margin="0,0,0,30" Stretch="Fill" Stroke="Black" VerticalAlignment="Bottom" Width="15"/>
		</Grid>
	</Grid>
</UserControl>
i really don't see what to do.

Thanks you
 
picpic2006
Topic Author
Posts: 67
Joined: 07 Nov 2013, 15:59

Re: Hard Crash with lisbox on ipad only !

17 Apr 2014, 10:35

HumHum i'm very confuse but i just try to remove my itemcontainerstyle and past it again,
in my itemlistpanel and it force unity to compile again and this time it work i'm trying to export it on my ipad to see the result !


wait and see !

After a build it seem to crash to with the last update

Thanks
 
User avatar
jsantos
Site Admin
Posts: 2905
Joined: 20 Jan 2012, 17:18
Contact:

Re: Hard Crash with lisbox on ipad only !

17 Apr 2014, 15:48

Two fast questions:

1. Does the package we created crash in your device? (https://drive.google.com/file/d/0Bwl3Ci ... sp=sharing)

2. Can you test this in a new empty project with last version of noesisGUI installed (not upgraded) into it?
 
picpic2006
Topic Author
Posts: 67
Joined: 07 Nov 2013, 15:59

Re: Hard Crash with lisbox on ipad only !

17 Apr 2014, 16:44

i created a clear project with the lastest version of noesis, i ewported it and it didn't crash on my device.

I 'm going to do somes more tests with my app.

Thanks a lot
 
picpic2006
Topic Author
Posts: 67
Joined: 07 Nov 2013, 15:59

Re: Hard Crash with lisbox on ipad only !

17 Apr 2014, 17:08

I rename clearly to "MyDelegatecommand" my command in my itemcontrol usercontrol AND TEST IT !

I it seem to work i realy dont understand why it work now and not with your exemple command ?

But i think you can wait before investigate !

Really sorry for disruption !

Thanks

ps i still investigate if the bug appear again in case
 
User avatar
jsantos
Site Admin
Posts: 2905
Joined: 20 Jan 2012, 17:18
Contact:

Re: Hard Crash with lisbox on ipad only !

19 Apr 2014, 16:27

If the problem appears again please send us a full unity project (.unitypackage). That way we can be sure that we are testing exactly the same scenario.

Who is online

Users browsing this forum: Roest and 2 guests