Telerik Forums
UI for .NET MAUI Forum
1 answer
94 views

I have the DataGrid SelectionUnit set to Row and SelectionMode set to Multiple.

I'm trying to add a DataGridBooleanColumn that has a check box in the header and for each row. I would like to bind the IsChecked property of the checkbox to if the Row is selected or not.   

The check box in the header would either select all or deselect all depending on if it is checked or not.  I was able to use the SelectAll and DeselectAll methods which selects all the rows, but it does not check the checkbox at the row level if the row is selected.

Is there a way to do this?

 

 

Maria
Telerik team
 answered on 26 Sep 2023
0 answers
114 views

Hello, 
I am trying to use the dataform but as soon as I uncomment one too many input the UI overlaps. In the image bellow after uncommenting RSVPPage the UI is all messed up.

<?xml version="1.0" encoding="utf-8" ?>
<ContentPage
    x:Class="Class"
    xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
    xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
    xmlns:models="clr-namespace:NameSpace.Models"
    xmlns:telerik="http://schemas.telerik.com/2022/xaml/maui"
    xmlns:toolkit="http://schemas.microsoft.com/dotnet/2022/maui/toolkit"
    xmlns:vm="clr-namespace:NameSpace.ViewModels"
    Title="Demo">
    <ContentPage.BindingContext>
        <vm:NewDemoViewModel />
    </ContentPage.BindingContext>
    <ContentPage.Content>
        <ScrollView>
            <telerik:RadDataForm
                x:Name="dataForm"
                AutoGenerateItems="False"
                BindingContext="{Binding Demo}"
                ValidationMode="LostFocus">
                <telerik:DataFormGroup HeaderText="Text">
                    <telerik:DataFormRadEntryEditor PropertyName="Host" />
                    <telerik:DataFormRadEntryEditor PropertyName="Address" />
                    <telerik:DataFormRadEntryEditor PropertyName="City" />
                    <telerik:DataFormRadEntryEditor PropertyName="PostalCode" />
                    <telerik:DataFormRadEntryEditor PropertyName="PhoneNumber" />
                </telerik:DataFormGroup>
                <telerik:DataFormGroup HeaderText="Text">
                    <telerik:DataFormRadEntryEditor PropertyName="CreatedOn" />
                    <telerik:DataFormRadDatePickerEditor PropertyName="PlannedDate" />
                    <telerik:DataFormRadDatePickerEditor PropertyName="Date" />
                    <telerik:DataFormRadTimePickerEditor PropertyName="Time" />
                    <!--<telerik:DataFormRadCheckBoxEditor PropertyName="PersoDemo" />
                    <telerik:DataFormRadEntryEditor PropertyName="RSVPPage" />-->
                    <!--<telerik:DataFormRadEntryEditor PropertyName="Ambassador" />
                        <telerik:DataFormRadEntryEditor PropertyName="InternalNote" />-->
                </telerik:DataFormGroup>
            </telerik:RadDataForm>
        </ScrollView>
    </ContentPage.Content>
</ContentPage>

Thanks in advance,

Edit:  I am using the android emulator with a pixel 5.

andre
Top achievements
Rank 1
 updated question on 21 Sep 2023
0 answers
341 views

I am working on a mobile app for Android and iOS. When running over emulation, it seems to work fine on both platforms.

But when I deploy to my local test iPhone, I get errors when navigating to certain routes. This is the output I see in the Visual Studio output..

What do I need to do to resolve this?

 Could not resolve assembly Telerik.Maui.Core.resources, Version=5.2.0.0, Culture=en, PublicKeyToken=null. Details: Could not load file or assembly

billy
Top achievements
Rank 2
Iron
Iron
Iron
 asked on 20 Sep 2023
2 answers
1.6K+ views
When using the Telerik for MAUI libraries and trying to compile for a Windows device, the error occurs:

Error XFC0000 Cannot resolve type "http://schemas.telerik.com/2022/xaml/maui:telerik:RadComboBox".

The same Android app compiles and works.

Thanks.
Andrea
Top achievements
Rank 2
Iron
 answered on 20 Sep 2023
