Telerik Forums
UI for WPF Forum
0 answers
100 views
The RadWebCam for WPF control currently relies on the SharpDX library to render the video feed. With 2024 Q4 we will replace SharpDX with the SkiaSharp library. This decision was taken because the SharpDX library is no longer maintained since March 2019.


Martin Ivanov
Top achievements
Rank 1
 asked on 10 Sep 2024
0 answers
224 views

As of 2024 Q4 (November), we will deprecate the .NET 7 distribution. This decision is rooted in our dedication to align with Microsoft’s recommended framework versions so that our products leverage the latest advancements in technology, security, and performance.  

We are aligning our product with Microsoft’s lowest-supported framework versions for .NET Framework and .NET, respectively. Please refer to the following blog post: Product Update for Enhanced Performance and Security

For more information about how to upgrade your project when a new version of the Telerik UI for WPF suite is released, you can check here: Project Migration to .NET 4.6.2 and .NET 6

Martin Ivanov
Top achievements
Rank 1
 asked on 28 May 2024
0 answers
303 views

As of 2024 Q2, we will deprecate .NET Framework 4.0, .NET Framework 4.5, and .NET Core 3.1 distributions. This decision is rooted in our dedication to align with Microsoft’s recommended framework versions so that our products leverage the latest advancements in technology, security, and performance.

We are aligning our product with Microsoft’s lowest-supported framework versions for .NET Framework and .NET, respectively. Please refer to the following blog post:

Product Update for Enhanced Performance and Security (telerik.com)

For more information about how to upgrade your project's .NET Framework version, you can check the following MSDN article:

Migration Guide to .NET Framework 4.8, 4.7, and 4.6.2 - .NET Framework | Microsoft Learn


Stenly
Top achievements
Rank 1
 asked on 30 Jan 2024
1 answer
7 views

1. Go to the GridView | Filtering Configuration example in the Telerik WPF Demo app.

2. Choose Popup for Filtering Mode.

3. Open filtering for Company Name.

4. Alt-Tab to another app window.

5. Observe as filter window appears on top of the app's window.

Is this expected behaviour?

Martin Ivanov
Telerik team
 answered on 29 Apr 2025
0 answers
10 views

Hello

Please check the attached file: contextmenu.png
I want the 1st row icon column to have Padding=0,0 and Margin=0,0,0,0

Waiting for your reply

anna
Top achievements
Rank 1
Bronze
Iron
 updated question on 28 Apr 2025
2 answers
10 views

Hi,

how can we hide the Navigation Options from the RadOfficeNavigationBar?

<telerik:RadOfficeNavigationBar>
    <telerik:RadOfficeNavigationBarItem Content="{lex:Loc Key=EditCommandText}" 
                                        Command="{Binding EditCommand}" >
        <telerik:RadOfficeNavigationBarItem.Style>
            <Style TargetType="telerik:RadOfficeNavigationBarItem">
                <Setter Property="Visibility" Value="Visible" />
                <Style.Triggers>
                    <DataTrigger Binding="{Binding FormMode}" Value="{x:Static tim:FormMode.Modify}">
                        <Setter Property="Visibility" Value="Collapsed" />
                    </DataTrigger>
                </Style.Triggers>
            </Style>
        </telerik:RadOfficeNavigationBarItem.Style>
    </telerik:RadOfficeNavigationBarItem>
    <telerik:RadOfficeNavigationBarItem Content="{lex:Loc Key=SaveCommandText}" 
                                        Command="{Binding SaveCommand}" >
        <telerik:RadOfficeNavigationBarItem.Style>
            <Style TargetType="telerik:RadOfficeNavigationBarItem">
                <Setter Property="Visibility" Value="Collapsed" />
                <Style.Triggers>
                    <DataTrigger Binding="{Binding FormMode}" Value="{x:Static tim:FormMode.Modify}">
                        <Setter Property="Visibility" Value="Visible" />
                    </DataTrigger>
                </Style.Triggers>
            </Style>
        </telerik:RadOfficeNavigationBarItem.Style>
    </telerik:RadOfficeNavigationBarItem>
    <telerik:RadOfficeNavigationBarItem Content="{lex:Loc Key=CancelCommandText}" 
                                        Command="{Binding CancelCommand}" >
        <telerik:RadOfficeNavigationBarItem.Style>
            <Style TargetType="telerik:RadOfficeNavigationBarItem">
                <Setter Property="Visibility" Value="Collapsed" />
                <Style.Triggers>
                    <DataTrigger Binding="{Binding FormMode}" Value="{x:Static tim:FormMode.Modify}">
                        <Setter Property="Visibility" Value="Visible" />
                    </DataTrigger>
                </Style.Triggers>
            </Style>
        </telerik:RadOfficeNavigationBarItem.Style>
    </telerik:RadOfficeNavigationBarItem>
</telerik:RadOfficeNavigationBar>

Regards,

Andreas

Andreas
Top achievements
Rank 1
Iron
 answered on 28 Apr 2025
