Telerik Forums
UI for WPF Forum
2 answers
353 views
Hi
How to Use ColorAnimation to change the background of RadButton when IsMouseOver is True
, this is my code

<Style TargetType="telerik:RadButton">
            <Style.Triggers>
                <Trigger Property="IsMouseOver" Value="True">
                    <Trigger.EnterActions>
                        <BeginStoryboard>
                            <Storyboard >
                                <ColorAnimation From="Green" To="Yellow" Storyboard.TargetProperty="(Button.Background).(SolidColorBrush.Color)"  Duration="00:00:03" RepeatBehavior="Forever"/>
                            </Storyboard>
                        </BeginStoryboard>
                    </Trigger.EnterActions>
                </Trigger>
            </Style.Triggers>
        </Style>


But is not working.

Thanks,
Akram
Akram
Top achievements
Rank 1
 answered on 21 Dec 2012
1 answer
178 views
Hello,

I have a problem with the TimelineViewDefinition. I have my ScheduleView with a timeline view defined. In this view I need to show only one day, and to achieve this goal, I define the attribute VisibleDays and I set it to 1. This shows perfectly fine as expected, I get one day in the timeline view. But when in a button I call the RadScheduleViewCommands.DecreaseVisibleDateLarge or RadScheduleViewCommands.IncreaseVisibleDateLarge, the Schedule advances one week instead of one day as it should. How can I solve this?

Thank you!
Boyan
Telerik team
 answered on 21 Dec 2012
1 answer
207 views

Hi,

<RadDiagram ...>
<primitives:GraphPaper />
</RadDiagram ...>

That tag causes an exception to be thrown:

A first chance exception of type 'System.InvalidOperationException' occurred in Telerik.Windows.Controls.Diagrams.dll

Additional information: Cannot modify the Items collection when the GraphSource is set.

What's up?

Petar Mladenov
Telerik team
 answered on 21 Dec 2012
2 answers
162 views
I know that since Q2 RadPdfViewer has a new property called Mode for choosing between pan and text selection. However the example in http://www.telerik.com/help/wpf/radpdfviewer-wiring-ui.html seems to use an old way. (It also doesn't have the example for text selection or find in the xaml even though the find is in the provided code behind).

It is probably just because I am new to WPF but I can't figure out what to do in the xaml. Could someone give me an updated example? Thanks.
Seth
Top achievements
Rank 1
 answered on 20 Dec 2012
9 answers
360 views

Regardless of how I attempt to set the visibility for it, I cannot get the FilteringDropDown control within the GridViewHeaderCell for a column bound to a custom type to appear in my RadGridView. Sample code below:

 

Public Class MyClass
  Public Property AnInteger As Integer
  Public Property ACustomObject As MyCustomObject
End Class
  
Public Shared myList As New List(Of MyClass)

<telerik:RadGridView ItemsSource="{Binding myList}"
  <telerik:RadGridView.Columns
    <telerik:GridViewComboBoxColumn
      DataMemberBinding="{Binding ACustomObject}"
      ItemsSource="{Binding Source={StaticResource PredfinedListOfMyCustomObject}"
      DisplayMemberPath="Name"
      IsCustomSortingEnabled="True"
      <telerik:GridViewComboBoxColumn.HeaderCellStyle
        <Style TargetType="{x:Type telerik:GridViewHeaderCell}" BasedOn="{StaticResource {x:Type telerik:GridViewHeaderCell}}"
          <Setter Property="FilteringUIVisibility" Value="Visible"/> 
        </Style
      </telerik:GridViewComboBoxColumn.HeaderCellStyle
      <telerik:GridViewComboBoxColumn.FilteringControl
        <local:CustomFilter/> 
      </telerik:GridViewComboBoxColumn.FilteringControl
    </telerik:GridViewComboBoxColumn
  </telerik:RadGridView.Columns
</telerik:RadGridView>

Both with and without the HeaderCellStyle I do not get the FilteringDropDown. If I run the application with WPF Inspector or Snoop and change the FilteringUIVisibility from collapsed (which it always is) to visible (which the default is and what I set it to manually) then the FilteringDropDown appears and I can use my custom filter. I am assuming some code in the control is overriding my styling based on the non-standard object type (which is why I have custom sorting on the column as well) but I cannot figure out how to avoid it or restore the FilteringDropDown.
Jason
Top achievements
Rank 1
 answered on 20 Dec 2012
2 answers
147 views
Hello,

Recently we updated the Telerik assemblies in our product to 2012.3.1017.40 and we've encountered an issue. When the user drags a column header to the group panel they encounter a NullReferenceException. We're hosting the control in a Windows Forms ElementHost control.

Any ideas on a workaround would be very helpful.

Stack Trace:
   at Telerik.Windows.Controls.DraggedElement.HideNoCursor()
   at Telerik.Windows.Controls.GridView.DragDropController.OnGroupPanelDragOver(Object sender, DragEventArgs e)
   at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
   at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
   at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
   at Telerik.Windows.DragDrop.DragDropManager.DelegateHelper.OnDragEventHandler(Object sender, DragEventArgs e)
   at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
   at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
   at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
   at System.Windows.OleDropTarget.RaiseDragEvent(RoutedEvent dragEvent, Int32 dragDropKeyStates, Int32& effects, DependencyObject target, Point targetPoint)
   at System.Windows.OleDropTarget.MS.Win32.UnsafeNativeMethods.IOleDropTarget.OleDragOver(Int32 dragDropKeyStates, Int64 point, Int32& effects)

Let me know if you need any more information. 

Thanks Much,
~Boots
Boots
Top achievements
Rank 1
 answered on 20 Dec 2012
2 answers
180 views
hi, can u help me to traslate this code into xaml

            DragDropManager.AddDragInitializeHandler(xRibbon, OnDragInitialize);
            DragDropManager.AddDropHandler(this.diagram, OnDiagramDrop);

xRibbon is the microsoft ribbon , diagram is RadDiagram

i tried this ma does not work

<Style TargetType="telerik:RadDiagram">
            <Setter Property="telerik:DragAndDropManager." Value="True" />
            <EventSetter Event="telerik:DragAndDropManager.DropQuery" Handler="OnDiagramDrop" />
        </Style>

thanks.
Fabrizio
Top achievements
Rank 1
 answered on 20 Dec 2012
2 answers
99 views
Hi

I'm using the latest released 1129 build.  Create a new document.

Add text such as

"Heading 1

Heading 2"

Highlight all, set to Heading 1 style.

Generate ToC.  This will not work.  The code throws an exception during InsertTableOfContentsCommand.PrepareExecuteCore(). 

This seems to be because empty paragraphs are skipped and no bookmark added to "paragraphToBookmark" dictionary, but the later foreach loop that iterates the paragraphs and gets bookmark names from this dictionary doesn't skip any paragraphs - so the empty ones will throw an exception, as they aren't in the dictionary.
Iva Toteva
Telerik team
 answered on 20 Dec 2012
2 answers
182 views
Hi

I need to select a carousel item by souble clicking it.

Once I have double clicked I need to know whcih Item I have clicked.

Do you have any examples of this ?

Kind Regards

David
Michael
Top achievements
Rank 1
 answered on 20 Dec 2012
1 answer
161 views
For developers using the Windows 8 theme and the TabControl, be aware that if you set the BackgroundVisibility to "Hidden", the background tabs will "disappear" visually. I'm not sure I'd consider it a bug because the system is just doing what you tell it to do, but it's something that we discovered and I thought I would pass along.

I've attached screenshots for reference.

Greg
Stefan
Telerik team
 answered on 20 Dec 2012
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
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
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?