Telerik Forums
UI for WPF Forum
6 answers
343 views
Hello.

I have some problem. I use ProperyGrid to modify object properies (I have mdi window control. And for selected window I set class A to PropertyGrid.Item in dynamic). In class A I have Prop1 and List1 of suitable values for Prop1. Prop1 is a selected value from List1. How can I display this property in ProperyGrd?

Thanks.
Anton
Top achievements
Rank 1
 answered on 28 Jan 2013
0 answers
125 views
Hi,

there is a bug in implicit expression dark theme for RadPropertyGrid when NestedPropertiesVisibility is set to Visible.

Content template of SelectedField is unreadable, because Foreground and Background are almost the same color (light gray)

Here is simple demonstration:
https://skydrive.live.com/redir?resid=51A46BBA4E9EF07E!1314&authkey=!ALZkP7tJNZg9sUg

Just select a field in propertygrid and move mouse cursor out of the field
Daniel
Top achievements
Rank 1
 asked on 28 Jan 2013
7 answers
386 views
I would like the all the group row in expanded state all the time. How can I change the group row style to hide the expander? May I get a copy of the GroupRow style? I try to get it from Blend, it seems not working for me.

Thanks!
Iden
Top achievements
Rank 1
 answered on 28 Jan 2013
1 answer
100 views
I'm trying to use the Image Editor (WPF Q3 2012 WPF4.0) for the first time.  In the open and save dialog is there a way to restrict the user to just JPG files (*.jpg, *.fpeg) types.  I don't see how to do this from the documentation.
Petya
Telerik team
 answered on 28 Jan 2013
3 answers
121 views
I have a GridViewDataColumn with a CellTemplate that contains an ItemsControl which is templated for TextBlocks. The CellEditTemplate has a similar setup only with TextBoxes. Essentially I have several TextBlocks/TextBoxes per cell. What I want is when the user double clicks on a TextBlock the grid goes into editing mode and selects the corresponding TextBox by index. If I double click the third TextBlock in the cell then I want the third TextBox to start editing.

The default behavior is the grid selects the first TextBox upon entering edit mode. I have tried a couple of code behind solutions based on moving through the visual tree when PreviewMouseDoubleClick happens. But when I force the grid to enter edit mode the TextBoxes are not part of the visual tree as I would expect them to be. 

I would prefer a pure XAML solution but do not know how that would be done.
Pavel Pavlov
Telerik team
 answered on 28 Jan 2013
