Hello.
Can I access SearchPanel DataContext from another part of Template?
I have a HightLightningTextBlock Class that I want to use instead of the HighLightTextBlock used in DataColumn. I use a DataTemplate:
<DataTemplate x:Key="HighlightingTemplate"> <highLight:HighlightingTextBlock HighlightText="{Binding SearchViewModel.SearchText}" Text="{Binding Name}"> <i:Interaction.Behaviors> <highLigthBehavior:CellValueBindingBehavior /> </i:Interaction.Behaviors> </highLight:HighlightingTextBlock></DataTemplate>I asign the DataTemplate when adding a column:
column.CellTemplate = (DataTemplate)Application.Current.Resources["HighlightingTemplate"];I want to bind the "HighlightText" property to the "SearchText" of "PART_SearchAsYouTypeTextBox". The "Text" property works well. I use the HighlightingTextBlock because I want to change the background instead of the foreground when type in search box.
Thank you.
I switched my solution from using references to the binaries i have localy to nuget packages.
But by doing this i get a strange behaviour in the controls UI. Suddenly all controls get different theming than they had before the nuget packages.
How do i fix this so they are again showing as it was before?
A password protected Excel document causes an error message "End of central Directory not found".
Would it be possible to get a more appropriate error message at least? The possibility to enter a Password would be great, of course.
Thanks
Michael

Hi Guys
I really desperately need your help on this. I have created listbox with a toggle from materialdesign theme package and along with richtextbox. The listbox comprises of three listboxitems which are bold, italic and underline. So when the user clicks on the button and the highlighted text in the richtextbox will reflect its changes accordingly, i.e. normal font text changes to font bold.
However what I have noticed the listboxitem with button like format has to be double clicked in order to get the font text to change from bold to normal, vice versa from normal to bold. I have been struggling on how to get the single click selection and the button to show the selected highlight colour etc.
I couldn't use the event setter as it messes the highlight colour and styling of the listboxitems
PLEASE HELP - the code behind is C#
<Window x:Class="WPFDEMO.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:materialDesign="clr-namespace:MaterialDesignThemes.Wpf;assembly=MaterialDesignThemes.Wpf"
mc:Ignorable="d"
TextElement.Foreground="{DynamicResource MaterialDesignBody}"
TextElement.FontWeight="Regular"
TextElement.FontSize="13"
TextOptions.TextFormattingMode="Ideal"
TextOptions.TextRenderingMode="Auto"
Background="{DynamicResource MaterialDesignPaper}"
FontFamily="{DynamicResource MaterialDesignFont}"
xmlns:local="clr-namespace:WPFDEMO"
Title="MainWindow" Height="1080" Width="1920">
<!--<Window.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="pack://application:,,,/MaterialDesignThemes.Wpf;component/Themes/MaterialDesignTheme.Button.xaml" />
</ResourceDictionary.MergedDictionaries>
</ResourceDictionary>
</Window.Resources>-->
<Grid>
<DockPanel>
<StackPanel DockPanel.Dock="Top">
<ListBox SelectionMode="Extended"
Style="{StaticResource MaterialDesignToolToggleFlatListBox}"
Background="Transparent" materialDesign:ListBoxAssist.IsToggle="True">
<!--<ListBox.ItemContainerStyle>
<Style TargetType="ListBoxItem">
<EventSetter Event="PreviewMouseDown" Handler="ItemOnPreviewMouseDown"></EventSetter>
<EventSetter Event="PreviewMouseDoubleClick" Handler="ItemOnPreviewMouseDown"></EventSetter>
</Style>
</ListBox.ItemContainerStyle>-->
<ListBoxItem x:Name="btnBold" Selected="btnBold_Selection" PreviewMouseDown="btnBold_PreviewMouseDown">
<materialDesign:PackIcon Kind="FormatBold" />
</ListBoxItem>
<ListBoxItem x:Name="btnItalic" Selected="btnItalic_Selected">
<materialDesign:PackIcon Kind="FormatItalic" />
</ListBoxItem>
<ListBoxItem x:Name="btnUnderline" Selected="btnUnderline_Selected">
<materialDesign:PackIcon Kind="FormatUnderline" />
</ListBoxItem>
</ListBox>
</StackPanel>
<RichTextBox x:Name="rtbTextbox" SelectionChanged="rtbTextbox_SelectionChanged"></RichTextBox>
</DockPanel>
</Grid>
</Window>

Hi,
I have a Gender DataFormComboBoxField in the RadDataForm's NewItemTemplate. How do I show and hide another DataFormDataField on the same template(NewItemTemplate) based on the Gender type (male/female)?
Thanks!

Steps to reproduce:
I have built a wpf application with 2 telerik controls: a WatermarkTextBox and a PasswordBox.
1. In a Windows session, I launch my wpf application
2. Enter text in both controls
3. Leave the application up and running and disconnect from the Windows session
4. I reconnect to (log back in) the Windows session, the PasswordBox field gets cleared.
[In a different scenario, when having multiple WatermarkTextBox, some of the WatermarkTextBox get cleared when reconnecting to the session]
Any idea what is going? I did some research and could not find anything helpful. Thanks.

Hello!
I recently purchased Telerik UI For WPF. Installation worked fine, dll's are installed in the GAC etc.
However, I can't convert my existing project into a Telerik WPF Application. The option is missing from the Telerik menu in VS for 1 of my projects, and is not present in the Context menu in the Solution explorer either.
My VS solution exists of 10 or so projects. For 9 of those projects, the Convert to Telerik WPF application is there, but for the main application which I want to convert the option is missing as I described.
Any ideas?
Tia,
Chris
Hi, i'm trying to implement a custom filter as your example, but in a dynamic columns grid, when i filter i receive this error:
'The binary operator GreaterThanOrEqual is not defined for the types 'System.Object' and 'System.DateTime'.'
On the event
private void OnFilter(object sender, RoutedEventArgs e) { this.fromFilter.Value = this.FromDate; this.toFilter.Value = this.ToDate; if (!this.column.DataControl.FilterDescriptors.Contains(this.compositeFilter)) { this.column.DataControl.FilterDescriptors.Add(this.compositeFilter); } this.IsActive = true; }
i set the dynamic column type like this:
e.Column.ColumnGroupName = "Commercial"; e.Column.Header = new TextBlock { Text = "Data inserimento", TextAlignment = TextAlignment.Center, TextWrapping = TextWrapping.Wrap, Width = 75, LayoutTransform = new RotateTransform { Angle = -90 } }; ((GridViewDataColumn)(e.Column)).DataFormatString = "{0:dd-MMM-yy}"; ((GridViewDataColumn)(e.Column)).DataType = typeof(DateTime?); ((GridViewDataColumn)(e.Column)).FilterMemberType = typeof(DateTime?); e.Column.FilteringControl = new ucDateFilter { FromDate = DateTime.Now, ToDate =DateTime.Now.AddDays(5)};
