Telerik Forums
UI for WPF Forum
0 answers
82 views
Hi,

I'm looking to populate an Avery label template, may I ask how would I do that with the richtextbox? 
 
Minh
Top achievements
Rank 1
 asked on 30 Mar 2016
4 answers
208 views

I am new to Telerik controls having recently migrated from Xceed.

 

I’m attempting some simple editing of a dataset using the RadGridView control. 

 

I bind the ItemSource of the RadGridView through code.  When I click on an auto generated column, the data editing works perfectly.  When I try to edit a column that I have defined  as a GridViewDataColumn, I get an empty text box (the bound data disappears) and my changes to do not commit when I leave the column.

telerik:RadGridView Name="gvInelig" telerik:StyleManager.Theme="Office_Black">

  <telerik:RadGridView.Columns>

    <telerik:GridViewDataColumn Header="Name" DataMemberBinding="{Binding EmpNameFullLF}"/>

  </telerik:RadGridView.Columns>  

</telerik:RadGridView>

 

Take the grid above for example.  I have defined one column called "Name" which is bound to a column in the dataset called "EmpNameFullLF".  I can see my defined "Name" column along with the auto generated "EmpNameFullLF" column in my grid. 

When I click to edit the "Name" column, the bound data disappears and I get an empty text box.  If I type and hit enter, my change does not commit. 
When i click into the auto generated "EmpNameFullLF" column, I can change the bound data and my change persists when the row leaves edit mode.


Obviously, I’m missing something.  It's probably something simple.   However, I’ve looked through the demos and I don’t see what it is.  Any help is greatly appreciated.  Thank you.

Stefan
Telerik team
 answered on 30 Mar 2016
10 answers
844 views
Just getting started on this control, and WPF in general, so I don't know if this is a WPF thing, or a Telerik thing, but the scenario is as follows:

I have an autocomplete box bound to a 'Countries' collection of 'Country' objects (Country is a string)
I want the user to be able to type in anything, but also select from a list of suggestions if there is one there after a partial typed entry. The list of countries might not contain the typed entry.


The trouble is - I can't get the SelectedItem and SearchText to bind to my MVVM objects SelectedCountry property at the same time.

This is the markup

  <telerik:RadAutoCompleteBox 
        x
:Name="AutoComp" 
        DisplayMemberPath
="Country" TextSearchPath="Country" 
        ItemsSource
="{Binding Countries, Mode=OneWay, Source=StaticResource Lookups}}" 
        SelectionMode
="Single" 
        SearchText
="{Binding MVVObject.SelectedCountry, Mode=TwoWay, UpdateSourceTrigger=LostFocus}" 
  />

I've tried various binding statements for the SelectedItem property, but I'd have thought when the dropdown entry is clicked, and the text changes in the textbox, the SearchText would be updated, but actually, it doesn't. So if I type 'bul', then select Bulgaria from the dropdown, when I set focus to another control, 'bul' is what is INotified to my SelectedCountry property...

Am I missing something?
Yana
Telerik team
 answered on 30 Mar 2016
1 answer
168 views

Hi,

