XAML programowanie dla programu VMIX

0

Witam,
mam taki problem tworzymy oprawę graficzną dla meczu żużlowego, która będzie animowana oraz edytowalna w czasie rzeczywistym za pomocą programu VMIX( który oczywiście obsługuje pliki XAML i jakieś proste przykłady w sobie ma) ale my chcemy rozbudować to. Zaczęliśmy pracę w programie Microsoft Blend ale niestety nasz program VMIX wyrzuca nam takie błędy. ( załącznik) czy kto może mi pomoc co robimy źle ? POMOCY !!!

Poniżej nasz kod

<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:i="clr-namespace:System.Windows.Interactivity;assembly=System.Windows.Interactivity" xmlns:il="clr-namespace:Microsoft.Expression.Interactivity.Layout;assembly=Microsoft.Expression.Interactions"
x:Class="MainControl"
x:Name="UserControl" Width="1920" Height="1080" mc:Ignorable="d">
<UserControl.Resources>
<Storyboard x:Key="wejscie">
<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.X)" Storyboard.TargetName="belka_długa_01">
<SplineDoubleKeyFrame KeyTime="0" Value="-703.333"/>
<SplineDoubleKeyFrame KeySpline="0.92,0,1,1" KeyTime="00.8" Value="-65.1837437641027"/>
<SplineDoubleKeyFrame KeyTime="01.2" Value="0" KeySpline="0,0,0.14,1"/>
</DoubleAnimationUsingKeyFrames>
<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.X)" Storyboard.TargetName="flaga_01" RepeatBehavior="1x">
<SplineDoubleKeyFrame KeyTime="0" Value="-1331" KeySpline="0,0,0.5,1"/>
<SplineDoubleKeyFrame KeyTime="00.8" Value="-751" KeySpline="1,0,0.27,0.88"/>
<SplineDoubleKeyFrame KeyTime="01.6" Value="0" KeySpline="0,0.71,0.24,1"/>
</DoubleAnimationUsingKeyFrames>
<Rotation3DAnimationUsingKeyFrames Storyboard.TargetProperty="(Visual3D.Transform).(Transform3DGroup.Children)[2].(RotateTransform3D.Rotation)" Storyboard.TargetName="logo_GWD_01ModelContainer">
<SplineRotation3DKeyFrame KeyTime="0" KeySpline="0,0,0.75,1">
<SplineRotation3DKeyFrame.Value>
<AxisAngleRotation3D Axis="1,0,0" Angle="90"/>
</SplineRotation3DKeyFrame.Value>
</SplineRotation3DKeyFrame>
<SplineRotation3DKeyFrame KeyTime="00.6" KeySpline="0.38,0.64,0.29,0.86">
<SplineRotation3DKeyFrame.Value>
<AxisAngleRotation3D Axis="0,1,0" Angle="0"/>
</SplineRotation3DKeyFrame.Value>
</SplineRotation3DKeyFrame>
</Rotation3DAnimationUsingKeyFrames>
<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(PerspectiveCamera.FieldOfView)" Storyboard.TargetName="perspectiveCamera">
<SplineDoubleKeyFrame KeyTime="0" Value="48"/>
</DoubleAnimationUsingKeyFrames>
<Point3DAnimationUsingKeyFrames Storyboard.TargetProperty="(ProjectionCamera.Position)" Storyboard.TargetName="perspectiveCamera">
<SplinePoint3DKeyFrame KeyTime="0" Value="-1,0.5,43.2"/>
</Point3DAnimationUsingKeyFrames>
</Storyboard>
<Storyboard x:Key="zejscie">
<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.X)" Storyboard.TargetName="flaga_01">
<SplineDoubleKeyFrame KeyTime="0" Value="0" KeySpline="0,0,0.5,1"/>
<SplineDoubleKeyFrame KeyTime="00.8" Value="-150" KeySpline="0.5,0,0,1"/>
<SplineDoubleKeyFrame KeyTime="01.2" Value="-1392"/>
</DoubleAnimationUsingKeyFrames>
<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.X)" Storyboard.TargetName="belka_długa_01">
<SplineDoubleKeyFrame KeyTime="00.7" Value="0" KeySpline="0.82,0,0.76,1"/>
<SplineDoubleKeyFrame KeyTime="01.4" Value="-750" KeySpline="0.69,0,0,1"/>
</DoubleAnimationUsingKeyFrames>
<Rotation3DAnimationUsingKeyFrames Storyboard.TargetProperty="(Visual3D.Transform).(Transform3DGroup.Children)[2].(RotateTransform3D.Rotation)" Storyboard.TargetName="logo_GWD_01ModelContainer">
<SplineRotation3DKeyFrame KeyTime="00.6">
<SplineRotation3DKeyFrame.Value>
<AxisAngleRotation3D Axis="0,1,0" Angle="0"/>
</SplineRotation3DKeyFrame.Value>
</SplineRotation3DKeyFrame>
<SplineRotation3DKeyFrame KeyTime="01.2">
<SplineRotation3DKeyFrame.Value>
<AxisAngleRotation3D Axis="1,0,0" Angle="90.587"/>
</SplineRotation3DKeyFrame.Value>
</SplineRotation3DKeyFrame>
</Rotation3DAnimationUsingKeyFrames>
</Storyboard>
</UserControl.Resources>
<UserControl.Triggers>
<EventTrigger RoutedEvent="Mouse.MouseEnter">
<BeginStoryboard x:Name="wejscie_BeginStoryboard" Storyboard="{StaticResource wejscie}"/>
<BeginStoryboard x:Name="zejscie_BeginStoryboard" Storyboard="{StaticResource zejscie}"/>
</EventTrigger>
<EventTrigger RoutedEvent="UIElement.MouseLeftButtonDown" SourceName="belka_podpisowa_zawodnika">
<BeginStoryboard Storyboard="{StaticResource wejscie}"/>
</EventTrigger>
<EventTrigger RoutedEvent="UIElement.MouseLeftButtonDown" SourceName="belka_podpisowa_zawodnika">
<BeginStoryboard x:Name="zejscie_BeginStoryboard1" Storyboard="{StaticResource zejscie}"/>
</EventTrigger>
</UserControl.Triggers>

