Telerik Forums
UI for WPF Forum
1 answer
185 views

Hi,

I am using the RadRadialMenu to navigate a dynamically built structure (arbitrary depth, arbitrary width) - I know the width can become an issue as item sectors can become very small, but this is contained.

It works really great and the users love it, but each time the menu refreshes it eats up memory that does not get released again.

If I strip out the actual building of the RadialMenuItems (custom class RadialMenuItemVM that implements IRadialMenuItem) then there is no build-up of memory.

I have created a small demo app that resembles the full app but with a very limited structure and content. On refreshing the menuitems the memory usage in VisualStudio diagnostic session starts to grow. With the limited size of the structure, the memory growth is slow, but it is definitely noticeable after a number of refreshes.

The one thing that I did notice is that the destructor of the RadialMenuItemVM instances only gets called upon closing the window. There seems to be a sticky reference that keeps them alive until the actual radial menu is destroyed.

Sample Project attached. Note that I have removed Telerik lib contents to reduce size so references might require updating

Dilyan Traykov
Telerik team
 answered on 23 Dec 2021
1 answer
514 views
I am working on Conversational UI and made a chat application , where we can chat with multiple users by maintaining a dictionary .&nbsp; Key is the user and value is the ChatViewModel having a ObservableCollection&lt;MessageBase&gt; and Author. Its is working properly but I want to store the messages in the database and When we select another to chat with , the previous messages stored in database will be display in the chatwindow and we can continue chatting. &nbsp; <br />
Martin Ivanov
Telerik team
 answered on 23 Dec 2021
1 answer
623 views

Hello,

In my application I try to change the colors from Fluent theme globaly. Unfortunately it seems my changes are ignored. I'm wondering what I'm doing wrong.

To exclude any side effect related to my application I created a new WPF program (.Net Core 5) that just contains a Splash screen and a NavigationView to check if the theme settings are applied. Source code of this test program is attached.

Steps I did to change the theme:

1: I set Fluent theme as the theme of the application (according to Setting a theme using stylemanager). This works fine. Splashscreen and NavigationView appear in Fluent theme.

2: I used color theme generator (Color theme generator) to adapt the colors and copied generated code to clipboard. Pasted the code next to theme setting from 1 (tried both, before and after setting theme)

The settings are done in App.xaml.cs. My test change to Fluent theme is that I change every color to red. When I execute the program, Fluent theme looks normal (blue color, See screenshots). My expectation was that I see a lot of red.

This is the code how I try to adapt the theme:

namespace TelerikStyle
{
    /// <summary>
    /// Interaction logic for App.xaml
    /// </summary>
    public partial class App : Application
    {
        protected override void OnStartup(StartupEventArgs e)
        {
            base.OnStartup(e);

            // Set the theme
            SetTheme();

            // Show dummy splash screen
            var dataContext = (SplashScreenDataContext)RadSplashScreenManager.SplashScreenDataContext;
            dataContext.Content = "Loading Application";
            dataContext.Footer = "";
            RadSplashScreenManager.Show();
            Thread.Sleep(5000);
            RadSplashScreenManager.Close();
        }

