Telerik Forums
UI for WinUI Forum
1 answer
240 views
Hi,

Load the sample app, it generates: Error HRESULT E_FAIL has been returned from a call to a COM component.

I have the same in a UWP app and it works perfectly.

<grid:RadDataGrid
            x:Name="DataGrid"
            Grid.Row="1"
            AutoGenerateColumns="True"
            Background="#f0f0f0"
            BorderThickness="0"
            FrozenColumnCount="4"
            GridLinesThickness="1"
            GridLinesVisibility="Horizontal"
            Margin="0,16,0,0"
            SelectionMode="None"
            UserColumnReorderMode="None"
            UserFilterMode="Disabled"
            UserGroupMode="Disabled">
            <grid:RadDataGrid.Commands>
                <powerNumbers:PowerNumbersAutoGenerateCommand />
            </grid:RadDataGrid.Commands>
        </grid:RadDataGrid>
Lance | Senior Manager Technical Support
Telerik team
 answered on 12 Jul 2022
2 answers
288 views

This works:

<Window
    x:Class="xxxxxx"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:telerik="using:Telerik.UI.Xaml.Controls" 
    mc:Ignorable="d">
    <Grid>
        <TabView>
            <TabView.TabItems>
                <TabViewItem Header="CMD Prompt"/>
                <TabViewItem Header="PowerShell"/>
                <TabViewItem Header="Windows Subsystem for Linux"/>
            </TabView.TabItems>
        </TabView>
    </Grid>
</Window>


This does not due to the following. Using all of the latest nuget packages (2.0). I suspect it is related to being in a Window vs a control:

Microsoft.UI.Xaml.Markup.XamlParseException
  HResult=0x802B000A
  Message=XAML parsing failed.
  Source=WinRT.Runtime
  StackTrace:
   at WinRT.ExceptionHelpers.<ThrowExceptionForHR>g__Throw|20_0(Int32 hr)

<Window
    x:Class="xxxxxx"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:telerik="using:Telerik.UI.Xaml.Controls" 
    mc:Ignorable="d">
    <Grid>
        <telerik:RadTabControl>
            <telerik:RadTabControl.Items>
                <telerik:RadTabItem Header="Tab 1" Content="The content of tab item 1"/>
                <telerik:RadTabItem Header="Tab 2" Content="The content of tab item 2"/>
                <telerik:RadTabItem Header="Tab 3" Content="The content of tab item 3"/>
                <telerik:RadTabItem Header="Tab 4" Content="The content of tab item 4"/>
            </telerik:RadTabControl.Items>
        </telerik:RadTabControl>
    </Grid>
</Window>

Alan
Top achievements
Rank 1
Iron
Iron
Iron
 answered on 18 May 2022
0 answers
301 views

Error NU1202 Package Telerik.WinUI.Controls 1.2.0 is not compatible with net6.0 (.NETCoreApp,Version=v6.0). Package Telerik.WinUI.Controls 1.2.0 supports:
  - net5.0-windows10.0.19041 (.NETCoreApp,Version=v5.0)
  - uap10.0 (UAP,Version=v10.0)

 

Is the above true? I am using 1.2 via nuget. Is that correct?

Alan
Top achievements
Rank 1
Iron
Iron
Iron
 asked on 29 Apr 2022
1 answer
127 views

So I was looking at the bits and I see three different sets of Binaries for the WinUI set.  What is the difference?

Sincerely,

Keith

Dilyan Traykov
Telerik team
 answered on 29 Apr 2022
1 answer
257 views

Ok so I have started a new project from the template and this is my XAML code#

I am getting the following error and cannot work out why ?

WMC0035 Duplication assignment to the 'Content' property of the 'Window'

WMC9997 There are multiple root elements. Line 21, position
<Window
    x:Class="Megasync_EAB.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="ListViewBasicSample">
    <Grid>
        <ListView
        x:Name="BaseExample"
        ItemTemplate="{StaticResource ContactListViewTemplate}"
        BorderThickness="1"
        BorderBrush="{ThemeResource SystemControlForegroundBaseMediumLowBrush}"
        Width="350"
        Height="400"
        HorizontalAlignment="Left"/>
    </Grid>

</Window>

<DataTemplate x:Key="ContactListViewTemplate" x:DataType="local:MegaData">
    <TextBlock Text="{x:Bind Name}" x:Phase="1" Margin="0,5,0,5"/>
</DataTemplate>


Lance | Senior Manager Technical Support
Telerik team
 answered on 13 Apr 2022
1 answer
163 views

Hi,

Any idea when we can expect the excel export functionality in Telerik WinUI?

 

Thanks

Stenly
Telerik team
 answered on 11 Feb 2022
1 answer
645 views

 

dear sir

I can't be executed in the unpackage mode.

 

 

 

Dilyan Traykov
Telerik team
 answered on 25 Jan 2022
1 answer
773 views

I can't launch any app because the code below shows this error: System.ComponentModel.Win32Exception: 'Access Denied'

var process = Process.Start(@"C:\foo.exe");

 

Lance | Senior Manager Technical Support
Telerik team
 answered on 12 Jan 2022
1 answer
194 views

Hi Team,

I want to integrate Telerik DataGrid for the report module on my project. I want to group the particular field and perform sorting operations. Is it possible in this Library and If yes please provide the sample UWP for this.

 

Thanks, Regards

Kiran Kumar Maharana

Lance | Senior Manager Technical Support
Telerik team
 updated answer on 07 Jan 2022
1 answer
230 views
Is there a way to change the row height when the data for a column is multiline?  Not every row has multiline so I don't want to use the RowHeight property.  I can use a flyout to display the data, as in the attached screenshot,  but I'd really rather have it directly in the grid.  I'm using a textblock control inside a template column.  I had it working in using the Community Toolkit datagrid but when I switched to the Telerik version, I haven't been able to figure it out. 
Dilyan Traykov
Telerik team
 answered on 08 Dec 2021
Top users last month
Mila
Top achievements
Rank 1
Iron
Toya
Top achievements
Rank 1
Iron
Iron
Kyle
Top achievements
Rank 1
Omar
Top achievements
Rank 3
Iron
Iron
Iron
Les Baker
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?