<Grid x:Name="LayoutRoot" Margin="-8,0,8,-504" Width="1920">
	<VisualStateManager.VisualStateGroups>
		<VisualStateGroup x:Name="VisualStateGroup"/>
		<VisualStateGroup x:Name="VisualStateGroup1"/>
	</VisualStateManager.VisualStateGroups>
	<Grid.RowDefinitions>
		<RowDefinition Height="875.88"/>
		<RowDefinition Height="111.245"/>
		<RowDefinition Height="92.875"/>
	</Grid.RowDefinitions>
	<Grid.ColumnDefinitions>
		<ColumnDefinition Width="134.4"/>
		<ColumnDefinition Width="1785.6"/>
	</Grid.ColumnDefinitions>
	<Canvas x:Name="belka_podpisowa_zawodnika" Height="1080" Grid.ColumnSpan="2" Grid.RowSpan="3">
		<Border Height="117" Canvas.Left="157.667" Canvas.Top="875" Width="837.333" SnapsToDevicePixels="True" ClipToBounds="True">
			<Grid>
				<Image x:Name="flaga_01" Source="belka_podpisowa_zawodnika_Images\flaga-01.png" Width="187" RenderTransformOrigin="0.5,0.5" HorizontalAlignment="Right" Margin="0,3,0,8">
					<Image.RenderTransform>
						<TransformGroup>
							<ScaleTransform/>
							<SkewTransform/>
							<RotateTransform/>
							<TranslateTransform/>
						</TransformGroup>
					</Image.RenderTransform>
				</Image>
				<Image x:Name="belka_długa_01" Source="belka_podpisowa_zawodnika_Images\belka_długa-01.png" RenderTransformOrigin="0.5,0.5" OpacityMask="Black" ClipToBounds="True" Margin="0,0,135,0">
					<Image.RenderTransform>
						<TransformGroup>
							<ScaleTransform/>
							<SkewTransform/>
							<RotateTransform/>
							<TranslateTransform/>
						</TransformGroup>
					</Image.RenderTransform>
				</Image>
			</Grid>
		</Border>
		<Viewport3D x:Name="logo_GWD_01" Height="94" Canvas.Left="134" RenderTransformOrigin="0,0.5" Canvas.Top="883" Width="172" >
			<Viewport3D.Camera>
				<PerspectiveCamera x:Name="perspectiveCamera" FieldOfView="48" FarPlaneDistance="132.52491470048068" LookDirection="0,0,-44.1749715668269" NearPlaneDistance="0.1" Position="-1,0.5,43.2" UpDirection="0,1,0"/>
			</Viewport3D.Camera>
			<Viewport3D.OpacityMask>
				<LinearGradientBrush EndPoint="0.5,1" StartPoint="1.014,0.205">
					<GradientStop Color="Black" Offset="0"/>
					<GradientStop Color="White" Offset="1"/>
				</LinearGradientBrush>
			</Viewport3D.OpacityMask>
			<Viewport3D.RenderTransform>
				<TransformGroup>
					<ScaleTransform ScaleY="1" ScaleX="1"/>
					<SkewTransform AngleY="0" AngleX="0"/>
					<RotateTransform Angle="0"/>
					<TranslateTransform/>
				</TransformGroup>
			</Viewport3D.RenderTransform>
			<ModelVisual3D x:Name="logo_GWD_01ModelContainer">
				<ModelVisual3D.Transform>
					<Transform3DGroup>
						<TranslateTransform3D OffsetZ="0" OffsetX="0" OffsetY="0"/>
						<ScaleTransform3D ScaleZ="1" ScaleY="1" ScaleX="1"/>
						<RotateTransform3D d:EulerAngles="0,0,0">
							<RotateTransform3D.Rotation>
								<AxisAngleRotation3D Axis="0,1,0" Angle="0"/>
							</RotateTransform3D.Rotation>
						</RotateTransform3D>
						<TranslateTransform3D OffsetZ="0" OffsetX="0" OffsetY="0"/>
						<TranslateTransform3D OffsetZ="0" OffsetX="0" OffsetY="0"/>
					</Transform3DGroup>
				</ModelVisual3D.Transform>
				<ModelVisual3D.Content>
					<GeometryModel3D x:Name="logo_GWD_01Model" d:Bounds="-18.2978723404255,-10,0,36.5957446808511,20,0">
						<GeometryModel3D.Geometry>
							<MeshGeometry3D Normals="0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1

