Telerik Forums
UI for Xamarin Forum
3 answers
123 views

Hi, I am using RadVerticalGauge for my app and I am encoutering an issue similar to https://www.telerik.com/forums/radradialgauge-not-taking-full-width.

Indeed, I would like to reduce the space taken by the gauge canvas. I have tried using negative margin on the gauge but without success.

Attached the current result.

 

How can I achieve this ?

Thanks in advance

Didi
Telerik team
 answered on 11 Feb 2019
4 answers
200 views

hi

if we set font family in autocompleteview, iOS application crashes.

in page,

FontFamily="{StaticResource RegularFont}"

in App.xaml,

<OnPlatform x:TypeArguments="x:String" x:Key="RegularFont">
                <On Platform="Android" Value="Heebo-Light.ttf#Heebo Light"/>
                <On Platform="iOS" Value="HelveticaNeue"/>
                <On Platform="UWP" Value="Assets/Fonts/HelveticaNeue.ttf#HelveticaNeue"/>
            </OnPlatform>

Crash details,

Message,

Value cannot be null.
Parameter name: descriptor

Stacktrace,

at UIKit.UIFont._FromDescriptor (UIKit.UIFontDescriptor descriptor, System.nfloat pointSize) [0x0000e] in /Library/Frameworks/Xamarin.iOS.framework/Versions/12.2.1.13/src/Xamarin.iOS/UIKit/UIFont.g.cs:106
at UIKit.UIFont.FromDescriptor (UIKit.UIFontDescriptor descriptor, System.nfloat pointSize) [0x00000] in /Library/Frameworks/Xamarin.iOS.framework/Versions/12.2.1.13/src/Xamarin.iOS/UIKit/UIFont.cs:179
at Telerik.XamarinForms.InputRenderer.iOS.EntryAdapter.UpdateFont (Telerik.XamarinForms.Input.RadEntry sourceOwner, Telerik.XamarinForms.InputRenderer.iOS.BorderUITextField targetOwner) [0x0007a] in <e72706fd0dd5405fabc91cd72e3c9f5d>:0
at Telerik.XamarinForms.InputRenderer.iOS.EntryAdapter.UpdateCore (Telerik.XamarinForms.Input.RadEntry sourceOwner, Telerik.XamarinForms.InputRenderer.iOS.BorderUITextField targetOwner, System.String propertyName) [0x0014d] in <e72706fd0dd5405fabc91cd72e3c9f5d>:0
at Telerik.XamarinForms.Common.FacadeAdapterBase`2[S,T].Update (System.Object sourceOwner, System.Object targetOwner, System.String propertyName, System.Object sourceOwnerRoot, System.Object targetOwnerRoot) [0x00000] in <b1d124df8dbf4987b1a7f6b0a5485748>:0
at Telerik.XamarinForms.Common.XamarinToNativeControlExtensions.Update[T,K] (T nativeElement, K xfЕlement, System.String propertyName, System.Object sourceOwnerRoot, System.Object targetOwnerRoot) [0x00031] in <b1d124df8dbf4987b1a7f6b0a5485748>:0
at Telerik.XamarinForms.InputRenderer.iOS.EntryRenderer.OnElementPropertyChanged (System.Object sender, System.ComponentModel.PropertyChangedEventArgs e) [0x0002a] in <e72706fd0dd5405fabc91cd72e3c9f5d>:0
at (wrapper delegate-invoke) <Module>.invoke_void_object_PropertyChangedEventArgs(object,System.ComponentModel.PropertyChangedEventArgs)
at Xamarin.Forms.BindableObject.OnPropertyChanged (System.String propertyName) [0x00000] in D:\a\1\s\Xamarin.Forms.Core\BindableObject.cs:150
at Xamarin.Forms.Element.OnPropertyChanged (System.String propertyName) [0x00000] in D:\a\1\s\Xamarin.Forms.Core\Element.cs:370
at Telerik.XamarinForms.Input.RadEntry.OnPropertyChanged (System.String propertyName) [0x0002a] in <e72706fd0dd5405fabc91cd72e3c9f5d>:0
at Xamarin.Forms.BindableObject.SetValueActual (Xamarin.Forms.BindableProperty property, Xamarin.Forms.BindableObject+BindablePropertyContext context, System.Object value, System.Boolean currentlyApplying, Xamarin.Forms.Internals.SetValueFlags attributes, System.Boolean silent) [0x00114] in D:\a\1\s\Xamarin.Forms.Core\BindableObject.cs:623
at Xamarin.Forms.BindableObject.SetValueCore (Xamarin.Forms.BindableProperty property, System.Object value, Xamarin.Forms.Internals.SetValueFlags attributes, Xamarin.Forms.BindableObject+SetValuePrivateFlags privateAttributes) [0x0015b] in D:\a\1\s\Xamarin.Forms.Core\BindableObject.cs:417
at Xamarin.Forms.BindingExpression.ApplyCore (System.Object sourceObject, Xamarin.Forms.BindableObject target, Xamarin.Forms.BindableProperty property, System.Boolean fromTarget) [0x00225] in D:\a\1\s\Xamarin.Forms.Core\BindingExpression.cs:173
at Xamarin.Forms.BindingExpression.Apply (System.Boolean fromTarget) [0x0003e] in D:\a\1\s\Xamarin.Forms.Core\BindingExpression.cs:57
at Xamarin.Forms.BindingExpression+BindingExpressionPart.<PropertyChanged>b__49_0 () [0x00000] in D:\a\1\s\Xamarin.Forms.Core\BindingExpression.cs:615
at Foundation.NSAsyncActionDispatcher.Apply () [0x00000] in /Library/Frameworks/Xamarin.iOS.framework/Versions/12.2.1.13/src/Xamarin.iOS/Foundation/NSAction.cs:152
at (wrapper managed-to-native) UIKit.UIApplication.UIApplicationMain(int,string[],intptr,intptr)
at UIKit.UIApplication.Main (System.String[] args, System.IntPtr principal, System.IntPtr delegate) [0x00005] in /Library/Frameworks/Xamarin.iOS.framework/Versions/12.2.1.13/src/Xamarin.iOS/UIKit/UIApplication.cs:79
at UIKit.UIApplication.Main (System.String[] args, System.String principalClassName, System.String delegateClassName) [0x0002c] in /Library/Frameworks/Xamarin.iOS.framework/Versions/12.2.1.13/src/Xamarin.iOS/UIKit/UIApplication.cs:63
at listLayout.iOS.Application.Main (System.String[] args) [0x00001] in /Users/xamarindev/Documents/sample/listLayout/listLayout/listLayout.iOS/Main.cs:17

 

Shalin
Top achievements
Rank 1
Iron
Iron
 answered on 11 Feb 2019
1 answer
155 views

Hi

We are using RadEntry as entry in our project. If you see the attached image, we want to use WatermarkText as placeholder where the text will have regular color & asterisk will be in red. Is it possible in  RadEntry?

Lance | Senior Manager Technical Support
Telerik team
 answered on 08 Feb 2019
3 answers
176 views

The latest Xamarin.Forms (3.5.0.129452, just released) requires, for Android Pie, the latest Android Support Library series (28.0.0.1). Upgrading all these in an Android project using Telerik will not build in VS 2017 until the ancient Xamarin.Android.Support.V8.RenderScript, not available in that series, is removed. Unfortunately Telerik requires that dll for some controls. Although the project can then build, it crashes on trying to use a dependent control.

To put it another way, it would seem Telerik needs to remove its dependencies on RenderScript, seeing that Xamarin has not seen fit to update it.

Didi
Telerik team
 answered on 08 Feb 2019
1 answer
250 views
PdfViewer : FitToWidth on StartUp?

 

Is there a setting to set the viewer to display fit to width when the pdf file opens?

 

<?xml version="1.0" encoding="utf-8" ?>
             xmlns:telerikPdf="clr-namespace:Telerik.XamarinForms.PdfViewer;assembly=Telerik.XamarinForms.PdfViewer"
             xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
             xmlns:telerikCommon="clr-namespace:Telerik.XamarinForms.Common;assembly=Telerik.XamarinForms.Common"
             x:Class="TelerikXamarinApp1.Portable.Page1">
    <ContentPage.Content>
 
        <Grid>
            <Grid.RowDefinitions>
                <RowDefinition Height="Auto"/>
                <RowDefinition />
            </Grid.RowDefinitions>
            <telerikPdf:RadPdfViewerToolbar PdfViewer="{Binding Source={x:Reference pdfViewer}}">
                <telerikPdf:ZoomInToolbarItem />
                <telerikPdf:ZoomOutToolbarItem />
                <telerikPdf:NavigateToNextPageToolbarItem/>
                <telerikPdf:NavigateToPreviousPageToolbarItem/>
                <telerikPdf:NavigateToPageToolbarItem/>
                <telerikPdf:FitToWidthToolbarItem/>
                <!--<telerikPdf:ToggleLayoutModeToolbarItem/>-->
            </telerikPdf:RadPdfViewerToolbar>
            <telerikPdf:RadPdfViewer x:Name="pdfViewer" Grid.Row="1" FitToWidthCommand=""/>
        </Grid>
         
        <!--<Grid>
            <Grid.RowDefinitions>
                <RowDefinition Height="Auto"/>
                <RowDefinition/>
            </Grid.RowDefinitions>
            <telerikCommon:RadUniformGrid>
                <Button Text="Zoom In"
                Command="{Binding Source={x:Reference pdfViewer}, Path=ZoomInCommand}" />
                <Button Text="Zoom Out"
                Command="{Binding Source={x:Reference pdfViewer}, Path=ZoomOutCommand}" />
                <Button Text="Fit To Width"
                Command="{Binding Source={x:Reference pdfViewer}, Path=FitToWidthCommand}" />
                <Button Text="Previous Page"
                Command="{Binding Source={x:Reference pdfViewer}, Path=NavigateToPreviousPageCommand}" />
                <Button Text="Next Page"
                Command="{Binding Source={x:Reference pdfViewer}, Path=NavigateToNextPageCommand}" />
            </telerikCommon:RadUniformGrid>
            <telerikPdf:RadPdfViewer x:Name="pdfViewer"
                                   Grid.Row="1"
                                   MinZoomLevel="0.3"
                                   MaxZoomLevel="4"/>
        </Grid>-->
         
        <!--<StackLayout>
            <Label Text="Invoice Viewer"
                VerticalOptions="CenterAndExpand"
                HorizontalOptions="CenterAndExpand" />
 
            <telerikPdf:RadPdfViewerToolbar PdfViewer="{Binding Source={x:Reference pdfViewer}}">
                <telerikPdf:NavigateToPreviousPageToolbarItem />
                <telerikPdf:NavigateToPageToolbarItem/>
                <telerikPdf:NavigateToNextPageToolbarItem />
                <telerikPdf:ZoomInToolbarItem/>
                <telerikPdf:ZoomOutToolbarItem/>
                <telerikPdf:FitToWidthToolbarItem/>
            </telerikPdf:RadPdfViewerToolbar>
            <telerikPdf:RadPdfViewer x:Name="pdfViewer" Scale="50"
                                      FitToWidthCommand="True"
                                     />
             
        </StackLayout>-->
    </ContentPage.Content>
</ContentPage>

 

 

Regards,

Graham

Didi
Telerik team
 answered on 08 Feb 2019
1 answer
87 views

The SDKBrowser set of examples is ALL XAML!!  What about all of the developers that do not like/use XAML, like myself?  Sometimes it is not easy to convert a XAML example to the equivalent pure C# version.  I would like the SDKBrowser to include BOTH the current XAML examples AND pure C# versions of the same thing.

 

Why do I not like XAML, you may ask?

  1. XAML is a different language than C#.  I prefer to work in 1 language if possible
  2. With Visual Studio for Mac, refactoring does not work with XAML.  If my XAML includes "{Binding Name}" and then I rename the Name property to Title, the XAML is NOT refactored too (I am told this does work on Windows, but I know it does NOT work on Mac).  Therefore, my project no longer binds correctly since Name no longer exists.
  3. XAML makes it harder, if not impossible, to use Abstract Page classes.  Maybe I have some common UI in a few of my pages, so I make an AbstractPage with that common UI.  Then I make derived classes that construct more specific UI around the common UI.  I am not sure if that is possible with XAML, having 1 XAML page extend/inherit another.
Yana
Telerik team
 answered on 08 Feb 2019
1 answer
146 views
Is it possible to use the Edit command API to dynamically change the cell content to my own custom editor?  I would like my datagrid to look like everything is a text cell, but when I double click a cell, I want a custom editor control to appear as the cell content instead.  The user then uses the custom editor control to change the value, and then when he commits the edit, the dynamic custom editor control disappears and I see the text cell again, but with the new value.  I think this is how the normal editing commands work on the data grid, but I want to use my own custom editors instead of the default ones.
Nasko
Telerik team
 answered on 07 Feb 2019
1 answer
111 views
Hello,

I have an issue with ,

I have a scenario like send Message to the Recipients, 

When select any Token, will appear, and then can not disappear keyboard with the *Return key*. I have to compulsory delete that Token for the keyboard,

Even, AutocompleteTextView.ResignFirstResponder() not disappearing Keyboard.

So, If can help me this, will be appreciated.

Thanks,
Yana
Telerik team
 answered on 07 Feb 2019
3 answers
312 views

Hi, Can you tell me how to change the color on a SegmentedControl please? Attached is my implementation and you can see the white border lines.  I'd like control of the color so I can have it blend in better.

 

Thank you,
Brian

Yana
Telerik team
 answered on 07 Feb 2019
1 answer
92 views

Hi,

after update The last version of XF i get this error in Release Mode :

 

any Idea?

thanks

 

 

 

 

Sisi
Telerik team
 answered on 07 Feb 2019
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?