Telerik Forums
UI for WPF Forum
2 answers
159 views
I have a RadTreeListView in an MVVM project which I am trying to persist with the IsolatedStorageProvider.  The RadRibbon control save and load routines use a mediator pattern with ICommand and command classes.It only partially works.  I can save and restore column width settings, but IsExpanded and IsSelected cannot be saved and restored.  Also, it will not save and restore columns that are moved.  I save the settings, move a column and then load the settings, expecting the column to return to its original position, but some or all of the data in the columns disappear.  There may be other properties that can be saved or can't be saved, but I don't know what to test for. 
Gk
Top achievements
Rank 1
 answered on 29 Jan 2013
1 answer
303 views
Hello,

I have a problem with WPF Command and I need some Help.
I defined some static RoutedCommand in my App class. My main window is composed of a RadRibbonView and a RadTabControl.
I Populate the TabControl with some classes that inherit from RadTabItem.
 Buttons in the ribbon are bound to my RoutedCommand and I add commandbindings bound to the commands In my RadTabItem children classes.
My TabItem has the Content property set to a UserControl.The buttons works fine while the TabItem header has the focus but if I click on the content of the TabItem (my UC), the button stop calling the CanExecute and Executed callbacks of my TabItem.
I Want the selected TabItem always manage the CanExecute and Execute call for all commands.

How can i handle this ?

Thank you,
Benjamin
Top achievements
Rank 1
 answered on 28 Jan 2013
6 answers
381 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
156 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
426 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
128 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
172 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
365 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
152 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
206 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
Narrow your results
Selected tags
Tags
GridView
General Discussions
Chart
RichTextBox
Docking
ScheduleView
ChartView
TreeView
Diagram
Map
ComboBox
TreeListView
Window
RibbonView and RibbonWindow
PropertyGrid
DragAndDrop
TabControl
TileView
Carousel
DataForm
PDFViewer
MaskedInput (Numeric, DateTime, Text, Currency)
AutoCompleteBox
DatePicker
Buttons
ListBox
GanttView
PivotGrid
Spreadsheet
Gauges
NumericUpDown
PanelBar
DateTimePicker
DataFilter
Menu
ContextMenu
TimeLine
Calendar
Installer and Visual Studio Extensions
ImageEditor
BusyIndicator
Expander
Slider
TileList
DataPager
PersistenceFramework
Styling
TimeBar
OutlookBar
TransitionControl
FileDialogs
Book
ToolBar
ColorPicker
TimePicker
MultiColumnComboBox
SyntaxEditor
VirtualGrid
NavigationView (Hamburger Menu)
Wizard
ExpressionEditor
WatermarkTextBox
DesktopAlert
BarCode
SpellChecker
DataServiceDataSource
EntityFrameworkDataSource
RadialMenu
ChartView3D
Data Virtualization
BreadCrumb
LayoutControl
ProgressBar
Sparkline
TabbedWindow
ToolTip
CloudUpload
ColorEditor
TreeMap and PivotMap
EntityFrameworkCoreDataSource (.Net Core)
HeatMap
Chat (Conversational UI)
VirtualizingWrapPanel
Calculator
NotifyIcon
TaskBoard
TimeSpanPicker
BulletGraph
Licensing
WebCam
CardView
DataBar
FilePathPicker
Callout
PasswordBox
SplashScreen
Localization
Rating
Accessibility
CollectionNavigator
AutoSuggestBox
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?