Telerik Forums
UI for WPF Forum
0 answers
63 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
0 answers
13 views

In my code I have a implemented method which in some cases can append new text for existing archive entry. But when I tried this code it gives me a System.ArgumentException: 'An item with the same key has already been added. Key: dir/file.csv'. This exception occurs in situations when given entryName will be something like this 'dir//file.csv''.  This small difference does not allow archive.GetEntry(entryName) return something else then null.

public void Insert(Stream stream, string entryName, bool append = false)
{
    using var baseStream = FileSystem.FileStream.New(ArchivePath, FileMode.Open, FileAccess.ReadWrite);
    using var archive = new ZipArchive(baseStream, ZipArchiveMode.Update, false, null, compressionSettings, encryptionSettings);

    var entry = archive.GetEntry(entryName); // null
    var entryStream = append
        ? entry?.Open() ?? archive.CreateEntry(entryName).Open() //exception cause already exists
        : archive.CreateEntry(entryName).Open(); 
    stream.Position = 0;
    if (append) entryStream.Seek(0, SeekOrigin.End);
    stream.CopyTo(entryStream);
    entryStream.Flush();
}

 

 

Kostiantyn
Top achievements
Rank 1
Iron
 asked on 06 Feb 2024
1 answer
73 views

I am learning game programming  in C# with WPF using MSVS-2022.

 For this MSVS-2022 offers two types of project:

WPF Application
A project creating a .NET WPF Application
and
WPF App (.NET Framework)
Windows Presentation Foundation client application

 

I googles these and still cannot figure out what is the difference - they both are for WPF application,

Which one is more suitable for game programming?

And will the code written using WPF Application  - could it be copied to a WPF App (.NET Framework) and run without corrections?

Dimitar
Telerik team
 answered on 05 Feb 2024
1 answer
24 views

Hello, telerik,

I tried to upgrade my old WPF apps from 2021 R3 to 2023 R3, which was based on .NET 5.0.

When running the upgrade wizrad, it says that no Telerik project found,though there are 45 projects.

OTOH my old WPF apps which has been made on .net 4.6 upgraded to 2023 R3 without problem.

So, I opened C:\Program Files (x86)\Progress\Telerik UI for WPF R3 2023\binaries folder,

but there are every .net version dll folders except .NET 5.0.

Is .NET 5.0 not supported any more or something I forget to read  ?

 

thanks.

Kang


Stenly
Telerik team
 answered on 20 Nov 2023
1 answer
31 views

Hi

I attached a simple program that import a html file (with format and images) and export it.
The exported file is very different from the original, without format and without images.

Thank you 

Luigi

Vladislav
Telerik team
 updated answer on 16 Nov 2023
0 answers
38 views
I have an application where it contains a RadPane. When the user hover overs the pane, it opens up a RadGridView which contains a list. When the pane is pinned, user can click on the GridView and work with it. However when the pane is unpinned, Pane closes on clicking the RadGridView. The expectation is that, it should work exactly like the pinned RadPane.



Tried adding a CustomFlyoutBehavior which implements IFlyoutBehavior and tried working with OnPaneDeactivated, but the event is not getting hit when the RadPane closes on clicking the GridView. 

Thanks in advance.
Nikhil
Top achievements
Rank 1
 updated question on 30 Oct 2023
1 answer
51 views
Hello, Im using a MultiColumnComboBox and I was wondering if there is a way to click anywhere in the combobox and open the dropdown? I tried combobox.OpenDropdown on GotFocus() but it didn't work. Currently it only opens the dropdown if I click in the button or OpenDropDownOnInput, but there is still a big blank space that does nothing if I click.
Dinko
Telerik team
 answered on 04 Oct 2023
0 answers
50 views

Good day. I have functionality in my WPF application that allows the user to change the font size, font style, and theme variations at runtime, see code below. This functions perfectly when it works. 

 

The issue I am having is that when making changes to these values at runtime, the changes intermittently stop being applied. The way I understand theming is that I should be able to make these changes at runtime and they are automatically applied. Something is getting borked up causing the changes to stop being applied during runtime.

 

C#, WPF .NET 6

Theme: Office 2019

Telerik Version: 2023.1.117

I'm using the package Telerik.UI.Wpf.NetCore.Xaml for all controls. Theme packages come from No XAML.

 

// Theme Color Variation// High Contrast
Office2019Palette.LoadPreset(Office2019Palette.ColorVariation.HighContrast);

// Dark/Light Mode
if (RegistryHelper.IsWindowsDarkMode())
    Office2019Palette.LoadPreset(Office2019Palette.ColorVariation.Dark);
else
    Office2019Palette.LoadPreset(Office2019Palette.ColorVariation.Light);


// Change Font Family
Office2019Palette.Palette.FontFamily = new FontFamily(Settings.Default.FontFamily);


// Font Size
Telerik.Windows.Controls.Office2019Palette.Palette.FontSizeS = 10;
Telerik.Windows.Controls.Office2019Palette.Palette.FontSize = 12;
Telerik.Windows.Controls.Office2019Palette.Palette.FontSizeL = 14;

 

App.xaml for Telerik:

<prism:PrismApplication x:Class="Wpf.App"
                        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                        xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
                        xmlns:prism="http://prismlibrary.com/">
    <Application.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>

                <!-- Telerik -->
                <ResourceDictionary Source="/Telerik.Windows.Themes.Office2019;component/Themes/System.Windows.xaml" />
                <ResourceDictionary Source="/Telerik.Windows.Themes.Office2019;component/Themes/Telerik.Windows.Controls.xaml" />
                <ResourceDictionary Source="/Telerik.Windows.Themes.Office2019;component/Themes/Telerik.Windows.Controls.Input.xaml" />
                <ResourceDictionary Source="/Telerik.Windows.Themes.Office2019;component/Themes/Telerik.Windows.Controls.Navigation.xaml" />

            </ResourceDictionary.MergedDictionaries>
        </ResourceDictionary>
    </Application.Resources>
</prism:PrismApplication>

 

Justin
Top achievements
Rank 2
Iron
 updated question on 20 Sep 2023
1 answer
84 views

Our organization has an app that we're porting from .NET/WPF to React. We have several grids, that utilize this:

```

using System;
using System.Collections.Generic;
using System.Data;
using System.Drawing;
using System.Windows.Forms;
using Telerik.WinControls;
using System.Configuration;
using System.Data.SqlClient;
using Telerik.WinControls.UI;
using Telerik.WinControls.Data;
using System.Data.OleDb;
using System.Linq;
using System.Threading.Tasks;
using System.Web.UI.WebControls;

using System.ComponentModel;

```

Instead, I'd like to use KendoReact.

Before I rewrite the entire thing in NextJS/KendoReact, are there some tools and techniques that I could use to save time?

Martin Ivanov
Telerik team
 answered on 15 Sep 2023
1 answer
30 views

Hi,
I use windows8 theme but I need to make more clear the accent color without change the header color.
In other themes (for instance, Visual studio 2019) this option is allowed.Thank you

Luigi

Masha
Telerik team
 answered on 12 Sep 2023
Narrow your results
Selected tags
Tags
+? more
Top users last month
horváth
Top achievements
Rank 2
Iron
Iron
Steve
Top achievements
Rank 2
Iron
Erkki
Top achievements
Rank 1
Iron
Mark
Top achievements
Rank 2
Iron
Iron
Veteran
Jakub
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
horváth
Top achievements
Rank 2
Iron
Iron
Steve
Top achievements
Rank 2
Iron
Erkki
Top achievements
Rank 1
Iron
Mark
Top achievements
Rank 2
Iron
Iron
Veteran
Jakub
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?