This is a migrated thread and some comments may be shown as answers.

human readable

5 Answers 95 Views
Barcode
This is a migrated thread and some comments may be shown as answers.
David Ocasio
Top achievements
Rank 2
Iron
Veteran
Iron
David Ocasio asked on 13 Apr 2013, 02:52 PM
is there any way to turn the human readable off.

thanks
dco

5 Answers, 1 is accepted

Sort by
0
Yavor
Telerik team
answered on 17 Apr 2013, 07:42 AM
Hi,

You can add an implicit style to barcode's resources to hide the ViewBox controls that hold the text:
Copy Code
<telerik:RadBarcodeEAN13 Height="120" Width="425" Text="123456789012">
<telerik:RadBarcodeEAN13.Resources>
<Style TargetType="Viewbox">
<Setter Property="Visibility" Value="Collapsed" />
</Style>
</telerik:RadBarcodeEAN13.Resources>
</telerik:RadBarcodeEAN13>

All the best,
Yavor
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
Kevin
Top achievements
Rank 1
answered on 12 Mar 2014, 10:57 AM
How can I do this programmatically?

I tried:
1.System.Windows.Style style = new Style(typeof(Viewbox));
2.style.Setters.Add(new Setter(Viewbox.VisibilityProperty, "Collapsed"));
3. 
4.bar.Resources.Add(typeof(Viewbox), style);


but this does not seem to work.
0
Kiril Vandov
Telerik team
answered on 17 Mar 2014, 10:07 AM
Hello Kevin,

You could create a new ImplicitStyle for all of your RadBarcodeEAN13 and bind the visibility of the ViewBoxes in the Template to an attached property which you can control from code behind.

I hope this information helps.

Kind regards,
Kiril Vandov
Telerik
 

DevCraft Q1'14 is here! Watch the online conference to see how this release solves your top-5 .NET challenges. Watch on demand now.

 
0
David Ocasio
Top achievements
Rank 2
Iron
Veteran
Iron
answered on 18 Aug 2014, 06:31 PM
Finally came to around to implementing what you recommended.
But it is not working for me .
What am I doing wrong.

<telerik:RadBarcode39 Grid.Row="0"
       Text="{Binding Z_No,Converter={StaticResource UpperConverter}}" 
       ShowChecksum="False" RenderChecksum="False" >
    <telerik:RadBarcode39.Resources>
        <Style TargetType="Viewbox">
            <Setter Property="Visibility" Value="Collapsed" />
        </Style>
    </telerik:RadBarcode39.Resources>
</telerik:RadBarcode39>

0
Kiril Vandov
Telerik team
answered on 20 Aug 2014, 08:28 AM
Hello David ,

I have attached a sample project demonstrating how you can bind the Visibility of the Viewbox elements used to display the human readable display. In the project you will find a custom Implicit style targeting the RadBarcodeEAN13 in which ControlTemplate I have bound the Visibility of the Viewbox elements to an attached property.

I hope this information helps.

Kind regards,
Kiril Vandov
Telerik
 
Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
 
Tags
Barcode
Asked by
David Ocasio
Top achievements
Rank 2
Iron
Veteran
Iron
Answers by
Yavor
Telerik team
Kevin
Top achievements
Rank 1
Kiril Vandov
Telerik team
David Ocasio
Top achievements
Rank 2
Iron
Veteran
Iron
Share this question
or