1 answer
102 views
I'm trying to set a VisualState style for Pressed/PointerOver/MouseOver etc. for the ToolbarItemView or ButtonToolbarItemView.
But somehow that doesn't seem to work. Definitely not Pressed for iOS and Android

Is there an example here, or could it be that this doesn't work?

<Setter Property="VisualStateManager.VisualStateGroups">
     <VisualStateGroupList>
         <VisualStateGroup x:Name="CommonStates">
             <VisualState x:Name="Normal" />
             <VisualState x:Name="Disabled">
                 <VisualState.Setters>
                     <Setter Property="Opacity" Value="0.5" />
                 </VisualState.Setters>
             </VisualState>
             <VisualState x:Name="Pressed">
                 <VisualState.Setters>
                     <Setter Property="BackgroundColor" Value="{AppThemeBinding Light={StaticResource ButtonPointerOverColorLight}, Dark={StaticResource ButtonPointerOverColorDark}}" />
                     <Setter Property="BorderColor" Value="{AppThemeBinding Dark={StaticResource ButtonBorderColorDark}, Light={StaticResource ButtonBorderColorLight}}" />
                 </VisualState.Setters>
             </VisualState>
             <VisualState x:Name="PointerOver">
                 <VisualState.Setters>
                     <Setter Property="BackgroundColor" Value="{AppThemeBinding Light={StaticResource ButtonPointerOverColorLight}, Dark={StaticResource ButtonPointerOverColorDark}}" />
                     <Setter Property="BorderColor" Value="{AppThemeBinding Dark={StaticResource ButtonBorderColorDark}, Light={StaticResource ButtonBorderColorLight}}" />
                 </VisualState.Setters>
             </VisualState>
             <VisualState x:Name="MouseOver">
                 <VisualState.Setters>
                     <Setter Property="BackgroundColor" Value="{AppThemeBinding Light={StaticResource ButtonPointerOverColorLight}, Dark={StaticResource ButtonPointerOverColorDark}}" />
                     <Setter Property="BorderColor" Value="{AppThemeBinding Dark={StaticResource ButtonBorderColorDark}, Light={StaticResource ButtonBorderColorLight}}" />
                 </VisualState.Setters>
             </VisualState>
         </VisualStateGroup>
     </VisualStateGroupList>
</Setter>
Ivan
Telerik team
 answered on 18 Sep 2023
1 answer
273 views

RadTreeView during rendering. I tried to comment out all of the Templete overrides in the resource dictionary AND I've also removed the <fluent:MauiIcon> in the ItemTemplate.