7 answers
312 views
If you specify a normal tab control as a region and activate one of the views (already added) then the corresponding tab gets selected.
However if the RadTabControl is used as a region then nothing happens when the view is activated (tab doesn't get selected).
Also all tabs remain active views at all times and IsActive property for ViewModel (that implements IActiveAware) doesn't ever change i.e. on switching tabs.

I could have very well used a normal tab control but I want the expression dark theme which is only available for the RadTabControl.
Tina Stancheva
Telerik team
 answered on 28 Jan 2013
2 answers
129 views
Hi,

I need help in loading and controlling RadPanelBar programatically in MVVM pattern start from loading the panelBarItems.
I want to create a RadPanelBar which will have set of items and each item will have the ContentControl (loads an UserControl). I want to control the expand and selection of each item by set of buttons. Let me explain this briefly,

my RadPanelBar has 3 items, each PanelBarItem loads an usercontrol. I should be able to control expand of these panelbar items by a listbox having 3 buttons i.e. 1st RadPanelBar item expands on 1st button click, 2nd item expands on 2nd button click etc.
I should be able to do everything progrmatically i.e. even loading the panelbar items and List box items.

I am attaching the XAML code i have used to achieve this, 
<telerik:RadPanelBar x:Name="mybar" Width="830" Height="430" HorizontalAlignment="Left" Grid.Row="0" Focusable="False"
                                        VerticalAlignment="Stretch" BorderBrush="#FFCBD8E8" BorderThickness="1 1 0 1"                                       ExpandMode="Multiple" Margin="10,10,10,10" Background="Transparent"
                                        ItemsSource="{Binding PanelBarItemsList}"
                                        SelectedItem="{Binding PanelBarSelected, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}">
                         
                        <telerik:RadPanelBar.ItemTemplate>
                            <DataTemplate>
                                <telerik:RadPanelBarItem x:Name="pnliTopic" IsSelected="{Binding IsSelectedValue, Mode=TwoWay}" IsExpanded="{Binding IsExpandedValue, Mode=TwoWay}" >
                                    <telerik:RadPanelBarItem.Header>
                                        <TextBlock Text="{Binding Name}"  />
                                    </telerik:RadPanelBarItem.Header>
                                    <ContentControl x:Name="View" Margin="10,10,10,10" Visibility="Visible"  HorizontalAlignment="Left" VerticalAlignment="Top" Width="Auto" Height="Auto"
                                             Content="{Binding UserControlView}" />
                                </telerik:RadPanelBarItem>
                                </DataTemplate>
                        </telerik:RadPanelBar.ItemTemplate>
</telerik:RadPanelBar>

Here is the view model code,

private ObservableCollection<ToolOption> m_PanelBarItems;
public ObservableCollection<ToolOption> SettingsList
        {
            get { return m_PanelBarItems; }
            set
            {
                m_PanelBarItems = value;
            }
        }
Contructor()
{
 m_PanelBarItems = new ObservableCollection<PanelBarItem>();
 foreach (string strTool in m_LocalCollection)
 {
   PanelBarItem  item= new ToolOption(strTool );
   m_PanelBarItems.Add(item);
 }
 m_PanelBarItems[0].IsExpandedvalue = true;
 m_PanelBarItems[0].IsSelectedValue = true;
 m_PanelBarItems[0].UserControlView = new UserControlView1();
 PanelBarSelected = m_PanelBarItems[0];
 m_PanelBarItems[0].UserControlView.Visibility = Visibility.Visible;
 this.OnPropertyChanged("PanelBarSelectTool");
}
 public object PanelBarSelectTool { get; set; }
 
//PanelBarItem Class definition
 
public class PanelBarItem: INotifyPropertyChanged
    {
        public string Name { get; set; }
        private bool selected;
        private bool expanded;
        public System.Windows.Controls.ContentControl m_View = null;
        //private object m_View = null;
 
        public bool IsSelectedValue
        {
            get
            {
                return selected;
            }
            set
            {
                selected = value;
                this.OnPropertyChanged("IsSelectedValue");
            }
        }
 
        public bool IsExpandedvalue
        {
            get
            {
                return expanded;
            }
            set
            {
                expanded = value;
                this.OnPropertyChanged("IsExpandedvalue");
            }
        }
 
        public System.Windows.Controls.ContentControl UserControlView
        {
            get
            {
                return m_View;
            }
            set
            {
                if (m_View != value)
                {
                    m_View = value;
                }
            }
        }
 
        public PanelBarItem(string name)
        {
            this.Name = name;
            this.IsSelectedValue = false;
            this.IsExpandedvalue = false;
        }
 
        public event PropertyChangedEventHandler PropertyChanged;
        private void OnPropertyChanged(string propertyName)
        {
            if (this.PropertyChanged != null)
            {
                this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
            }
        }
    }

I hope you understand what i want to achieve.
Let me know if you need more information.
Tina Stancheva
Telerik team
 answered on 28 Jan 2013
1 answer
168 views
Hi,
Use ZIndex property doesn't work when i use it like that :

<telerik:CartesianGridLineAnnotation Axis="{Binding ElementName=verticalAxis}"
                                                         Value="0"
                                                         Stroke="White"                                                 
                                                         ZIndex="0"/>

The series are under the annotation.

So, when putting Panel.ZIndex = 0  CartesianGridLineAnnotation  with snoop, shows the annotation under the series like i expect.
Petar Marchev
Telerik team
 answered on 28 Jan 2013
5 answers
275 views
I am encountering a problem when applying implicit themes to a vb.net WPF project. The problem appears to be with the
RibbonView implicit theme: Themes/OfficeBlack/Telerik.Windows.Controls.RibbonView.xaml

I followed the instructions from the help system for implicit themes and created a resource dictionary in the application.xaml file as follows:

<ResourceDictionary.MergedDictionaries>

  <ResourceDictionary Source="Themes/OfficeBlack/Telerik.Windows.Controls.xaml" />

  <ResourceDictionary Source="Themes/OfficeBlack/Telerik.Windows.Controls.Input.xaml" />

  <ResourceDictionary Source="Themes/OfficeBlack/Telerik.Windows.Controls.Navigation.xaml" />

  <ResourceDictionary Source="Themes/OfficeBlack/Telerik.Windows.Controls.RibbonView.xaml" />

</ResourceDictionary.MergedDictionaries>

 

 

 

 

 

I also referenced the corresponding dlls from the installation directory:
C:\Program Files (x86)\Telerik\RadControls for WPF Q3 2012\Themes.Implicit\WPF40\Metro\Themes

The program compiles and runs OK.
The problem is that the xaml designer has the following error

 

System.ArgumentException

'{DependencyProperty.UnsetValue}' is not a valid value for the 'Telerik.Windows.Controls.RadRibbonGallery.Icon' property on a Setter.

The stack Trace indicates that the error takes place in the expression designer. This error is listed 3 times.
There are no errors in the xaml code or in the vb.net code
That same error occurs for several of the themes that I have tried (Windows8, windows7, OfficeBlue, OfficeBlack)

The markup for window that I am designing does not use the radRibbonView, nor does it use the RadRibbonGallery.

When I remove the following line from the application Xaml ResourceDictionary merge:
<ResourceDictionary Source="Themes/OfficeBlack/Telerik.Windows.Controls.RibbonView.xaml">

the errors disappear.

Do you have a bug in the RibbonView.xaml?

Thanks for your help in solving this

Thanks

Philippe



 

 

 

Mark
Top achievements
Rank 1
 answered on 28 Jan 2013
3 answers
330 views
i need to Trigger my methord when Change Value of RadNumericUpDown  Where is My Code :

<telerik:RadNumericUpDown x:Name="tv" HorizontalAlignment="Left" Margin="80,26,0,0" VerticalAlignment="Top" Width="183" IsInteger="True" Value="{Binding MethodParameters[0], BindsDirectlyToSource=True, Mode=OneWayToSource,  Source={StaticResource totalAmountIs},Converter ={StaticResource doubleToString}, UpdateSourceTrigger=PropertyChanged}" UpdateValueEvent="PropertyChanged"/>

But it Doesn`t work. if Bind a textbox with this same code it work fine. here were i am wrong ?? it well be best if give a example

Thank`s for lelp.
Yana
Telerik team
 answered on 28 Jan 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?