or
<Application x:Class="WpfApplication1.App" StartupUri="MainWindow.xaml"> <Application.Resources> <ResourceDictionary> <ResourceDictionary.MergedDictionaries> <ResourceDictionary Source="/Telerik.Windows.Themes.Office2013;component/Themes/System.Windows.xaml"/> <ResourceDictionary Source="/Telerik.Windows.Themes.Office2013;component/Themes/Telerik.Windows.Controls.xaml"/> </ResourceDictionary.MergedDictionaries> <Style x:Name="MyBorderStyle" TargetType="Border"> <Setter Property="BorderBrush" Value="Black" /> <Setter Property="BorderThickness" Value="1" /> </Style> </ResourceDictionary> </Application.Resources></Application><Window x:Class="WpfApplication1.MainWindow" Title="MainWindow" Height="350" Width="525"> <tk:RadListBox Margin="10"> <tk:RadListBoxItem Content="One" /> <tk:RadListBoxItem Content="Two" /> <tk:RadListBoxItem Content="Three" /> </tk:RadListBox></Window>private IEnumerable<IResource> resourcesStatus;this.resourcesStatus = new List<IResource>{ new Resource(Klassen.Language.GetTextbyCode("Erfasst"), "Status"), new Resource(Klassen.Language.GetTextbyCode("Aktiv"), "Status"), new Resource(Klassen.Language.GetTextbyCode("Fertig"), "Status"),};ResourceType resourceTypeStatus = new ResourceType("Status");resourceTypeStatus.Resources.AddRange(this.resourcesStatus);this.resourceTypes.Add(resourceTypeStatus);Hello,
We have Q3 2012.
I'm trying to use a static property to specify the ResultFormatString for an AggregateFunction,
<telerik:GridViewDataColumn.AggregateFunctions> <telerikData:SumFunction ResultFormatString="{x:Static l:CustomFormat.CurrencyWithMinus}"/> </telerik:GridViewDataColumn.AggregateFunctions>
But the property's value (e.g. $#,##0.00) is displayed as a literal in the gridview cell.
We can't use the string format "c" because we need negative values to be prefixed with "-"
rather than having parentheses around them. Can you please tell me if there's some way to make this work?
Thanks much!
<telerik:RadTreeView Name="Nodes" IsEditable="True" IsLoadOnDemandEnabled="True" ItemTemplate="{StaticResource ItemTemplate}" ItemEditTemplate="{StaticResource EditTemplate}" IsDragDropEnabled="True" telerik:TreeViewSettings.DragDropExecutionMode="New" telerik:RadDragAndDropManager.AllowDrop="True" telerik:RadDragAndDropManager.AllowDrag="True" ...> <i:Interaction.Triggers> <commands:DragDropQueryRoutedEventTrigger EventName="DropQuery" EventOwnerType="{x:Type telerik:RadDragAndDropManager}"> <micro:ActionMessage MethodName="OnDropQuery" > <micro:Parameter Value="$eventArgs" /> </micro:ActionMessage> </commands:DragDropQueryRoutedEventTrigger> </i:Interaction.Triggers></telerik:RadTreeView>public void OnDropQuery(DragDropQueryEventArgs args){ ... ... args.Handled = true;}