Unable to cast object of type 'Telerik.Maui.Handlers.RadButtonHandler' to type 'Microsoft.Maui.Platform.IImageSourcePartSetter'.

 

   at Microsoft.Maui.Platform.ImageSourcePartLoader..ctor(IElementHandler handler, Func`1 imageSourcePart, Action`1 setImage)
   at Telerik.Maui.Handlers.RadButtonHandler..ctor(IPropertyMapper mapper)
   at Telerik.Maui.Handlers.RadButtonHandler..ctor()
   at System.RuntimeType.CreateInstanceDefaultCtor(Boolean publicOnly, Boolean wrapExceptions)

   at Microsoft.Maui.Hosting.Internal.MauiFactory.GetService(Type serviceType, ServiceDescriptor single, IEnumerable`1 enumerable)
   at Microsoft.Maui.Platform.ElementExtensions.ToHandler(IElement view, IMauiContext context)
   at Microsoft.Maui.Platform.ElementExtensions.ToPlatform(IElement view, IMauiContext context)
   at Microsoft.Maui.Handlers.LayoutHandler.SetVirtualView(IView view)
   at Microsoft.Maui.Controls.Element.SetHandler(IElementHandler newHandler)
   at Microsoft.Maui.Platform.ElementExtensions.ToHandler(IElement view, IMauiContext context)
   at Microsoft.Maui.Platform.ElementExtensions.ToPlatform(IElement view, IMauiContext context)
   at Microsoft.Maui.Handlers.LayoutHandler.SetVirtualView(IView view)
   at Microsoft.Maui.Controls.Element.SetHandler(IElementHandler newHandler)
   at Microsoft.Maui.Platform.ElementExtensions.ToHandler(IElement view, IMauiContext context)
   at Microsoft.Maui.Platform.ElementExtensions.ToPlatform(IElement view, IMauiContext context)
   at Telerik.Maui.RadBorderExtensions.UpdateBorderContent(Border nativeBorder, IRadBorder border)
   at Telerik.Maui.Handlers.RadBorderHandler.MapContent(RadBorderHandler handler, IRadBorder border)
   at Microsoft.Maui.PropertyMapper.UpdateProperties(IElementHandler viewHandler, IElement virtualView)
   at Microsoft.Maui.Handlers.ElementHandler.SetVirtualView(IElement view)
   at Microsoft.Maui.Controls.Element.SetHandler(IElementHandler newHandler)
   at Microsoft.Maui.Platform.ElementExtensions.ToHandler(IElement view, IMauiContext context)
   at Microsoft.Maui.Platform.ElementExtensions.ToPlatform(IElement view, IMauiContext context)
   at Microsoft.Maui.Handlers.ContentViewHandler.UpdateContent(IContentViewHandler handler)
   at Microsoft.Maui.Handlers.ContentViewHandler.MapContent(IContentViewHandler handler, IContentView page)
   at Microsoft.Maui.Controls.TemplatedView.OnApplyTemplateImpl()
   at Microsoft.Maui.Controls.TemplatedView.OnApplyTemplate()
   at Microsoft.Maui.Controls.TemplatedView.Microsoft.Maui.Controls.IControlTemplated.OnApplyTemplate()
   at Microsoft.Maui.Controls.TemplateUtilities.OnControlTemplateChanged(BindableObject bindable, Object oldValue, Object newValue)
   at Microsoft.Maui.Controls.BindableObject.SetValueActual(BindableProperty property, BindablePropertyContext context, Object value, Boolean currentlyApplying, SetValueFlags attributes, SetterSpecificity specificity, Boolean silent)
   at Microsoft.Maui.Controls.BindableObject.SetValue(BindableProperty property, Object value)
   at Telerik.Maui.Controls.RadCompositeContentView.set_ActualControlTemplate(ControlTemplate value)
   at Telerik.Maui.Controls.RadCompositeContentView.UpdateActualControlTemplate(ControlTemplate customTemplate)
   at Telerik.Maui.Controls.RadCompositeContentView.UpdateActualControlTemplate()
   at Telerik.Maui.Controls.RadCompositeContentView.InitializeComponent()
   at Telerik.Maui.Controls.RadCompositeContentView.OnHandlerChanged()
   at Telerik.Maui.Controls.ItemsView.ItemView.OnHandlerChanged()
   at Microsoft.Maui.Controls.VisualElement.OnHandlerChangedCore()
   at Microsoft.Maui.Controls.Element.SetHandler(IElementHandler newHandler)
   at Microsoft.Maui.Platform.ElementExtensions.ToHandler(IElement view, IMauiContext context)
   at Microsoft.Maui.Platform.ElementExtensions.ToPlatform(IElement view, IMauiContext context)
   at Microsoft.Maui.Handlers.LayoutHandler.Add(IView child)
   at Microsoft.Maui.Handlers.LayoutHandler.MapAdd(ILayoutHandler handler, ILayout layout, Object arg)
   at Microsoft.Maui.CommandMapper.InvokeCore(String key, IElementHandler viewHandler, IElement virtualView, Object args)
   at Microsoft.Maui.Handlers.ElementHandler.Invoke(String command, Object args)
   at Microsoft.Maui.Controls.Layout.NotifyHandler(String action, Int32 index, IView view)
   at Microsoft.Maui.Controls.Layout.OnAdd(Int32 index, IView view)
   at Microsoft.Maui.Controls.Layout.Add(IView child)
   at Telerik.Maui.Controls.RadItemsView.CreateItemView()
   at Telerik.Maui.Controls.RadItemsView.Telerik.Maui.Controls.ItemsView.IRadItemsView.CreateItemView()
   at Telerik.Maui.Controls.ItemsView.ItemViewProvider.CreateItemView(Object dataItem)
   at Telerik.Maui.Controls.ItemsView.ItemViewProvider.GetItemView(Object dataItem)
   at Telerik.Maui.Controls.ItemsView.ItemsViewVerticalLayoutStrategy.GetItemView(Object dataItem)
   at Telerik.Maui.Controls.ItemsView.ItemsViewVerticalLayoutStrategy.GetItemView(Int32 itemIndex)
   at Telerik.Maui.Controls.ItemsView.ItemsViewVerticalLayoutStrategy.ExpandEnd(Size availableSize)
   at Telerik.Maui.Controls.ItemsView.ItemsViewVerticalLayoutStrategy.ArrangeChildren(Rect layoutBounds)
   at Telerik.Maui.Controls.ItemsView.ItemsVirtualLayout.ArrangeChildren(Rect layoutBounds)
   at Microsoft.Maui.Platform.LayoutPanel.ArrangeOverride(Size finalSize)
   at ABI.Microsoft.UI.Xaml.IFrameworkElementOverrides.Do_Abi_ArrangeOverride_1(IntPtr thisPtr, Size finalSize, Size* result)
--- End of stack trace from previous location ---
   at WinRT.ExceptionHelpers.<ThrowExceptionForHR>g__Throw|20_0(Int32 hr)
   at Microsoft.Maui.ViewHandlerExtensions.PlatformArrangeHandler(IViewHandler viewHandler, Rect rect)
   at Microsoft.Maui.Controls.VisualElement.ArrangeOverride(Rect bounds)
   at Microsoft.Maui.Controls.VisualElement.Microsoft.Maui.IView.Arrange(Rect bounds)
   at Telerik.Maui.Controls.ItemsView.ItemsScrollLayout.ArrangeChildren(Rect layoutBounds)
   at Microsoft.Maui.Platform.LayoutPanel.ArrangeOverride(Size finalSize)
   at ABI.Microsoft.UI.Xaml.IFrameworkElementOverrides.Do_Abi_ArrangeOverride_1(IntPtr thisPtr, Size finalSize, Size* result)
--- End of stack trace from previous location ---
   at WinRT.ExceptionHelpers.<ThrowExceptionForHR>g__Throw|20_0(Int32 hr)
   at Microsoft.Maui.ViewHandlerExtensions.PlatformArrangeHandler(IViewHandler viewHandler, Rect rect)
   at Microsoft.Maui.Controls.VisualElement.ArrangeOverride(Rect bounds)
   at Microsoft.Maui.Controls.VisualElement.Microsoft.Maui.IView.Arrange(Rect bounds)
   at Microsoft.Maui.Layouts.GridLayoutManager.ArrangeChildren(Rect bounds)
   at Microsoft.Maui.Platform.LayoutPanel.ArrangeOverride(Size finalSize)
   at ABI.Microsoft.UI.Xaml.IFrameworkElementOverrides.Do_Abi_ArrangeOverride_1(IntPtr thisPtr, Size finalSize, Size* result)
--- End of stack trace from previous location ---
   at WinRT.ExceptionHelpers.<ThrowExceptionForHR>g__Throw|20_0(Int32 hr)
   at Microsoft.Maui.ViewHandlerExtensions.PlatformArrangeHandler(IViewHandler viewHandler, Rect rect)
   at Microsoft.Maui.Controls.VisualElement.ArrangeOverride(Rect bounds)
   at Microsoft.Maui.Controls.VisualElement.Microsoft.Maui.IView.Arrange(Rect bounds)
   at Microsoft.Maui.Controls.Compatibility.Layout.LayoutChildIntoBoundingRegion(VisualElement child, Rect region)
   at Microsoft.Maui.Controls.TemplatedView.LayoutChildren(Double x, Double y, Double width, Double height)
   at Microsoft.Maui.Controls.Compatibility.Layout.UpdateChildrenLayout()
   at Microsoft.Maui.Controls.VisualElement.UpdateBoundsComponents(Rect bounds)
   at Microsoft.Maui.Controls.VisualElement.Microsoft.Maui.IView.Arrange(Rect bounds)
   at Microsoft.Maui.Controls.Compatibility.Layout.LayoutChildIntoBoundingRegion(VisualElement child, Rect region)
   at Microsoft.Maui.Controls.TemplatedView.LayoutChildren(Double x, Double y, Double width, Double height)
   at Microsoft.Maui.Controls.Compatibility.Layout.UpdateChildrenLayout()
   at Microsoft.Maui.Controls.VisualElement.UpdateBoundsComponents(Rect bounds)
   at Microsoft.Maui.Controls.VisualElement.set_Frame(Rect value)
   at Microsoft.Maui.Controls.TemplatedView.ArrangeOverride(Rect bounds)
   at Microsoft.Maui.Controls.VisualElement.Microsoft.Maui.IView.Arrange(Rect bounds)
   at Microsoft.Maui.Layouts.GridLayoutManager.ArrangeChildren(Rect bounds)
   at Microsoft.Maui.Platform.LayoutPanel.ArrangeOverride(Size finalSize)
   at ABI.Microsoft.UI.Xaml.IFrameworkElementOverrides.Do_Abi_ArrangeOverride_1(IntPtr thisPtr, Size finalSize, Size* result)
--- End of stack trace from previous location ---
   at WinRT.ExceptionHelpers.<ThrowExceptionForHR>g__Throw|20_0(Int32 hr)
   at Microsoft.Maui.ViewHandlerExtensions.PlatformArrangeHandler(IViewHandler viewHandler, Rect rect)
   at Microsoft.Maui.Controls.VisualElement.ArrangeOverride(Rect bounds)
   at Microsoft.Maui.Controls.VisualElement.Microsoft.Maui.IView.Arrange(Rect bounds)
   at Microsoft.Maui.Controls.Compatibility.Layout.LayoutChildIntoBoundingRegion(VisualElement child, Rect region)
   at Microsoft.Maui.Controls.Page.LayoutChildren(Double x, Double y, Double width, Double height)
   at Microsoft.Maui.Controls.Page.UpdateChildrenLayout()
   at Microsoft.Maui.Controls.Page.OnSizeAllocated(Double width, Double height)
   at Microsoft.Maui.Controls.VisualElement.UpdateBoundsComponents(Rect bounds)
   at Microsoft.Maui.Controls.VisualElement.set_Frame(Rect value)
   at Microsoft.Maui.Controls.ContentPage.Microsoft.Maui.ICrossPlatformLayout.CrossPlatformArrange(Rect bounds)
   at Microsoft.Maui.Platform.ContentPanel.ArrangeOverride(Size finalSize)
   at ABI.Microsoft.UI.Xaml.IFrameworkElementOverrides.Do_Abi_ArrangeOverride_1(IntPtr thisPtr, Size finalSize, Size* result)
--- End of stack trace from previous location ---
   at WinRT.ExceptionHelpers.<ThrowExceptionForHR>g__Throw|20_0(Int32 hr)
   at ABI.Microsoft.UI.Xaml.IFrameworkElementOverridesMethods.ArrangeOverride(IObjectReference _obj, Size finalSize)
   at Microsoft.UI.Xaml.FrameworkElement.ArrangeOverride(Size finalSize)
   at ABI.Microsoft.UI.Xaml.IFrameworkElementOverrides.Do_Abi_ArrangeOverride_1(IntPtr thisPtr, Size finalSize, Size* result)
--- End of stack trace from previous location ---
   at WinRT.ExceptionHelpers.<ThrowExceptionForHR>g__Throw|20_0(Int32 hr)
   at ABI.Microsoft.UI.Xaml.IFrameworkElementOverridesMethods.ArrangeOverride(IObjectReference _obj, Size finalSize)
   at Microsoft.UI.Xaml.FrameworkElement.ArrangeOverride(Size finalSize)
   at ABI.Microsoft.UI.Xaml.IFrameworkElementOverrides.Do_Abi_ArrangeOverride_1(IntPtr thisPtr, Size finalSize, Size* result)
--- End of stack trace from previous location ---
   at WinRT.ExceptionHelpers.<ThrowExceptionForHR>g__Throw|20_0(Int32 hr)
   at Microsoft.UI.Xaml.UIElement.Arrange(Rect finalRect)
   at Microsoft.Maui.Platform.WindowRootViewContainer.ArrangeOverride(Size finalSize)
   at ABI.Microsoft.UI.Xaml.IFrameworkElementOverrides.Do_Abi_ArrangeOverride_1(IntPtr thisPtr, Size finalSize, Size* result)

 

 

Xaml:

        <telerik:RadTreeView
            x:Name="treeview"
            Grid.Row="2"
            AutomationId="treeview"
            CheckBoxMode="None"
            ItemStyle="{StaticResource Key=TreeViewStyle1}"
            ItemsSource="{Binding SqlPlan.SparkPlanInfos}"
            LevelIndentation="10">
            <telerik:TreeViewDescriptor ItemsSourcePath="Children" TargetType="{x:Type models:SparkPlanInfo}" />
            <telerik:RadTreeView.ItemTemplate>
                <DataTemplate x:DataType="models:SparkPlanInfo">
                    <Grid ColumnDefinitions="auto,auto,*,auto">
                        <fluent:MauiIcon
                            Margin="-15,5,10,0"
                            Icon="{Binding NodeName, Converter={StaticResource SparkOperationToIconKey}, ConverterParameter='16', FallbackValue={x:Static fluent:FluentIcons.Accessibility16}}"
                            IconColor="Black"
                            IconSize="16" />
                        <Label
                            Grid.Column="1"
                            LineBreakMode="WordWrap"
                            Text="{Binding NodeName}"
                            VerticalOptions="Center" />
                        <Label
                            Grid.Column="2"
                            Margin="20,0"
                            HorizontalOptions="Start"
                            HorizontalTextAlignment="Start"
                            IsVisible="{Binding IsSimpleStringUnequalToNodeName}"
                            LineBreakMode="NoWrap"
                            MaximumWidthRequest="600"
                            Text="{Binding SimpleStringWithoutStartingNodeName}"
                            ToolTipProperties.Text="{Binding SimpleString}"
                            VerticalOptions="Center" />

                    </Grid>
                </DataTemplate>
            </telerik:RadTreeView.ItemTemplate>
        </telerik:RadTreeView>

 

 

    <ContentPage.Resources>
        <ResourceDictionary>
            <converters:SparkOperationToIconConverter x:Key="SparkOperationToIconKey" />

            <ControlTemplate x:Key="TreeViewTemplate1">
                <telerik:RadBorder
                    Padding="{TemplateBinding ContentPadding}"
                    BorderBrush="{TemplateBinding BorderBrush}"
                    BorderColor="{TemplateBinding BorderColor}"
                    BorderThickness="{TemplateBinding BorderThickness}"
                    CornerRadius="{TemplateBinding CornerRadius}">
                    <telerik:TreeViewItemLayout Indentation="{TemplateBinding Indentation}" Spacing="{TemplateBinding Spacing}">

                        <telerik:TreeViewItemExpandButton
                            Command="{TemplateBinding ToggleExpandedCommand}"
                            IsEnabled="{TemplateBinding IsEnabled}"
                            IsExpanded="{TemplateBinding IsExpanded}"
                            IsLeaf="{TemplateBinding IsLeaf}"
                            IsVisible="{TemplateBinding IsExpandButtonVisible}"
                            Style="{TemplateBinding ExpandButtonStyle}"
                            TextColor="{TemplateBinding TextColor}" />

                        <telerik:TreeViewItemCheckBox
                            IsChecked="{TemplateBinding IsChecked}"
                            IsEnabled="{TemplateBinding IsEnabled}"
                            IsVisible="{TemplateBinding IsCheckBoxVisible}"
                            Style="{TemplateBinding CheckBoxStyle}" />

                        <telerik:TreeViewItemImage
                            IsEnabled="{TemplateBinding IsEnabled}"
                            IsVisible="{TemplateBinding IsImageVisible}"
                            Source="{TemplateBinding ImageSource}"
                            Style="{TemplateBinding ImageStyle}" />

                        <!--  content presenter for presenting the (ItemTemplate/Text if itemtemplate is not used)  -->
                        <ContentPresenter />
                    </telerik:TreeViewItemLayout>
                </telerik:RadBorder>
            </ControlTemplate>

            <Style x:Key="TreeViewStyle1" TargetType="telerik:TreeViewItemView">
                <!--  control template can be defined through style  -->
                <Setter Property="ControlTemplate" Value="{StaticResource TreeViewTemplate1}" />
                <Setter Property="IsImageVisible" Value="True" />
            </Style>
        </ResourceDictionary>
    </ContentPage.Resources>
Didi
Telerik team
 answered on 14 Sep 2023
3 answers
96 views
Does the Maui TreeView control will have a method CheckItem(object item) like in xamarin TreeView?
Didi
Telerik team
 answered on 13 Sep 2023
1 answer
170 views

I simply installed the controls, created a new VS2022 project using the installed Project Template for the Configurable Wizard, then selected Blank Shell.

I can not run the sample app due to this error in the MauiProgram using statement.

using Telerik.Maui.Controls.Compatibility;

[assembly: XamlCompilation(XamlCompilationOptions.Compile)]

namespace TelerikMauiApp1
{
    public static class MauiProgram
    {
        public static MauiApp CreateMauiApp()
        {
            var builder = MauiApp.CreateBuilder();
            builder
                .UseTelerik()
                .UseMauiApp<App>()
                .ConfigureFonts(fonts =>
                {
                    fonts.AddFont("OpenSans-Regular.ttf", "OpenSansRegular");
                    fonts.AddFont("OpenSans-Semibold.ttf", "OpenSansSemibold");
                });

            return builder.Build();
        }
    }
}


Lance | Senior Manager Technical Support
Telerik team
 answered on 11 Sep 2023
1 answer
101 views

This is a follow-up question this question.

I followed the example provided for the question above in order to show a RadPopup programmatically from a ViewModel. However, I am running into a specific issue on iOS where the popup truncates the content at the bottom.

My CreatePopupContent method body looks like this:

private View CreatePopupContent() 
{    
    VerticalStackLayout stack = new VerticalStackLayout() 
    {
        Spacing = 10,
        Padding = new Thickness(20),
        HorizontalOptions = LayoutOptions.Center,
        VerticalOptions = LayoutOptions.Fill,
        BackgroundColor = /*(Color)Application.Current.Resources.GetValueOrNull("Gray100")*/ Colors.LightGray,
        WidthRequest = 350
    };

    Label titleLabel = new Label() 
    {
        Text = /*popupTitle*/"Lorum ipsum",
    };

    stack.Children.Add(titleLabel);

    Label messageLabel = new Label() 
    {
        Text = /*popupMessage*/ "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua."
    };

    stack.Children.Add(messageLabel);

    var dismiss = new Button { Text = "Ok", Command = this.ClosePopupCommand, CommandParameter= "Ok" };

    var lorum= new Button { Text ="Lorum", Command = this.ClosePopupCommand, CommandParameter = "Lorum" };
    var ipsum= new Button { Text =  "Ipsum", Command = this.ClosePopupCommand, CommandParameter =  "Ipsum" };

    stack.Children.Add(dismiss);
    stack.Children.Add(lorum);
    stack.Children.Add(ipsum);

    Border border = new Border()
    {
        StrokeShape = new RoundRectangle
        {
            CornerRadius = new CornerRadius(20)
        },
        Content = stack,
        VerticalOptions = LayoutOptions.Fill,
    };

    return border;
}
After the message label reaches a certain length, the popup begins to truncate the bottom-most buttons. If the message increases in length, the bottom-most buttons are clipped out entirely.

Is there any way to fix this or has anyone encountered this issue before? It's brand new to me.
Didi
Telerik team
 answered on 07 Sep 2023
1 answer
330 views

I am creating a music player app so what i want to automatically load all songs from phone or windows computer and display them in a listView so that I can use them to play from selecting them.

I am kind of a beginner :)

Thanks

Didi
Telerik team
 updated answer on 05 Sep 2023
Top users last month
Henri
Top achievements
Rank 2
Iron
Iron
Iron
SUNIL
Top achievements
Rank 2
Iron
Iron
Iron
David
Top achievements
Rank 1
Jackson
Top achievements
Rank 1
Iron
Iron
Tim
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?