Telerik Forums
UI for WPF Forum
1 answer
165 views
Hey guys,

I have functionality to dynamically change themes via StyleManager.ApplicationTheme. Whenever the user changes themes, there is a roughly 20~30mb spike in memory usage that never seems to get garbage collected. Any idea on what would cause this?

The following code is used to dynamically change the theme:
public Theme ThisApplicationTheme
{
   get { return StyleManager.ApplicationTheme; }
   set
   {
      StyleManager.ApplicationTheme = value;
      var binding = new Binding("ThisApplicationTheme") { Source = this, Mode = BindingMode.OneWay };
       foreach (Window window in Application.Current.Windows)
       {
            foreach (var element in GetWindow(window).ChildrenOfType<FrameworkElement>().ToList())
            {
                 element.SetBinding(StyleManager.ThemeProperty, binding);
            }
       }
       Application.Current.MainWindow.SetBinding(StyleManager.ThemeProperty, binding);
   }
}

Thanks.
Pana
Telerik team
 answered on 01 Oct 2013
1 answer
133 views
Hi,

I have a chart like the one in the image,the code is the next:

<telerik:RadChart Name="RadChartDemo" Grid.ColumnSpan="3" Content="" Margin="10" Grid.Row="2" BorderThickness="0">
           <telerik:RadChart.DefaultView>
               <telerik:ChartDefaultView>
                   <telerik:ChartDefaultView.ChartArea>
                       <telerik:ChartArea>
                           <telerik:ChartArea.ZoomScrollSettingsY>
                               <telerik:ZoomScrollSettings ScrollMode="ScrollAndZoom"/>
                           </telerik:ChartArea.ZoomScrollSettingsY>
                           <telerik:ChartArea.ZoomScrollSettingsX>
                               <telerik:ZoomScrollSettings ScrollMode="ScrollAndZoom"/>
                           </telerik:ChartArea.ZoomScrollSettingsX>
                       </telerik:ChartArea>
                   </telerik:ChartDefaultView.ChartArea>
                   <telerik:ChartDefaultView.ChartTitle>
                       <telerik:ChartTitle Content="Tons Per Day" HorizontalAlignment="Center"/>
                   </telerik:ChartDefaultView.ChartTitle>
               </telerik:ChartDefaultView>
           </telerik:RadChart.DefaultView>
       </telerik:RadChart>

And I create the series using SeriesMapping and ItemMapping. When I run the application I can see both scroll bars but it seems to be disable, I can't scroll nor zoom the chart.

Do I have something missing?

Regards,

Alberto
Petar Kirov
Telerik team
 answered on 01 Oct 2013
0 answers
84 views
Hi
Is there any way to assign tool-tip to text in RadRichTextBox.

I had tried by assigning Cross-reference bookmark by using editor.InsertBookmark(...) and editor.InsertCrossReferenceToBookmark(... , ... , ..) method. Bookmark is implemented but there is tool-tip is missing.

So how to enable tool-tip which normally shows in MS word.

Any alternate ways?

Regards
Sopan Vaidya
Sopan
Top achievements
Rank 1
 asked on 01 Oct 2013
4 answers
166 views
Hi,

I have a RadPropertyGrid with several lines.
I Looks somehow like this:
<telerik:RadPropertyGrid Item="{Binding TheSetting}" SearchBoxVisibility="Hidden" AutoGeneratePropertyDefinitions="False" SortAndGroupButtonsVisibility="Collapsed" SearchInNestedProperties="False">
    <telerik:RadPropertyGrid.PropertyDefinitions>
        <telerik:PropertyDefinition GroupName="Allgemein" OrderIndex="0" Binding="{Binding BaseSearchPath, ValidatesOnDataErrors=True, ValidatesOnExceptions=True}" Description="Basispfad zur Suche der CSV Dateien" DisplayName="Basispfad" />
        <telerik:PropertyDefinition GroupName="Allgemein" OrderIndex="1" Binding="{Binding Map_FZeit, ValidatesOnDataErrors=True}" Description="Zuordnung Messwertzeit" DisplayName="Messwertzeit" />
        <telerik:PropertyDefinition GroupName="Allgemein" OrderIndex="2" Binding="{Binding Map_ZNr, ValidatesOnDataErrors=True}" Description="Zuordnung Messwertzeile" DisplayName="Messwertzeilennummer" />


When I select a TextBox with the mouse the row is not selected.
This results in a strange (wrong) look.