        private void SetTheme()
        {
            StyleManager.ApplicationTheme = new FluentTheme();

            FluentPalette.Palette.AccentColor = (Color)ColorConverter.ConvertFromString("#FFFF0000");
            FluentPalette.Palette.AccentFocusedColor = (Color)ColorConverter.ConvertFromString("#FFFF0000");
            FluentPalette.Palette.AccentMouseOverColor = (Color)ColorConverter.ConvertFromString("#FFFF0000");
            FluentPalette.Palette.AccentPressedColor = (Color)ColorConverter.ConvertFromString("#FFFF0000");
            FluentPalette.Palette.AlternativeColor = (Color)ColorConverter.ConvertFromString("#FFFF0000");
            FluentPalette.Palette.BasicColor = (Color)ColorConverter.ConvertFromString("#FFFF0000");
            FluentPalette.Palette.BasicSolidColor = (Color)ColorConverter.ConvertFromString("#FFFF0000");
            FluentPalette.Palette.ComplementaryColor = (Color)ColorConverter.ConvertFromString("#FFFF0000");
            FluentPalette.Palette.IconColor = (Color)ColorConverter.ConvertFromString("#FFFF0000");
            FluentPalette.Palette.MainColor = (Color)ColorConverter.ConvertFromString("#FFFF0000");
            FluentPalette.Palette.MarkerColor = (Color)ColorConverter.ConvertFromString("#FFFF0000");
            FluentPalette.Palette.MarkerInvertedColor = (Color)ColorConverter.ConvertFromString("#FFFF0000");
            FluentPalette.Palette.MarkerMouseOverColor = (Color)ColorConverter.ConvertFromString("#FFFF0000");
            FluentPalette.Palette.MouseOverColor = (Color)ColorConverter.ConvertFromString("#FFFF0000");
            FluentPalette.Palette.PressedColor = (Color)ColorConverter.ConvertFromString("#FFFF0000");
            FluentPalette.Palette.PrimaryBackgroundColor = (Color)ColorConverter.ConvertFromString("#FFFF0000");
            FluentPalette.Palette.PrimaryColor = (Color)ColorConverter.ConvertFromString("#FFFF0000");
            FluentPalette.Palette.PrimaryMouseOverColor = (Color)ColorConverter.ConvertFromString("#FFFF0000");
            FluentPalette.Palette.ReadOnlyBackgroundColor = (Color)ColorConverter.ConvertFromString("#FFFF0000");
            FluentPalette.Palette.ReadOnlyBorderColor = (Color)ColorConverter.ConvertFromString("#FFFF0000");
            FluentPalette.Palette.ValidationColor = (Color)ColorConverter.ConvertFromString("#FFFF0000");
            FluentPalette.Palette.DisabledOpacity = 0.3;
            FluentPalette.Palette.InputOpacity = 0.6;
            FluentPalette.Palette.ReadOnlyOpacity = 0.5;
        }
    }
}

 

Any ideas what I miss?

Thanks and Regards

Philipp

Martin Ivanov
Telerik team
 answered on 22 Dec 2021
1 answer
737 views

Hello,

The leftmost column of my RadGridView has cells containing a "Save" button (a disk icon you can click).

I want users to be able to click on that Save button but not on the cell itself, nor the column, because it's kinda pointless.

I tried setting IsReadOnly to true and IsEnabled to false on this GridViewColumn but it doesn't help!

Thanks for your answer!

Martin Ivanov
Telerik team
 answered on 22 Dec 2021
0 answers
454 views

We are updating to Telerik.Windows.Controls.GridView 2021.2.615.45.

The methods "ScrollIntoViewAsync" and "ScrollIndexIntoViewAsync" are not working as expected, in the case that a row would be partially visible:

 

As you see in the above screenshot - we insert a new row with "BeginInsert" and set the new row visible. Even if we call "ScrollIntoView" the row is not fully visible as expected.

The bug is located in FlatLayoutStrategy.IsRowInViewPort:

As you can see in the screen above, the logic only checks if the beginning of the row is visible - but not the full row.

Comparing it to Telerik.Windows.Controls.GridView 2014.1.331.45 - the logic worked as expected - see here:

With this old logic, the row is fully scrolled into viewport.

Can you fix this logic or give me a workaround?

 

 

corner4
Top achievements
Rank 1
 asked on 21 Dec 2021
1 answer
135 views
I am using RadCartesianChart with ChartSeriesProvider.
I have several lines.
I want to show the vertical axis on the left and right, like in the example:

https://docs.telerik.com/devtools/wpf/controls/radchartview/axes/multipleaxes#multiple-axes-and-seriesprovider - it does not provide a solution to my problem. I need a common vertical axis for all lines

 

Thank you

Dilyan Traykov
Telerik team
 answered on 21 Dec 2021
1 answer
89 views

Is it possible to set a custom ‘Search as You Type’ style on the highlighted grid cells?

