Telerik Forums
UI for WPF Forum
1 answer
13 views
The performance needs to be improved, it takes more than 15 seconds to open an xml file with more than 30,000 lines when using the First Look sample.
Dimitar
Telerik team
 answered on 01 Nov 2023
1 answer
14 views

Hi,

Would it be possible to have an editable RadMasked Part to mimic the RadWatermarkTextBox with floating Label?

Stenly
Telerik team
 answered on 31 Oct 2023
0 answers
18 views

Hello everyone,

 

in my application I have 2 different usercontrol. In first ine I have a RadTileView, In the other usercontrol I have a simple list of element present in the first usercontrol (with a dedicated button) and i want to open the radtile view element by click on the button.

Through this code


 var container = radTileElement.ItemContainerGenerator.ContainerFromItem(item) as RadTileViewItem;

 if (container != null)
 {
    container.TileState = TileViewItemState.Maximized;                 
 }

i can open the Tile view from the other usercontrol, but only if all element of RadTileView are in Minimized state. If a tile view element in the RaTileView is Maximized this call

 


radTileElement.ItemContainerGenerator.ContainerFromItem(item) as RadTileViewItem;

 return null.

 

Any suggestions?

 

Thank you

Marco
Top achievements
Rank 1
 asked on 31 Oct 2023
1 answer
18 views

Hello everyone,

I have a table in my RadDocument. I create the tabele with code and insert it at the end in my RadDocument.

Is there a way to keep the whole table together if the table reach a page break?

 

Best regards and thanks for your help :-)

Stenly
Telerik team
 answered on 30 Oct 2023
0 answers
6 views

Using the visual studio,when the mouse over the  code folding button,the code including region line will become thick.

look at the attachment.

How to realize for the RadSyntaxEditor?

wu
Top achievements
Rank 1
Veteran
 asked on 30 Oct 2023
0 answers
24 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
0 answers
16 views
I use the Windows8Touch Theme and the StyleManager (so the binaries with XAML) to style my Telerik app.  I also follow the Telerik instrructions on how to apply the theme to standard Microsoft controls, like `System.Windows.Controls.Button`

    https://docs.telerik.com/devtools/wpf/styling-and-appearance/how-to/styling-apperance-themes-mscontrols

I use this technique to style the generic Button control and it works well.  Here is the relevant line in my default Button style

        <Setter Property="telerik:StyleManager.Theme" Value="Windows8Touch"/>


But now I have a case in which I want to give my button a transparent background but otherwise have it use the Telerik theming.  This seems like it would be easy:  Just set the `Background` property to `{x:Static Brushes.Transparent}` and it should work fine, right?

And that does look great.  Right up until I push the button.  When I push it, the background changes from transparent to... my default app background.  I want it to stay transparentd

Is there a simple property I can set or a style change I can make to achieve this.  I would prefer to avoid having to write a ControlTemplate for the button.

When I looked at the Telerik XAML, it appeared that I might be able to set a property like `mat:MaterialAssist.PressedBrush`

        <Setter Property="mat:MaterialAssist.PressedBrush" Value="Transparent"/>


or perhaps use `ThemeHelper.SetPressedBackgroundBrush` to achieve what I want


            `ThemeHelper.SetPressedBackgroundBrush(button, Brushes.Transparent);`


but neither of those two attempts made any difference.
Joe
Top achievements
Rank 2
Iron
Iron
Veteran
 asked on 27 Oct 2023
0 answers
14 views

I'm making a simple file upload application that should only accept Excel files.
I've found out how I need to set the filter on the RadOpenFileDialog and I'm throwing an error (via messagebox) when the extension is wrong when dropping a file on the control.

        public RelayCommand FilePathChangedCommand => new RelayCommand((ea) =>
        {
            if (!string.IsNullOrEmpty(FilePath))
            {
                var extension = Path.GetExtension(FilePath);
                if (!extension.In("xls", "xlsx", "xlsm"))
                {
                    //throw error
                }
                else
                {
                    //process file
                }
            }
        });

When the extension is wrong, I would also like to clear the value in the RadFilePathPicker. But when I make it empty in the FilePathChanged event, it doesn't do anything.

What would be the correct approach to clear the control in this case?

Ict
Top achievements
Rank 1
Iron
 updated question on 27 Oct 2023
0 answers
17 views

I have this code in xaml:

 <telerik:RadDiagram
     x:Name="RadDiagram"
     primitives:BackgroundGrid.LineStroke="{DynamicResource SelmoBrushDiagramLineStroke}"
    ..../>

The problem is before the colors were predefined. It was a hex value.

Everytime I load the digram xml  with RadDiagram.Load(xml) the LineStroke has the hex color which was saved before in the serialzed xml and the new Dynamic Color doesn't get applied.

Is there any possibility to override the loaded diagram xml, or maybe set the the LineStroke in codebehind after loading the diagram xml?

Dan
Top achievements
Rank 1
Iron
 asked on 27 Oct 2023
0 answers
11 views

Hello dear Telerik Forum.

I have a memory leak problem, where opening views add up in memory, because they are still somehow referenced and thus not GCed.

I've implemented Prism and Telerik both in my application. I've also implemented the ScopedRegionNavigationContentLoader,  the RegionManagerAwareBehavior (and everything else required to open views in new tabs) from Brian (Prism) and the RadTabbedWindow in my MainWindow. So when I execute RequestNavigate from the MainWindow I open new Tabs.

Following happens:

When I execute RequestNavigate commands from the MainWindow I successfully open a new tab which then builds the view, existing of multiple subviews. This works correct so far.

Now when I close the RadTabItems the Views still stay in the memory. It seems there are still references in the RegionManager about the once spawned Regions/Views. Those add up when using the application over hours.

 

So my question is:

How do I unload the Region/View in the RegionManager of the MainWindow when I close the tabs?

I'm looking for a clean and global solution, where I dont have to implement code in every class.

 

 

Extra information:

- There is one RegionManager in the MainWindow, which manages all Tabs and so.

- Each Subview gets its own new RegionManager instance.

 

Anastasios
Top achievements
Rank 1
 updated question on 26 Oct 2023
Narrow your results
Selected tags
Tags
+? more
Top users last month
Mark
Top achievements
Rank 3
Iron
Iron
Iron
Jie
Top achievements
Rank 2
Iron
Iron
Iron
Janko
Top achievements
Rank 1
Iron
Iron
Mahesh
Top achievements
Rank 1
Iron
Eli
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Mark
Top achievements
Rank 3
Iron
Iron
Iron
Jie
Top achievements
Rank 2
Iron
Iron
Iron
Janko
Top achievements
Rank 1
Iron
Iron
Mahesh
Top achievements
Rank 1
Iron
Eli
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?