1 answer
12 views
We build using the Telerik UI for WPF NuGet Packages from your NuGet server.  Since I updated all our Telerik NuGet package references from a 2024 version to the most current 2025 version, I am now receiving licensing messages during my build process.  A lot of licensing messages.  They tend to look like this:


17>[Telerik and Kendo UI Licensing]
17>      Telerik and Kendo UI License Key found at: C:\Users\joe\AppData\Roaming\Telerik\telerik-license.txt (UserDirectory)
17>      License issued at 2025-02-25 to j*******@g*******.com.
17>[Telerik and Kendo UI Licensing]

And they are all over the place.

Please tell me that there is a way that I can silence these messages

They make it more difficult to locate the build output lines that I am truly interested in.  I don't need this information but if it must be output I don't need it this many times.
Martin Ivanov
Telerik team
 answered on 28 Apr 2025
1 answer
14 views

Hello

Question  about ===> public ControlTemplate SeparatorTemplateKey {get;set}

 

I don't know how to use (public ControlTemplate SeparatorTemplateKey {get;set}

). Please teach me.
I don't know how to use (public ControlTemplate SeparatorTemplateKey {get;set}

), so it's very difficult for me.

 

 

<Window.Resources
        <ControlTemplate x:Key="SeparatorTemplate" TargetType="telerik:RadMenuItem"
            <Grid HorizontalAlignment="Stretch">                 
                    <Rectangle Fill="Red" Height="20" Width="1" VerticalAlignment="Stretch"/> 
                    <Rectangle Fill="Blue" Height="20" Width="1" VerticalAlignment="Stretch"/>               
            </Grid
        </ControlTemplate>   
</Window.Resources>     
    
<Grid x:Name="LayoutRoot" Background="White"
        <telerik:RadMenu x:Name="radMenu" ClickToOpen="False" VerticalAlignment="Top" HorizontalAlignment="Left" Margin="8,8,0,0"
            <telerik:RadMenuItem Header="File"/> 
            <telerik:RadMenuItem Header="Edit" IsSeparator="True" Template="{StaticResource SeparatorTemplate}" />              
            <telerik:RadMenuItem Header="View" />            
        </telerik:RadMenu

</Grid>

 

 

--------

using System.Windows.Controls;
public override ObservableCollection<MenuItem> GetMenu()
{
    var contextmenuitem = new ObservableCollection<MenuItem>(); 
    var eRNode = crateMenuItem("Report");
    eRNode.Items.Add(createMenuItem("Sub"));
  
    contextmenuitem.Add(Separate); <===
    ControlTemplate template = new ControlTemplate();
    template.key = "Tamplate";
    contextmenuitem.Add(SeparatorTemplateKey(template)); <===ControlTemplate x:Key="Template" OF XAML.xaml File .... <==I don't know grammar. How do I write code?
    contextmenuitem.Add(eRNode);
}

 

 

 

 

Martin Ivanov
Telerik team
 answered on 28 Apr 2025
1 answer
13 views

I'm looking for a generic solution for handling a common issue with RadNumericUpDown. When binding the Value property to a double (non-nullable) and the user clears the input (e.g., with Backspace), the control throws a "value cannot be converted" error.

I'm aware that changing the bound property to a double? would resolve this, but in my case, this is not feasible across the entire application due to the extensive refactoring it would require in legacy code.

 

As a senior WPF developer, I prefer generic solutions that can be applied globally—such as using an attached property via styles—so the fix can be inherited by all RadNumericUpDown instances.


I've considered using FallbackValue or TargetNullValue, but these aren't suitable as they require changes to each individual binding and would assign a default value, which is not ideal.


Since the value in the ViewModel doesn't actually change when the conversion fails, it seems reasonable to simply suppress the error and let the control revert to the source value.


Is there a way to implement an attached property that can detect this conversion failure and handle it gracefully—possibly by resetting the control’s value to the bound property from the DataContext?


Any suggestions or sample code would be greatly appreciated.


Thanks!

Dimitar
Telerik team
 answered on 25 Apr 2025
0 answers
19 views

WPF, RadContextMenu

Is there a way to display different colors in the RadContextMenu ?

Display RadContextMenu various colors based on the Separator of RadContextMenu.

In RadContextMenu,

Also, can you set the image margin(or icon margin) to 0?

Please check the attached file : RadContextMenu2WPF.png, RadContextMenu1WPF.png

anna
Top achievements
Rank 1
Bronze
Iron
 asked on 17 Apr 2025
Narrow your results
Selected tags
Tags
+? more
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Krasimir
Top achievements
Rank 3
Iron
Iron
Iron
Shawn
Top achievements
Rank 1
Iron
Javier
Top achievements
Rank 1
Iron
Jean-François
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Krasimir
Top achievements
Rank 3
Iron
Iron
Iron
Shawn
Top achievements
Rank 1
Iron
Javier
Top achievements
Rank 1
Iron
Jean-François
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?