Telerik Forums
UI for .NET MAUI Forum
2 answers
170 views

I am getting a clang ++ error when I add the Manu.Trial  version 6.1.0 and 6.2.0.

This occurs when using a simulator.  I am using a Macbook Pro, M2 Pro cpu.  It does not appear when running on hardware.

 

Any ideas on how to get this working?

 

Severity Code Description Project File Line Suppression State
Error clang++ exited with code 1:
ld: in /Users/userName/Library/Caches/Xamarin/mtbs/builds/MauiApp2/4cc154242c3d4d77ad8031d409c8191c8e21f5229295558069000613a59d123b/obj/Debug/net8.0-ios/iossimulator-arm64/linker-cache/TelerikUI.a(TKChartAnnotation.o), building for iOS Simulator, but linking in object file built for iOS, file '/Users/userName/Library/Caches/Xamarin/mtbs/builds/MauiApp2/4cc154242c3d4d77ad8031d409c8191c8e21f5229295558069000613a59d123b/obj/Debug/net8.0-ios/iossimulator-arm64/linker-cache/TelerikUI.a'
clang: error: linker command failed with exit code 1 (use -v to see invocation) MauiApp2 C:\Program Files\dotnet\packs\Microsoft.iOS.Sdk\16.4.8825-net8-rc1\targets\Xamarin.Shared.Sdk.targets 1589
Chris
Top achievements
Rank 1
Iron
 updated answer on 28 Sep 2023
1 answer
1.2K+ views

Hey there,

I am using Telerik UI for my MAUI mobile application.

The only component i am currentyl using is the RadCalendar at .NET MAUI Calendar Documentation - Getting Started - Telerik UI for .NET MAUI

Currently the android version works flawlessly, but when i try to run the simulator on IOS, the simulator crashes with this error; 

Severity Code Description Project File Line Suppression State
Error clang++ exited with code 1:
ld: in /Users/user999999/Library/Caches/Xamarin/mtbs/builds/MedewerkersApp/19815057d8f14eca6f8ead78220059f52ec430fa301f2c67a1834144ed4e811f/obj/Debug/net7.0-ios/iossimulator-x64/linker-cache/TelerikUI.a(TKChartAnnotation.o), building for iOS Simulator, but linking in object file built for iOS, file '/Users/user999999/Library/Caches/Xamarin/mtbs/builds/MedewerkersApp/19815057d8f14eca6f8ead78220059f52ec430fa301f2c67a1834144ed4e811f/obj/Debug/net7.0-ios/iossimulator-x64/linker-cache/TelerikUI.a' for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation) MedewerkersApp C:\Program Files\dotnet\packs\Microsoft.iOS.Sdk\16.4.7098\targets\Xamarin.Shared.Sdk.targets 1274
Lance | Senior Manager Technical Support
Telerik team
 answered on 27 Sep 2023
0 answers
114 views

Hi.

When we set the DayViewSettings DayStartTime and DayEndTime in runtime on appointments changes for a day, the RadCalendar control behaves strange, jumping from day to day.

   TimeSpan dayStartTime = todayAppointments.Min(next => next.StartDate.TimeOfDay);
                    TimeSpan dayEndTime = todayAppointments.Min(next => next.EndDate.TimeOfDay);
                    calendar.DayViewSettings.DayStartTime
                        = calendar.MultiDayViewSettings.DayStartTime
                        = dayStartTime > defaultDayStartTime ? defaultDayStartTime : dayStartTime;
                    calendar.DayViewSettings.DayEndTime
                        = calendar.MultiDayViewSettings.DayEndTime
                        = dayEndTime > defaultDayEndTime ? dayEndTime : defaultDayEndTime;

Didi
Telerik team
 updated question on 27 Sep 2023
1 answer
204 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
246 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
552 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
2.2K+ 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
241 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
455 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
180 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
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?