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?
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?
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?
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.
How to disable or overwrite background brush for selection in the TreeView?
What kind of templates I will be need to rewrite? Cause there's template for RadTreeViewItem but I cannot reach this brush.
Hi !
I'm newbie on WPF, i don't understand why my RadGridView takes more my screen / user screen when builded.
if i hide or remove RadGridView other elements takes normal size
my columns set to :
* for the first, 80 for 2nd and third (dates)
Joined captures :
- With/Without RadGridView
Thanks for your help !
Hello,
I am having an issue with RadMultiColumnComboBox. I am having to set to a large width for them to not line wrap. When I select an item it is doing this:
How can I prevent it from doing this? The width is more than twice the size of the largest element, and it is set to single select so there is no reason to wrap the text.