Example (for the code above) - I select the "Messwertzeit" Row Header with the mouse.
The Description shows the correct value.
Then I press TAB -
-- First strange thing - the "Basispfad" TextBox (one line above) gets the focus - not the "Messwertzeit" Textbox as expected.
-- Second strange thing - the description pane still shows the "Messwertzeit" description (not the one of "Basispfad" where I'm editing).
-- Third thing (only a problem with the description) - TAB brings me to the next textbox
There is no way (without using the mouse - I tried TAB - shift TAB) to select the "RowHeader" - to get the correct description.

Is this "normal" and desired?
Can I get a description only using the mouse?

Manfred

ManniAT
Top achievements
Rank 2
 answered on 30 Sep 2013
1 answer
88 views
I found an issue with RadDatePicker. The scenario is that When I select invalid date, RadDatePicker throws an Error and when I move to next control, the invalid date along with the error message disappears. I want that invalid date along with the Error to be displayed even after I moved to next control. Is there a solution?
Yana
Telerik team
 answered on 30 Sep 2013
1 answer
125 views
Is there a way to prevent the RadRibbonView Title from overlapping the Min/Max/Close buttons when resizing the application window to a smaller width?  See attached image for the current look.

Thanks,
Dan
Pavel R. Pavlov
Telerik team
 answered on 30 Sep 2013
1 answer
52 views
Hello,

I've applied the Windows8Touch theme from the implicit styles RDs and noticed that when dragging to adjust the beginning of an appointment, the time cue that appears does not change while adjusting the appointment's start time.   The time cue does change when adjusting the appointment's end time.

Please advise.
Masha
Telerik team
 answered on 30 Sep 2013
0 answers
73 views
Hi,

I am trying to implement the cross-reference functionality same in MS word.

But in the RichTextBox, after adding the cross reference, the text not allow to click and redirected to bookmark location.

How to do this task.

Help....

Regards
 Sopan Vaidya
Sopan
Top achievements
Rank 1
 asked on 30 Sep 2013
5 answers
700 views
Been trying for a while to see what slows down the loading of some forms in my application.

Eventually I just decided to make a bunch of radgrids show up in a simple application when i hit a button. I did that because in my initial form I have about 6 radgrids (they have very few rows each) and it bugs me to see how slow it's loading on an old computer.

just so you understand what i did i made a user control with 6 of these inside and when i hit the button it added the control inside the grid of the mainwindow.

   <telerik1:RadGridView ShowGroupPanel="False"  telerik1:TouchManager.IsTouchHitTestVisible="False"  Grid.Column="2" Grid.Row="3" Name="radGridView1" IsEnabled="True" CanUserReorderColumns="False" IsReadOnly="True"<br>                                  RowIndicatorVisibility="Collapsed" DataLoadMode="Asynchronous" <br>                                  AutoGenerateColumns="False" IsFilteringAllowed="False"<br>                                  ItemsSource="{Binding Someth.Oth}"<br>                                  SelectedItem="{Binding OthSel}"<br>                                  CanUserInsertRows="False" CanUserDeleteRows="False" Grid.ColumnSpan="3" Margin="1,1,1,0"><br>            <telerik1:RadGridView.Columns><br>                <telerik1:GridViewDataColumn Header="Nume" DataMemberBinding="{Binding Person.Name}"  <br>                                                         Width="4*" TextWrapping="Wrap" IsReadOnly="True"/><br>                <telerik1:GridViewDataColumn Header="Prenume" DataMemberBinding="{Binding <span style="font-size: 14.44444465637207px;">Person</span><br>.SurName}"  <br>                                                         Width="4*" TextWrapping="Wrap" IsReadOnly="True"/><br>                <telerik1:GridViewDataColumn Header="Legitimatie" DataMemberBinding="{Binding <span style="font-size: 14.44444465637207px;">Person</span><br>.Badge}"  <br>                                                         Width="4*" TextWrapping="Wrap" IsReadOnly="True"/><br>            </telerik1:RadGridView.Columns><br>        </telerik1:RadGridView><br>

anyway, after profiling with redgate i came to see that there was a big chunk used by telerik.windows.input.touch.touchmanager.registertouchableelement. Something about TouchIndicator.

As you can see I already have telerik1:TouchManager.IsTouchHitTestVisible="False" . Did not do a thing.


Basically i do not need touch in my application . At all. If the computer is powerful enough and they want to, sure, I'll enable it for them. But not if it takes so much performance from my app.

Second thing that was showing up in the profile was the GridView.GridViewScrollViewer, the measureoveride. I don't use scroll either but I don't think it's related only to that (right?). As I looked in, most of it was spent on GridViewHeaderRow measureoverride. This is something I could also see with WPFPerf on my application and also in the test. Why is the header so consuming? In my application I don't even show it for some and it still eats up a lot.

Thank you for any input.

Nick
Telerik team
 answered on 30 Sep 2013
1 answer
173 views
Is there a good way to determine if a RadDocument has been changed? I know you do not have a sophisticated compare capability. If you what is your recommendation on determining if the document has been changed.
Petya
Telerik team
 answered on 30 Sep 2013
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
Book
FileDialogs
ToolBar
ColorPicker
TimePicker
SyntaxEditor
MultiColumnComboBox
VirtualGrid
Wizard
ExpressionEditor
NavigationView (Hamburger Menu)
DesktopAlert
WatermarkTextBox
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
VirtualKeyboard
HighlightTextBlock
Security
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Iron
Iron
Andrey
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Iron
Iron
Andrey
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?