I have some users that are color blind and can’t read the highlighted cells, to be honest, I find the red text hard to read myself and I’m not color blind.

See attached screenshot. 

Thanks,

Richard

Stenly
Telerik team
 answered on 21 Dec 2021
1 answer
203 views

Is it possible to add resize handles to a RadDiagramShape object, so it would look something like this?

Stenly
Telerik team
 answered on 21 Dec 2021
1 answer
203 views

Hi there,

we have a customized RadDiagram which seems to have a step of 20 when resizing. (I do not know where this is set).

Now we want to resize to the exact bounds of the shapes when resizing when near a delta to the bounds of a shape.

The use case is that a placeholder shape may contain other shapes (not a shape container) and when resizing we do not catch the borders because of the stepping.

When not near a border of another shape the default steps of 20 should be used.

I think the ResizingService could help us - but I do not understand how it works.

Thank you on advance,

Andi

Petar Mladenov
Telerik team
 answered on 21 Dec 2021
2 answers
169 views

I created a simple grid with a GridViewDataColumn bound to a DateTime property.

        <telerik:GridViewDataColumn DataMemberBinding="{Binding Date}" DataFormatString="{} {0:dd.MM.yyyy}"/>

Using Office2019 Theme (NoXaml packages), when the picker area is expanded, cell area is empty, no current date value visible while modifying the picker:

It seems to be "white on white", this appears when you select the cell areas where the date parts should be located:

The date shows up as expected after leaving the cell.

Switching to Office2016 Theme, everything is fine:

This might be an issue with the specific Theme

Thanks,

Jens


Masha
Telerik team
 answered on 17 Dec 2021
Narrow your results
Selected tags
Tags
GridView
General Discussions
Chart
RichTextBox
Docking
ScheduleView
ChartView
TreeView
Diagram
Map
ComboBox
TreeListView
Window
RibbonView and RibbonWindow
PropertyGrid
DragAndDrop
TabControl
TileView
Carousel
DataForm
PDFViewer
MaskedInput (Numeric, DateTime, Text, Currency)
AutoCompleteBox
DatePicker
Buttons
ListBox
GanttView
PivotGrid
Spreadsheet
Gauges
NumericUpDown
PanelBar
DateTimePicker
DataFilter
Menu
ContextMenu
TimeLine
Calendar
Installer and Visual Studio Extensions
ImageEditor
BusyIndicator
Expander
Slider
TileList
PersistenceFramework
DataPager
Styling
TimeBar
OutlookBar
TransitionControl
FileDialogs
Book
ToolBar
ColorPicker
TimePicker
MultiColumnComboBox
SyntaxEditor
VirtualGrid
Wizard
ExpressionEditor
NavigationView (Hamburger Menu)
WatermarkTextBox
DesktopAlert
BarCode
SpellChecker
DataServiceDataSource
EntityFrameworkDataSource
RadialMenu
ChartView3D
Data Virtualization
BreadCrumb
ProgressBar
Sparkline
LayoutControl
TabbedWindow
ToolTip
CloudUpload
ColorEditor
TreeMap and PivotMap
EntityFrameworkCoreDataSource (.Net Core)
HeatMap
Chat (Conversational UI)
VirtualizingWrapPanel
Calculator
NotifyIcon
TaskBoard
TimeSpanPicker
BulletGraph
Licensing
WebCam
CardView
DataBar
FilePathPicker
PasswordBox
Rating
SplashScreen
Accessibility
Callout
CollectionNavigator
Localization
AutoSuggestBox
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Edmond
Top achievements
Rank 1
Iron
fabrizio
Top achievements
Rank 2
Iron
Veteran
RobMarz
Top achievements
Rank 2
Iron
Fakhrul
Top achievements
Rank 1
Iron
Tejas
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Edmond
Top achievements
Rank 1
Iron
fabrizio
Top achievements
Rank 2
Iron
Veteran
RobMarz
Top achievements
Rank 2
Iron
Fakhrul
Top achievements
Rank 1
Iron
Tejas
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?