I followed this  link (http://docs.telerik.com/devtools/wpf/controls/radmenu/populating-with-data/binding-to-dynamic-data.html#binding-to-dynamic-data) from telerik documentation to build radmenu, but I don't know how to  add the command  for each item.

help plz

Yana
Telerik team
 answered on 30 Mar 2016
1 answer
117 views

Hello,I'm new in WPF. Let me explain you what is my case. So i have three RadTreeView, my point is, is it possible when I expand one of the the item in the first tree automatically to expand the same element in the others trees? And I have another question how to make every line in the RadTreeView to be different color?

For example 1, 3, 5, 7 line to be gray, and 2,4,6,8 to be white.

 

Petar Mladenov
Telerik team
 answered on 30 Mar 2016
2 answers
121 views

Hi! I use RadCombobox in my WPF MVVM application. I use Prism 6 and Prism UserControl(WPF) where I set RadComboBox. This Prism UserControl(WPF) is in one of Prism module projects in the application solution but not in the Shell project.  Below is declaration and creation of ObservableCollection in Model (I bind RadComboBox to this collection in View that is abovementioned Prism UserControl(WPF)):
public ObservableCollection<string> AvailableComPortsNames { get; set; }
this.AvailableComPortsNames = new ObservableCollection<string>(SerialPort.GetPortNames()); // in Model's constructor.

Below is declaration and creation of Model instance in ViewModel:

public ConnectionSettingsModel ConnectionSettingsModel
{
       get { return this._connectionSettingsModel; }
       set { this.SetProperty(ref this._connectionSettingsModel, value); }
 }

this.ConnectionSettingsModel = new ConnectionSettingsModel(); // in ViewModel's constructor.

Below is View in a shortened form:

<UserControl x:Class="ConnectDisconnect.Views.ConnectionSettingsView"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:prism="http://prismlibrary.com/"            
             xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"             
             prism:ViewModelLocator.AutoWireViewModel="True">

<Grid>
         . . . . . . . . . . .

         <Label Grid.Row="0" Grid.Column="0" Content="Serial Port" HorizontalAlignment="Right"/>
        <telerik:RadComboBox x:Name="radComboBox" HorizontalAlignment="Left" Margin="1,3,1,2" Grid.Row="0" Grid.Column="1"

                     VerticalAlignment="Top"  Width="250" IsReadOnly="True"

                     ItemsSource="{Binding ConnectionSettingsModel.AvailableComPortsNames}" SelectedValue="{Binding SelectedComportName}"/>

</Grid>

Binding works good but the appearance of RadComboBox in runtime is very starnge. Please see attached files: 'RadCombobox_is_Closed.PNG' and 'RadCombobox_after_Element_Selection.PNG'. You can see there that RadComboBox has no marked border! Why? Help me solve this problem.

P.S. Just in case I display below ApplicationResources section of App.xaml file that is in the Shell project of application solution.

<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 Source="/Telerik.Windows.Themes.Office2013;component/Themes/Telerik.Windows.Controls.Navigation.xaml" />
                <ResourceDictionary Source="/Telerik.Windows.Themes.Office2013;component/Themes/Telerik.Windows.Controls.Docking.xaml" />
            </ResourceDictionary.MergedDictionaries>
            <Style TargetType="views:Shell" BasedOn="{StaticResource RadWindowStyle}" />
        </ResourceDictionary>
    </Application.Resources>

Shell is RadWindow and the application solution was created as Telerik Empty Project. And Shell was added to the application after the application creation.

Eugene
Top achievements
Rank 1
 answered on 30 Mar 2016
1 answer
161 views

If I designed with RadDiagramShape, I can Add/Remove RadDiagramShape in RadDiagram, though.

How can I Visible or Hidden Children nodes in RadDiagram when Node were clicked?

I made some source code for diagram like this:

    public class NodeBase : HierarchicalNodeViewModel
    {

        private long id;
        public long Id
        {
            get { return id; }
            set
            {
                if (id != value)
                {
                    id = value;
                    this.OnPropertyChanged("Id");
                }
            }
        }

         ...(Omit)...
    }

    public class LinkBase : LinkViewModelBase<HierarchicalNodeViewModel>
    {

        private eLinkTypes linkType;
        public eLinkTypes LinkType
        {
            get { return linkType; }
            set
            {
                if (linkType != value)
                {
                    linkType = value;

                    this.OnPropertyChanged("LinkType");
                }
            }
        }
         ...(Omit)...
    }

    public class FlowChartManager : ObservableGraphSourceBase<NodeBase , LinkBase>
    {
          public FlowChartManager()
        {
            PopulateGraphSource();
        }

        public FlowChartManager PopulateGraphSource()
        {
            //Add Nodes
            NodeBase processNode1 = new NodeBase ()
            {
                Position = new Point(10, 10),
                Content = "Process 1",
            }; base.InternalItems.Add(processNode1);

 

            NodeBase processNode2_1 = new NodeBase ()
            {
                Position = new Point(100, 100),
                Content = "Process 2-1",
            }; 

            NodeBase processNode2 = new NodeBase ()
            {
                Position = new Point(100, 100),
                Content = "Process 2",
            };processNode2 .Children.Add(processNode2_1);

             base.InternalItems.Add(processNode2);

 

            NodeBase processNode3 = new NodeBase ()
            {
                Position = new Point(200, 200),
                Content = "Process 3",
            }; base.InternalItems.Add(processNode3);           

 

            //Add Links
            base.InternalLinks.Add(new LinkBase(processNode1, processNode2) { LinkType = eLinkTypes.None, TargetCapType = Telerik.Windows.Diagrams.Core.CapType.Arrow1Filled });

         }

Dinko | Tech Support Engineer
Telerik team
 answered on 29 Mar 2016
6 answers
371 views
I'm having issues implementing a ControlTemplate for the RadPropertyGrid. When I create a ControlTemplate in Blend by editing a copy and subsequently add it to the resources of my view, the PropertyGridPresenter region of the control area no longer displays the bound property definitions, though the other visual regions remain intact. This occurs with AutoGeneratePropertyDefinitions in both "False" and "True" states. The generated template is below, am I missing something crucial?


        <ControlTemplate x:Key="RadPropertyGridControlTemplate" TargetType="{x:Type telerik:RadPropertyGrid}">
            <Border x:Name="PART_RootElement" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}">
                <Grid x:Name="PART_PropertyGridContainer" Background="{TemplateBinding Background}">
                    <Grid.RowDefinitions>
                        <RowDefinition Height="Auto"/>
                        <RowDefinition Height="*"/>
                        <RowDefinition Height="Auto"/>
                    </Grid.RowDefinitions>
                    <Border x:Name="Header" BorderBrush="#FF848484" BorderThickness="0,0,0,1" Margin="0,0,0,-1">
                        <Border BorderBrush="White" BorderThickness="1">
                            <Border.Background>
                                <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                                    <GradientStop Color="White" Offset="0"/>
                                    <GradientStop Color="#FFCDCDCD" Offset="1"/>
                                    <GradientStop Color="#FFCECECE" Offset="0.42"/>
                                    <GradientStop Color="#FFAFAFAF" Offset="0.43"/>
                                </LinearGradientBrush>
                            </Border.Background>
                            <Grid Margin="1">
                                <Grid.ColumnDefinitions>
                                    <ColumnDefinition Width="Auto"/>
                                    <ColumnDefinition Width="Auto"/>
                                    <ColumnDefinition Width="*"/>
                                </Grid.ColumnDefinitions>
                                <telerik:RadRadioButton x:Name="groupButton" Margin="0,0,3,0" Visibility="{TemplateBinding SortAndGroupButtonsVisibility}" Width="28">
                                    <telerik:StyleManager.Theme>
                                        <telerik:Office_BlackTheme/>
                                    </telerik:StyleManager.Theme>
                                    <telerik:RadRadioButton.ToolTip>
                                        <ToolTip Content="Categorize" telerik:LocalizationManager.ResourceKey="Categorize">
                                            <telerik:StyleManager.Theme>
                                                <telerik:Office_BlackTheme/>
                                            </telerik:StyleManager.Theme>
                                        </ToolTip>
                                    </telerik:RadRadioButton.ToolTip>
                                    <Path Data="M7.0000019,8.9999981L16.999998,8.9999981 16.999998,9.9999981 7.0000019,9.9999981z M7.0000019,6.9999995L16.999998,6.9999995 16.999998,7.9999995 7.0000019,7.9999995z M0,6L3.9999998,8.5 0,11z M6.999999,3.0000055L16.999996,3.0000055 16.999996,4.0000052 6.999999,4.0000052z M7.0000019,0.99999905L16.999998,0.99999905 16.999998,1.9999989 7.0000019,1.9999989z M0,0L4,2.5000002 0,5.0000005z" Fill="Black" Height="11" Stretch="Fill" SnapsToDevicePixels="True" StrokeThickness="0" Width="17"/>
                                </telerik:RadRadioButton>
                                <telerik:RadRadioButton x:Name="sortButton" Content="A-Z" Grid.Column="1" IsChecked="True" Visibility="{TemplateBinding SortAndGroupButtonsVisibility}" Width="28">
                                    <telerik:StyleManager.Theme>
                                        <telerik:Office_BlackTheme/>
                                    </telerik:StyleManager.Theme>
                                    <telerik:RadRadioButton.ToolTip>
                                        <ToolTip Content="Alphabetical" telerik:LocalizationManager.ResourceKey="Alphabetical">
                                            <telerik:StyleManager.Theme>
                                                <telerik:Office_BlackTheme/>
                                            </telerik:StyleManager.Theme>
                                        </ToolTip>
                                    </telerik:RadRadioButton.ToolTip>
                                </telerik:RadRadioButton>
                                <TextBox x:Name="searchAsYouTypeTextBox" Grid.Column="2" HorizontalAlignment="Stretch" Margin="2,0,0,0" telerik:TextBoxBehavior.SelectAllOnGotFocus="True" Text="{Binding FilterText, ElementName=PropertyGridPresenter, Mode=TwoWay}" telerik:TextBoxBehavior.UpdateTextOnEnter="True" telerik:TextBoxBehavior.UpdateTextOnTextChanged="True" Visibility="{TemplateBinding SearchBoxVisibility}">
                                    <telerik:StyleManager.Theme>
                                        <telerik:Office_BlackTheme/>
                                    </telerik:StyleManager.Theme>
                                </TextBox>
                                <Path Grid.Column="2" Data="M8.4939966,1.9999999C6.5610008,1.9999999 4.9939971,3.5670033 4.9939971,5.5 4.9939971,7.4329967 6.5610008,9 8.4939966,9 10.426993,9 11.993997,7.4329967 11.993997,5.5 11.993997,3.5670033 10.426993,1.9999999 8.4939966,1.9999999z M8.4939976,0C11.531564,-8.7786177E-08 13.993998,2.4624338 13.993998,5.5 13.993998,8.5375662 11.531564,11 8.4939976,11 7.3549109,11 6.2967014,10.65372 5.4188957,10.060686L5.3678761,10.025319 1.4142134,13.978982 0,12.564768 3.9563832,8.6083851 3.9333115,8.5751028C3.3402777,7.6972966 2.9939978,6.6390872 2.9939978,5.5 2.9939978,2.4624338 5.4564314,-8.7786177E-08 8.4939976,0z" Fill="#FF919191" HorizontalAlignment="Right" Height="14" Margin="4" Stretch="Fill" SnapsToDevicePixels="True" StrokeThickness="2" Visibility="{TemplateBinding SearchBoxVisibility}" Width="14"/>
                            </Grid>
                        </Border>
                    </Border>
                    <Border BorderBrush="#FF848484" BorderThickness="0,1" Grid.Row="1">
                        <ScrollViewer x:Name="PART_ItemsScrollViewer" HorizontalScrollBarVisibility="Auto" VerticalScrollBarVisibility="Auto">
                            <telerik:StyleManager.Theme>
                                <telerik:Office_BlackTheme/>
                            </telerik:StyleManager.Theme>
                            <telerik:PropertyGridPresenter x:Name="PropertyGridPresenter" LabelColumnWidth="{Binding LabelColumnWidth, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}" PropertyDefinitions="{Binding PropertyDefinitions, RelativeSource={RelativeSource TemplatedParent}}">
                                <telerik:PropertyGridPresenter.ContentTemplate>
                                    <Binding ElementName="groupButton" Path="IsChecked">
                                        <Binding.Converter>
                                            <telerik:ItemTemplateConverter>
                                                <telerik:ItemTemplateConverter.FlatTemplate>
                                                    <DataTemplate>
                                                        <ItemsControl>
                                                            <ItemsControl.ItemTemplate>
                                                                <DataTemplate>
                                                                    <telerik:PropertyGridField Content="{Binding}">
                                                                        <telerik:PropertyGridField.Resources>
                                                                            <Style x:Key="RadComboBox" TargetType="{x:Type telerik:RadComboBox}">
                                                                                <Setter Property="ItemContainerStyle">
                                                                                    <Setter.Value>
                                                                                        <Style TargetType="{x:Type telerik:RadComboBoxItem}">
                                                                                            <Setter Property="telerik:StyleManager.Theme">
                                                                                                <Setter.Value>
                                                                                                    <telerik:Office_BlackTheme/>
                                                                                                </Setter.Value>
                                                                                            </Setter>
                                                                                        </Style>
                                                                                    </Setter.Value>
                                                                                </Setter>
                                                                                <Setter Property="IsEditable" Value="True"/>
                                                                                <Setter Property="telerik:StyleManager.Theme">
                                                                                    <Setter.Value>
                                                                                        <telerik:Office_BlackTheme/>
                                                                                    </Setter.Value>
                                                                                </Setter>
                                                                            </Style>
                                                                            <Style x:Key="TextBox" TargetType="{x:Type TextBox}">
                                                                                <Setter Property="Padding" Value="3,2,0,2"/>
                                                                                <Setter Property="Background" Value="Transparent"/>
                                                                                <Setter Property="BorderBrush" Value="Transparent"/>
                                                                                <Setter Property="telerik:StyleManager.Theme">
                                                                                    <Setter.Value>
                                                                                        <telerik:Office_BlackTheme/>
                                                                                    </Setter.Value>
                                                                                </Setter>
                                                                            </Style>
                                                                            <Style x:Key="CheckBox" TargetType="{x:Type CheckBox}">
                                                                                <Setter Property="Margin" Value="3,2,0,2"/>
                                                                                <Setter Property="telerik:StyleManager.Theme">
                                                                                    <Setter.Value>
                                                                                        <telerik:Office_BlackTheme/>
                                                                                    </Setter.Value>
                                                                                </Setter>
                                                                            </Style>
                                                                        </telerik:PropertyGridField.Resources>
                                                                        <telerik:StyleManager.Theme>
                                                                            <telerik:Office_BlackTheme/>
                                                                        </telerik:StyleManager.Theme>
                                                                    </telerik:PropertyGridField>
                                                                </DataTemplate>
                                                            </ItemsControl.ItemTemplate>
                                                            <ItemsControl.Style>
                                                                <Style TargetType="{x:Type ItemsControl}">
                                                                    <Setter Property="BorderBrush" Value="#FF848484"/>
                                                                    <Setter Property="BorderThickness" Value="0,0,0,1"/>
                                                                    <Setter Property="Template">
                                                                        <Setter.Value>
                                                                            <ControlTemplate TargetType="{x:Type ItemsControl}">
                                                                                <Border BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Background="{TemplateBinding Background}" Padding="{TemplateBinding Padding}" VerticalAlignment="Top">
                                                                                    <ItemsPresenter/>
                                                                                </Border>
                                                                            </ControlTemplate>
                                                                        </Setter.Value>
                                                                    </Setter>
                                                                </Style>
                                                            </ItemsControl.Style>
                                                        </ItemsControl>
                                                    </DataTemplate>
                                                </telerik:ItemTemplateConverter.FlatTemplate>
                                                <telerik:ItemTemplateConverter.GroupTemplate>
                                                    <DataTemplate>
                                                        <ItemsControl>
                                                            <ItemsControl.ItemTemplate>
                                                                <DataTemplate>
                                                                    <Border BorderBrush="#FF848484" BorderThickness="0,1,0,0" Margin="0,-1,0,0">
                                                                        <Grid>
                                                                            <Grid.RowDefinitions>
                                                                                <RowDefinition Height="Auto"/>
                                                                                <RowDefinition Height="*"/>
                                                                            </Grid.RowDefinitions>
                                                                            <telerik:RadToggleButton x:Name="expandCollapseButton" BorderBrush="{x:Null}" Content="{Binding Key}" IsChecked="True">
                                                                                <telerik:RadToggleButton.Style>
                                                                                    <Style TargetType="{x:Type telerik:RadToggleButton}">
                                                                                        <Setter Property="VerticalContentAlignment" Value="Stretch"/>
                                                                                        <Setter Property="HorizontalContentAlignment" Value="Left"/>
                                                                                        <Setter Property="Height" Value="25"/>
                                                                                        <Setter Property="FontWeight" Value="Bold"/>
                                                                                        <Setter Property="Foreground" Value="Black"/>
                                                                                        <Setter Property="SnapsToDevicePixels" Value="True"/>
                                                                                        <Setter Property="BorderBrush" Value="#FF848484"/>
                                                                                        <Setter Property="Template">
                                                                                            <Setter.Value>
                                                                                                <ControlTemplate TargetType="{x:Type telerik:RadToggleButton}">
                                                                                                    <Grid>
                                                                                                        <Grid.ColumnDefinitions>
                                                                                                            <ColumnDefinition Width="Auto"/>
                                                                                                            <ColumnDefinition Width="*"/>
                                                                                                        </Grid.ColumnDefinitions>
                                                                                                        <Border x:Name="IconOuterBorder" BorderBrush="#FF848484" BorderThickness="0,0,0,1" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Width="25">
                                                                                                            <Border x:Name="IconInnerBorder" BorderBrush="White" BorderThickness="1,1,0,1" Background="#FFE4E4E4">
                                                                                                                <Path x:Name="ExpanderButton" Data="M0,0L1,0 2,0 2,0.99999991 3,0.99999991 3,2 4,2 4,0.99999991 5,0.99999991 5,0 5.9999999,0 7,0 7,0.99999991 5.9999999,0.99999991 5.9999999,2 5,2 5,3 4,3 4,4 3,4 3,3 2,3 2,2 1,2 1,0.99999991 0,0.99999991z" Fill="Black" HorizontalAlignment="Center" Height="5" RenderTransformOrigin="0.5,0.5" SnapsToDevicePixels="True" VerticalAlignment="Center" Width="7">
                                                                                                                    <Path.RenderTransform>
                                                                                                                        <RotateTransform/>
                                                                                                                    </Path.RenderTransform>
                                                                                                                </Path>
                                                                                                            </Border>
                                                                                                        </Border>
                                                                                                        <Border BorderBrush="#FF848484" BorderThickness="0,0,0,1" Grid.ColumnSpan="2" Grid.Column="1">
                                                                                                            <Border BorderBrush="White" BorderThickness="0,1,1,1" Background="#FFE4E4E4">
                                                                                                                <ContentPresenter x:Name="PART_ContentPresenter" ContentTemplate="{TemplateBinding ContentTemplate}" Content="{TemplateBinding Content}" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" Margin="{TemplateBinding Padding}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}"/>
                                                                                                            </Border>
                                                                                                        </Border>
                                                                                                    </Grid>
                                                                                                    <ControlTemplate.Triggers>
                                                                                                        <Trigger Property="IsChecked" Value="True">
                                                                                                            <Trigger.EnterActions>
                                                                                                                <BeginStoryboard>
                                                                                                                    <Storyboard>
                                                                                                                        <DoubleAnimationUsingKeyFrames BeginTime="0" Storyboard.TargetProperty="(UIElement.RenderTransform).(RotateTransform.Angle)" Storyboard.TargetName="ExpanderButton">
                                                                                                                            <SplineDoubleKeyFrame KeyTime="0:0:0.2" Value="180"/>
                                                                                                                        </DoubleAnimationUsingKeyFrames>
                                                                                                                    </Storyboard>
                                                                                                                </BeginStoryboard>
                                                                                                            </Trigger.EnterActions>
                                                                                                            <Trigger.ExitActions>
                                                                                                                <BeginStoryboard>
                                                                                                                    <Storyboard>
                                                                                                                        <DoubleAnimationUsingKeyFrames BeginTime="0" Storyboard.TargetProperty="(UIElement.RenderTransform).(RotateTransform.Angle)" Storyboard.TargetName="ExpanderButton">
                                                                                                                            <SplineDoubleKeyFrame KeyTime="0:0:0.2" Value="0"/>
                                                                                                                        </DoubleAnimationUsingKeyFrames>
                                                                                                                    </Storyboard>
                                                                                                                </BeginStoryboard>
                                                                                                            </Trigger.ExitActions>
                                                                                                            <Setter Property="BorderThickness" TargetName="IconOuterBorder" Value="0"/>
                                                                                                            <Setter Property="BorderThickness" TargetName="IconInnerBorder" Value="1,1,0,0"/>
                                                                                                        </Trigger>
                                                                                                    </ControlTemplate.Triggers>
                                                                                                </ControlTemplate>
                                                                                            </Setter.Value>
                                                                                        </Setter>
                                                                                    </Style>
                                                                                </telerik:RadToggleButton.Style>
                                                                            </telerik:RadToggleButton>
                                                                            <ContentPresenter x:Name="PART_ContentPresenter" Content="{Binding Items}" Grid.Row="1">
                                                                                <ContentPresenter.ContentTemplate>
                                                                                    <DataTemplate>
                                                                                        <ItemsControl>
                                                                                            <ItemsControl.ItemTemplate>
                                                                                                <DataTemplate>
                                                                                                    <telerik:PropertyGridField Content="{Binding}">
                                                                                                        <telerik:PropertyGridField.Resources>
                                                                                                            <Style x:Key="RadComboBox" TargetType="{x:Type telerik:RadComboBox}">
                                                                                                                <Setter Property="ItemContainerStyle">
                                                                                                                    <Setter.Value>
                                                                                                                        <Style TargetType="{x:Type telerik:RadComboBoxItem}">
                                                                                                                            <Setter Property="telerik:StyleManager.Theme">
                                                                                                                                <Setter.Value>
                                                                                                                                    <telerik:Office_BlackTheme/>
                                                                                                                                </Setter.Value>
                                                                                                                            </Setter>
                                                                                                                        </Style>
                                                                                                                    </Setter.Value>
                                                                                                                </Setter>
                                                                                                                <Setter Property="IsEditable" Value="True"/>
                                                                                                                <Setter Property="telerik:StyleManager.Theme">
                                                                                                                    <Setter.Value>
                                                                                                                        <telerik:Office_BlackTheme/>
                                                                                                                    </Setter.Value>
                                                                                                                </Setter>
                                                                                                            </Style>
                                                                                                            <Style x:Key="TextBox" TargetType="{x:Type TextBox}">
                                                                                                                <Setter Property="Padding" Value="3,2,0,2"/>
                                                                                                                <Setter Property="Background" Value="Transparent"/>
                                                                                                                <Setter Property="BorderBrush" Value="Transparent"/>
                                                                                                                <Setter Property="telerik:StyleManager.Theme">
                                                                                                                    <Setter.Value>
                                                                                                                        <telerik:Office_BlackTheme/>
                                                                                                                    </Setter.Value>
                                                                                                                </Setter>
                                                                                                            </Style>
                                                                                                            <Style x:Key="CheckBox" TargetType="{x:Type CheckBox}">
                                                                                                                <Setter Property="Margin" Value="3,2,0,2"/>
                                                                                                                <Setter Property="telerik:StyleManager.Theme">
                                                                                                                    <Setter.Value>
                                                                                                                        <telerik:Office_BlackTheme/>
                                                                                                                    </Setter.Value>
                                                                                                                </Setter>
                                                                                                            </Style>
                                                                                                        </telerik:PropertyGridField.Resources>
                                                                                                        <telerik:StyleManager.Theme>
                                                                                                            <telerik:Office_BlackTheme/>
                                                                                                        </telerik:StyleManager.Theme>
                                                                                                    </telerik:PropertyGridField>
                                                                                                </DataTemplate>
                                                                                            </ItemsControl.ItemTemplate>
                                                                                            <ItemsControl.Style>
                                                                                                <Style TargetType="{x:Type ItemsControl}">
                                                                                                    <Setter Property="BorderBrush" Value="#FF848484"/>
                                                                                                    <Setter Property="BorderThickness" Value="0,0,0,1"/>
                                                                                                    <Setter Property="Template">
                                                                                                        <Setter.Value>
                                                                                                            <ControlTemplate TargetType="{x:Type ItemsControl}">
                                                                                                                <Border BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Background="{TemplateBinding Background}" Padding="{TemplateBinding Padding}" VerticalAlignment="Top">
                                                                                                                    <ItemsPresenter/>
                                                                                                                </Border>
                                                                                                            </ControlTemplate>
                                                                                                        </Setter.Value>
                                                                                                    </Setter>
                                                                                                </Style>
                                                                                            </ItemsControl.Style>
                                                                                        </ItemsControl>
                                                                                    </DataTemplate>
                                                                                </ContentPresenter.ContentTemplate>
                                                                                <ContentPresenter.Visibility>
                                                                                    <Binding ElementName="expandCollapseButton" Path="IsChecked">
                                                                                        <Binding.Converter>
                                                                                            <telerik:BooleanToVisibilityConverter/>
                                                                                        </Binding.Converter>
                                                                                    </Binding>
                                                                                </ContentPresenter.Visibility>
                                                                            </ContentPresenter>
                                                                        </Grid>
                                                                    </Border>
                                                                </DataTemplate>
                                                            </ItemsControl.ItemTemplate>
                                                        </ItemsControl>
                                                    </DataTemplate>
                                                </telerik:ItemTemplateConverter.GroupTemplate>
                                            </telerik:ItemTemplateConverter>
                                        </Binding.Converter>
                                    </Binding>
                                </telerik:PropertyGridPresenter.ContentTemplate>
                                <telerik:StyleManager.Theme>
                                    <telerik:Office_BlackTheme/>
                                </telerik:StyleManager.Theme>
                            </telerik:PropertyGridPresenter>
                        </ScrollViewer>
                    </Border>
                    <Border x:Name="PART_DescriptionPanel" BorderBrush="White" BorderThickness="0,1,0,0" Background="#FFBFBFBF" MinHeight="75" Grid.Row="2" Visibility="{TemplateBinding DescriptionPanelVisibility}">
                        <StackPanel Orientation="Vertical">
                            <TextBlock FontWeight="Bold" Margin="5" Text="{Binding SelectedPropertyDefinition.DisplayName, ElementName=PropertyGridPresenter}"/>
                            <TextBlock Margin="5" TextWrapping="Wrap" Text="{Binding SelectedPropertyDefinition.Description, ElementName=PropertyGridPresenter}"/>
                        </StackPanel>
                    </Border>
                </Grid>
            </Border>
        </ControlTemplate>

Ivan Ivanov
Telerik team
 answered on 29 Mar 2016
1 answer
117 views
How can we set focus to GridViewDataColumn, using keyboard. For example, I have a column with "Name" as header. I want to set focus to that cell in the selected row using a access key like "Alt + N". Is this possible or is there any alternative method available?
Stefan
Telerik team
 answered on 29 Mar 2016
12 answers
639 views
Hello,

I have a problems when i try to display certain PDF files in my company. All I get is a blank page.

Those pdf files come mostly from a XEROX Printer.

Please see the attached file and try it out. Note that the file is a PDF Document, the File Extension .png is just a workaround the allowed extensions. You need to remove ".png" after downloading the file.

I tried it with the current WPF Q3 2014 release from October 27, 2014.

Kindly Regards

Joel

Johan
Top achievements
Rank 1
 answered on 29 Mar 2016
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?