0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1
0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1
0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1
0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1
0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1
0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1
0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1" Positions="-18.297872,-10,0 -14.231678,-10,0 -10.165485,-10,0 -6.0992908,-10,0 -2.0330969,-10,0 2.0330969,-10,0 6.0992908,-10,0 10.165485,-10,0 14.231678,-10,0 18.297872,-10,0 -18.297872,-7.7777778,0 -14.231678,-7.7777778,0 -10.165485,-7.7777778,0
-6.0992908,-7.7777778,0 -2.0330969,-7.7777778,0 2.0330969,-7.7777778,0 6.0992908,-7.7777778,0 10.165485,-7.7777778,0 14.231678,-7.7777778,0 18.297872,-7.7777778,0 -18.297872,-5.5555556,0 -14.231678,-5.5555556,0 -10.165485,-5.5555556,0 -6.0992908,-5.5555556,0 -2.0330969,-5.5555556,0 2.0330969,-5.5555556,0
6.0992908,-5.5555556,0 10.165485,-5.5555556,0 14.231678,-5.5555556,0 18.297872,-5.5555556,0 -18.297872,-3.3333333,0 -14.231678,-3.3333333,0 -10.165485,-3.3333333,0 -6.0992908,-3.3333333,0 -2.0330969,-3.3333333,0 2.0330969,-3.3333333,0 6.0992908,-3.3333333,0 10.165485,-3.3333333,0 14.231678,-3.3333333,0
18.297872,-3.3333333,0 -18.297872,-1.1111111,0 -14.231678,-1.1111111,0 -10.165485,-1.1111111,0 -6.0992908,-1.1111111,0 -2.0330969,-1.1111111,0 2.0330969,-1.1111111,0 6.0992908,-1.1111111,0 10.165485,-1.1111111,0 14.231678,-1.1111111,0 18.297872,-1.1111111,0 -18.297872,1.1111111,0 -14.231678,1.1111111,0
-10.165485,1.1111111,0 -6.0992908,1.1111111,0 -2.0330969,1.1111111,0 2.0330969,1.1111111,0 6.0992908,1.1111111,0 10.165485,1.1111111,0 14.231678,1.1111111,0 18.297872,1.1111111,0 -18.297872,3.3333333,0 -14.231678,3.3333333,0 -10.165485,3.3333333,0 -6.0992908,3.3333333,0 -2.0330969,3.3333333,0
2.0330969,3.3333333,0 6.0992908,3.3333333,0 10.165485,3.3333333,0 14.231678,3.3333333,0 18.297872,3.3333333,0 -18.297872,5.5555556,0 -14.231678,5.5555556,0 -10.165485,5.5555556,0 -6.0992908,5.5555556,0 -2.0330969,5.5555556,0 2.0330969,5.5555556,0 6.0992908,5.5555556,0 10.165485,5.5555556,0
14.231678,5.5555556,0 18.297872,5.5555556,0 -18.297872,7.7777778,0 -14.231678,7.7777778,0 -10.165485,7.7777778,0 -6.0992908,7.7777778,0 -2.0330969,7.7777778,0 2.0330969,7.7777778,0 6.0992908,7.7777778,0 10.165485,7.7777778,0 14.231678,7.7777778,0 18.297872,7.7777778,0 -18.297872,10,0
-14.231678,10,0 -10.165485,10,0 -6.0992908,10,0 -2.0330969,10,0 2.0330969,10,0 6.0992908,10,0 10.165485,10,0 14.231678,10,0 18.297872,10,0" TextureCoordinates="0,94 19.111111,94 38.222222,94 57.333333,94 76.444444,94 95.555556,94 114.66667,94 133.77778,94 152.88889,94 172,94 0,83.555556 19.111111,83.555556 38.222222,83.555556 57.333333,83.555556 76.444444,83.555556 95.555556,83.555556 114.66667,83.555556 133.77778,83.555556 152.88889,83.555556 172,83.555556 0,73.111111 19.111111,73.111111 38.222222,73.111111
57.333333,73.111111 76.444444,73.111111 95.555556,73.111111 114.66667,73.111111 133.77778,73.111111 152.88889,73.111111 172,73.111111 0,62.666667 19.111111,62.666667 38.222222,62.666667 57.333333,62.666667 76.444444,62.666667 95.555556,62.666667 114.66667,62.666667 133.77778,62.666667 152.88889,62.666667 172,62.666667 0,52.222222 19.111111,52.222222 38.222222,52.222222 57.333333,52.222222 76.444444,52.222222 95.555556,52.222222
114.66667,52.222222 133.77778,52.222222 152.88889,52.222222 172,52.222222 0,41.777778 19.111111,41.777778 38.222222,41.777778 57.333333,41.777778 76.444444,41.777778 95.555556,41.777778 114.66667,41.777778 133.77778,41.777778 152.88889,41.777778 172,41.777778 0,31.333333 19.111111,31.333333 38.222222,31.333333 57.333333,31.333333 76.444444,31.333333 95.555556,31.333333 114.66667,31.333333 133.77778,31.333333 152.88889,31.333333
172,31.333333 0,20.888889 19.111111,20.888889 38.222222,20.888889 57.333333,20.888889 76.444444,20.888889 95.555556,20.888889 114.66667,20.888889 133.77778,20.888889 152.88889,20.888889 172,20.888889 0,10.444444 19.111111,10.444444 38.222222,10.444444 57.333333,10.444444 76.444444,10.444444 95.555556,10.444444 114.66667,10.444444 133.77778,10.444444 152.88889,10.444444 172,10.444444 0,0 19.111111,0
38.222222,0 57.333333,0 76.444444,0 95.555556,0 114.66667,0 133.77778,0 152.88889,0 172,0" TriangleIndices="0 1 10 1 11 10 1 2 11 2 12 11 2 3 12 3 13 12 3 4 13 4 14 13 4 5 14 5 15 14 5 6 15 6 16 15 6 7 16 7 17 16 7 8 17 8 18 17 8 9 18 9 19 18 10 11 20 11 21 20 11 12 21 12 22 21 12 13 22 13 23 22 13 14 23 14 24 23 14 15 24 15 25 24 15 16 25 16 26 25 16 17 26 17 27 26 17 18 27 18 28 27 18 19 28 19 29 28 20 21 30 21 31 30 21 22 31 22 32 31 22 23 32 23 33 32 23 24 33 24 34 33 24 25 34 25 35 34 25 26 35 26 36 35 26 27 36 27 37 36 27 28 37 28 38 37 28 29 38 29 39 38 30 31 40 31 41 40 31 32 41 32 42 41 32 33 42 33 43 42 33 34 43 34 44 43 34 35 44 35 45 44 35 36 45 36 46 45 36 37 46 37 47 46 37 38 47 38 48 47 38 39 48 39 49 48 40 41 50 41 51 50 41 42 51 42 52 51 42 43 52 43 53 52 43 44 53 44 54 53 44 45 54 45 55 54 45 46 55 46 56 55 46 47 56 47 57 56 47 48 57 48 58 57 48 49 58 49 59 58 50 51 60 51 61 60 51 52 61 52 62 61 52 53 62 53 63 62 53 54 63 54 64 63 54 55 64 55 65 64 55 56 65 56 66 65 56 57 66 57 67 66 57 58 67 58 68 67 58 59 68 59 69 68 60 61 70 61 71 70 61 62 71 62 72 71 62 63 72 63 73 72 63 64 73 64 74 73 64 65 74 65 75 74 65 66 75 66 76 75 66 67 76 67 77 76 67 68 77 68 78 77 68 69 78 69 79 78 70 71 80 71 81 80 71 72 81 72 82 81 72 73 82 73 83 82 73 74 83 74 84 83 74 75 84 75 85 84 75 76 85 76 86 85 76 77 86 77 87 86 77 78 87 78 88 87 78 79 88 79 89 88 80 81 90 81 91 90 81 82 91 82 92 91 82 83 92 83 93 92 83 84 93 84 94 93 84 85 94 85 95 94 85 86 95 86 96 95 86 87 96 87 97 96 87 88 97 88 98 97 88 89 98 89 99 98"/>
</GeometryModel3D.Geometry>
<GeometryModel3D.Material>
<DiffuseMaterial>
<DiffuseMaterial.Brush>
<ImageBrush ImageSource="belka_podpisowa_zawodnika_Images\logo_GWD-01.png" Stretch="Uniform"/>
</DiffuseMaterial.Brush>
</DiffuseMaterial>
</GeometryModel3D.Material>
</GeometryModel3D>
</ModelVisual3D.Content>
</ModelVisual3D>
<ModelVisual3D x:Name="AmbientContainer">
<ModelVisual3D.Content>
<AmbientLight x:Name="Ambient" Color="Gray"/>
</ModelVisual3D.Content>
</ModelVisual3D>
<ModelVisual3D x:Name="DirectionalContainer">
<ModelVisual3D.Transform>
<Transform3DGroup>
<TranslateTransform3D OffsetZ="0" OffsetX="0" OffsetY="0"/>
<ScaleTransform3D ScaleZ="1" ScaleY="1" ScaleX="1"/>
<RotateTransform3D d:EulerAngles="0,0,0">
<RotateTransform3D.Rotation>
<AxisAngleRotation3D Axis="0,1,0" Angle="0"/>
</RotateTransform3D.Rotation>
</RotateTransform3D>
<TranslateTransform3D OffsetZ="0" OffsetX="0" OffsetY="0"/>
<TranslateTransform3D OffsetZ="0" OffsetX="0" OffsetY="0"/>
</Transform3DGroup>
</ModelVisual3D.Transform>
<ModelVisual3D.Content>
<DirectionalLight x:Name="Directional" Color="#FF7F7F7F" Direction="0,0,-1">
<DirectionalLight.Transform>
<TranslateTransform3D OffsetZ="3" OffsetX="0" OffsetY="0"/>
</DirectionalLight.Transform>
</DirectionalLight>
</ModelVisual3D.Content>
</ModelVisual3D>
</Viewport3D>
</Canvas>
</Grid>
</UserControl>

1

Pkt 1. Kup oryginalne oprogramowanie

1 użytkowników online, w tym zalogowanych: 0, gości: 1