Telerik Forums
UI for WPF Forum
1 answer
353 views
Hello. I was wondering if it was possible to override a single property of the telerik themes.

For instance, if I use Telerik:StyleManager.Theme to apply the Office_Black theme to all textbox controls can I override the VerticalAlignment property to make it "Top"? I tried to override just that one property both in a resource and locally in the xaml on the control itself and neither one worked.

I've read a few things that say that you cannot override just one property in a theme applied to controls.

Any help would be greatly appreciated.

Thanks,

John
Vanya Pavlova
Telerik team
 answered on 11 May 2011
0 answers
56 views
Hi
I'm Using the Entity framework 4 as my data access and i binding the grid data context to an ranks entity-set
but but when it's make database select to count the records every time i update the grid-view

InitializeComponent();
RanksGridView.ItemsSource = _crewing.Ranks.OrderBy(r=>r.Name);
Mahmoud
Top achievements
Rank 1
 asked on 11 May 2011
1 answer
105 views

I'm creating a MVVM application (WPF Browser Application) which uses RadWindow to show images. Every time I open image with the RadWindow and close it, the memory usage continues increased and never fall back, at the end, it will throw Out of Memory exception. Is there anyone know why RadWindow can not free the memory it used.

George
Telerik team
 answered on 11 May 2011
4 answers
299 views
Hello,

I have implemented a custom Menu similar to the one shown in the demos [http://demos.telerik.com/wpf/Telerik.Windows.Examples.xbap] using WPF. I am using the "Integration Example" which combines an Image, a Title and a Summary. The problem I am facing is that I can't figure out how I can attach the MenuItem_Click event when a user click on different menu. I tried the following but it does not work:
<telerik:RadMenu Grid.Row="1"
Style
="{StaticResource MenuStyle}"
ItemsSource
="{StaticResource MenuItemsSource}"
ItemContainerStyleSelector
="{StaticResource MenuItemStyleSelector}"
ItemContainerStyle
="{x:Null}"
MenuItem.Click="MenuItem_Click"/>


Any idea how I can attach the MenuItem_Click event ?

Thanks.
Yas
Top achievements
Rank 1
 answered on 11 May 2011
1 answer
57 views
 Hi,,
I am using 2D scattered point series. On X axis, i made  PlotAreaAxisLabelsVisibility="Visible" to show the numbering on center of graph. My min x value is -1.5 and max is 1.5. When I zoom, the numbering on the bottom x-axis line is changing but Center x-axis line numbering stays -1.5-1.5. Any suggestion. 
Evgenia
Telerik team
 answered on 11 May 2011
3 answers
153 views
In short, if a control template uses triggers with enter/leave actions affecting a UIElement which is collapsed, WPF will leak that UIElement (complete specifics can be found here: http://blog.ramondeklein.nl/index.php/2009/02/20/memory-leak-with-wpf-animations/). Briefly, what happens is that if the item is collapsed, the enter/exit actions will not actually occur, but will be placed in a "DeferredActions" table in the template itself. If the UIElement is never shown, then these deferred actions won't be evaluated, and they'll remain as strong references to the the still collapsed UIElement.

In our case, this happens with the template for the RadBusyIndicator, which amongst other things, sets a ControlTemplate for the RadProgressBar it contains. The "IndeterminateDonut" UIElement in the RadProgressBar is initially Collapsed, even though there are Enter/Exit actions for animating it to continually go in a circle. Now this doesn't seem to be a problem when the BusyIndicator actually shows up at some point. However, when the RadBusyIndicator doesn't show up at any point during a Window's lifetime, and then the window is closed, we manifest the same exact problem as described above.

The fix was to grab the default ControlTemplate for the RadBusyIndicator, and change the initial visibility of the RadProgressBar to Hidden instead of Collapsed, so those actions can be evaluated. I haven't tested if this affects animation performance, however. As the link describes, this is fixed in WPF 4 using the ConditionalWeakTable to keep weak references to the elements which deferred actions will affect.
Pana
Telerik team
 answered on 11 May 2011
7 answers
409 views
When I set the command to an ApplicationCommand or an EditingCommand for a button within a standard
ToolBar as follows:
<ToolBar>
   <Button Command="ApplicationCommands.Cut" ToolTip="Cut">
      <Image Source="/Project;component/Images/editcut.png"/>
   </Button>
   <Button Command="EditingCommands.ToggleBold" ToolTip="Bold">
      <TextBlock FontWeight="Bold"><Run Text="B"/></TextBlock>
   </Button>
</ToolBar>
these commands fire correctly for text contained within a RichTextBox.

However if I change the ToolBar to a RadToolBar, the buttons are disabled.

What do I need to do to allow these commands to fire as expected?





Rayne
Top achievements
Rank 1
 answered on 11 May 2011
2 answers
117 views
Hi,
I am using the charts to draw 2 different data series each one linked to a different axis. The values in the Dataseries are relatively large (30 millions and more). The first axis is linked to the first Dataseries and the maximum is properly set. The secondary Y axis is created, added to the chart area but when setting the maximum, the application goes into an infinite loop (OutOfMemory).
This problem seems to happen when setting the maximum to a value larger than 10 millions.

Thank You
Julien

Here is the code creating the fault:
public MainWindow()
{
    InitializeComponent();
 
    //Creating the second Y axis
    AxisY secondaryAxis = new AxisY();
    secondaryAxis.AxisName = SECONDARY_AXIS_NAME;
    secondaryAxis.AutoRange = false;
    secondaryAxis.DefaultLabelFormat = "N";
    secondaryAxis.Step = 10000000;
    secondaryAxis.MinValue = 0;
    secondaryAxis.MaxValue = 100000000;
    chart.DefaultView.ChartArea.AdditionalYAxes.Add(secondaryAxis);
}
Julien
Top achievements
Rank 1
 answered on 11 May 2011
2 answers
291 views
Hi again,

How would I detect whether the RichTextBox selection contains an InlineUIContainer?

The DocumentSelection classes don't seem to support this out of the box with something like the FlowDocument TextSelection.Contains(TextPointer) call and the InlineUIContainer doesn't have it's own position information (like InlineUIContainer.ContentStart and ContentEnd properties for FlowDocument classes).

It seems slightly strange that you can use a DocumentPosition to insert something in a document but the element itself doesn't retain some of that information for later comparison against the SelectionRange objects to determine what is in the selection.

Could you point me in the right direction to solve/workaround this?

Thanks!
Paul
Top achievements
Rank 1
 answered on 11 May 2011
3 answers
134 views
Hi,

how do I replace the appointment creation/edit/etc. dialogs with truly custom implementations, i.e. not only template changes?

It seems that I can add a handler for the ShowDialog event. But setting the EventArg property Handled to true doesn't suppress the default dialog handling. Can I simply do my custom UI handling and then Cancel the event, e.g.

void SchedulerView_ShowDialog(object sender, ShowDialogEventArgs e)
{
    // Here goes the custom modal UI
    // ...
 
    e.Cancel = true;
}

Thanks,
Alexander
Yana
Telerik team
 answered on 11 May 2011
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
LayoutControl
ProgressBar
Sparkline
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
SplashScreen
Callout
Rating
Accessibility
CollectionNavigator
Localization
AutoSuggestBox
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
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?