or
Telerik.Windows.Controls.GridView.DistinctValuesFilterDescriptor DistinctFilter;Telerik.Windows.Controls.GridView.MemberColumnFilterDescriptor filter;Telerik.Windows.Controls.GridView.FieldFilterDescriptor FieldFilter;public Telerik.Windows.Controls.GridView.DistinctValuesFilterDescriptor DistinctFilter;// Does not type in namespacepublic Telerik.Windows.Controls.GridView.MemberColumnFilterDescriptor filter;// Does not type in namespacepublic Telerik.Windows.Controls.GridView.FieldFilterDescriptor FieldFilter;// Does not type in namespacepublic Telerik.Windows.Data.FilterOperator x ;public Telerik.Windows.Data.FilterCompositionLogicalOperator x ;
private void SetLabelStyle() { FrameworkElement label = this.GetTemplateChild("PART_Label") as FrameworkElement; if (label != null && this.ParentForm != null && this.ParentForm.LabelStyle != null) { label.Style = this.ParentForm.LabelStyle; }}private void SetLabelStyle() { FrameworkElement label = this.GetTemplateChild("PART_Label") as FrameworkElement; if (label != null && this.ParentForm != null && this.ParentForm.LabelStyle != null && this.ParentForm.LabelStyle.TargetType.IsCompatibleWith(label.GetType())) { label.Style = this.ParentForm.LabelStyle; }}<Label FontSize="18" Padding="0" Content="{Binding Effective_Date, StringFormat=d}" /><HierarchicalDataTemplate x:Key="TreeObjectTemplate" ItemContainerStyle="{StaticResource containerStyle}" ItemsSource="{Binding ChildNodes}"> <StackPanel Orientation="Horizontal"> <TextBlock Text="{Binding DisplayName}" /> </StackPanel></HierarchicalDataTemplate> <telerik:RadTreeView Grid.Row="0" x:Name="tvTree" ItemTemplate="{StaticResource TreeObjectTemplate}" Margin="0,8,0,4" VerticalAlignment="Top" Padding="0,2,0,10" IsSingleExpandPath="False" IsLineEnabled="True" ExpanderStyle="{DynamicResource ExpanderStyle}" SelectionMode="Single" IsEditable="False" IsDragDropEnabled="False" ItemContainerStyle="{StaticResource containerStyle}" ItemsSource="{Binding tvTreeData}" SelectedItem="{Binding tvSelectedItem, Mode=TwoWay}" MouseRightButtonDown="treeView_MouseRightButtonDown"> <telerik:RadContextMenu.ContextMenu> <telerik:RadContextMenu> <telerik:RadMenuItem Header="Expand All Levels" Command="{Binding ExpandCommand}"/> <telerik:RadMenuItem Header="Collapse All Levels" Command="{Binding CollapseCommand}"/> </telerik:RadContextMenu> </telerik:RadContextMenu.ContextMenu> <i:Interaction.Triggers> <i:EventTrigger EventName="PreviewUnselected"> <Command:EventToCommand Command="{Binding Path=PreviewUnselectedCommand, Mode=OneWay}" PassEventArgsToCommand="True"/> </i:EventTrigger> <i:EventTrigger EventName="PreviewSelected"> <Command:EventToCommand Command="{Binding Path=PreviewSelectedCommand, Mode=OneWay}" PassEventArgsToCommand="True"/> </i:EventTrigger> </i:Interaction.Triggers> </telerik:RadTreeView>private void ExpandAllChildren(MyTreeNode node, bool bExpandOrCollapse){ foreach (MyTreeNode childNode in node.ChildNodes) { ExpandAllChildren(childNode, bExpandOrCollapse); } if (node.ChildNodes.Count > 0) node.IsExpanded = bExpandOrCollapse;}private RelayCommand _expandCommand;public ICommand ExpandCommand{ get { if (_expandCommand == null) { _expandCommand = new RelayCommand(() => { try { UICursor = Cursors.Wait; ExpandAllChildren(tvSelectedItem, true); } catch { } finally { UICursor = Cursors.Arrow; } }); } return _expandCommand; }}