
Hello,
I am deploying my project on a computer with no WPF components installed.
At first I tried the deployed project with still WPF Studio installed. It worked.
Then I uninstalled the Actipro product and xcopy the required assemblies on the bin directory.
The project ran but I got then an exception on some Gauge controls :
"Impossible to convert the '0%' string of the 'Y' attribute into an object of type 'ActiproSoftware.windows.Unit'. Error at the 'textBlock' object on the XAML file"
The XAML file is this one and extracted from the Actipro samples :so I tried to change the '0%' string to '0' to see. But I got the same exception :
"Impossible to convert the '0' string of the 'Y' attribute into an object of type 'ActiproSoftware.windows.Unit'. Error at the 'textBlock' object on the XAML file"
So, I tried to use this simple ToggleSwitch on a simple project, an exe with a single form with an ElementHost hosting the switch, with the same 'O%' attribute. Once deployed on the same directory of my project with the trouble, it worked like a charm.
Do you have an idea of what I shall do ? I don't understand why it could not work with the previous scenario.
I am deploying my project on a computer with no WPF components installed.
At first I tried the deployed project with still WPF Studio installed. It worked.
Then I uninstalled the Actipro product and xcopy the required assemblies on the bin directory.
The project ran but I got then an exception on some Gauge controls :
"Impossible to convert the '0%' string of the 'Y' attribute into an object of type 'ActiproSoftware.windows.Unit'. Error at the 'textBlock' object on the XAML file"
The XAML file is this one and extracted from the Actipro samples :
<UserControl.Resources>
<!-- Converters -->
<shared:PercentageConverter x:Key="PercentageConverter" />
<local:AdditionConverter x:Key="AdditionConverter" />
</UserControl.Resources>
<gauge:ToggleSwitch x:Name="buttonSwitch" IsChecked="False" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" SwitchType="Flat" IsThreeState="True">
<gauge:ToggleSwitch.BackgroundGeometry>
<Geometry>M 1,0 L 2,0 L 3,1 L 3,2 L 2,3 L 1,3 L 0,2 L 0,1 Z</Geometry>
</gauge:ToggleSwitch.BackgroundGeometry>
<gauge:ToggleSwitch.RimGeometry>
<Geometry>M 1,0 L 2,0 L 3,1 L 3,2 L 2,3 L 1,3 L 0,2 L 0,1 Z</Geometry>
</gauge:ToggleSwitch.RimGeometry>
<gauge:ToggleSwitch.Items>
<TextBlock x:Name="textBlock" gauge:ToggleSwitch.Y="0%" Text="" FontWeight="Bold"
Foreground="Green" FontSize="10" />
</gauge:ToggleSwitch.Items>
</gauge:ToggleSwitch>
"Impossible to convert the '0' string of the 'Y' attribute into an object of type 'ActiproSoftware.windows.Unit'. Error at the 'textBlock' object on the XAML file"
So, I tried to use this simple ToggleSwitch on a simple project, an exe with a single form with an ElementHost hosting the switch, with the same 'O%' attribute. Once deployed on the same directory of my project with the trouble, it worked like a charm.
Do you have an idea of what I shall do ? I don't understand why it could not work with the previous scenario.