Ewerton Miglioranza
Top achievements
Rank 1
Ewerton Miglioranza
asked on 03 Jun 2010, 08:02 AM
hi,
I am trying to add a row in a grid that is insine a Pane Group. It works fine if the pane is docked, however, when it's in auto hide mode the property SelectedPane returns the pane that is docked behind it, and if there is no pane docked it returns a null pointer. How can I get the "focused" pane, instead of the selected pane? Thanks.
I am trying to add a row in a grid that is insine a Pane Group. It works fine if the pane is docked, however, when it's in auto hide mode the property SelectedPane returns the pane that is docked behind it, and if there is no pane docked it returns a null pointer. How can I get the "focused" pane, instead of the selected pane? Thanks.
4 Answers, 1 is accepted
0
Ewerton Miglioranza
Top achievements
Rank 1
answered on 03 Jun 2010, 07:25 PM
ok, I realized that hided panels are recreated outside the Pane Group. Got to think in another way then.
0
Hello Ewerton,
Miroslav Nedyalkov
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
The unpinned panes (that appear in the auto-hide area) are actually removed from the Items collection of its group and placed in another control, called AutoHideArea. That's why you cannot focus it.
Unfortunately the Docking control doesn't support what you need out-of-the box, but we are considering adding suck feature - pane activation methods, events and properties.
Miroslav Nedyalkov
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Garry Clark
Top achievements
Rank 1
answered on 15 Jun 2010, 03:21 AM
Miroslav,
This maybe the same sort of issue, but I have a MVVM Prism application that puts its contents into RadPanes. I am trying to do something like this.
(IsSelectedProperty bound to a bool property in ViewModel)
(ViewModel bool property)
(Method that sets property)
So basically if the RegionManager contains the view I would like to Select the tab containing the view. Is this something you are working on or should I be able to do this now and I am just doing it incorrectly?
Thanks!
This maybe the same sort of issue, but I have a MVVM Prism application that puts its contents into RadPanes. I am trying to do something like this.
(IsSelectedProperty bound to a bool property in ViewModel)
<telerikDocking:RadDocumentPane x:Class="EliteExtender.CaseManagement.Views.SchedulerView" |
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" |
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" |
xmlns:telerikDocking="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Docking" |
IsSelected="{Binding Selected}" mc:Ignorable="d" |
d:DesignHeight="500" d:DesignWidth="600" xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation" |
Header="{Binding HeaderInfo}"> |
private bool selected = true; |
public bool Selected |
{ |
get |
{ |
return selected; |
} |
set |
{ |
selected = value; |
RaisePropertyChanged(SelectedProperty); |
} |
} |
(Method that sets property)
private void LaunchScheduler() |
{ |
if (regionManager.Regions[RegionNames.ContentRegion].ActiveViews.Contains(this.View)) |
{ |
Selected = true; |
//regionManager.Regions[RegionNames.ContentRegion].Activate(this.View); |
} |
else |
{ |
regionManager.Regions[RegionNames.ContentRegion].Show(this.View); |
} |
} |
So basically if the RegionManager contains the view I would like to Select the tab containing the view. Is this something you are working on or should I be able to do this now and I am just doing it incorrectly?
Thanks!
0
Hi Garry,
Miroslav Nedyalkov
the Telerik team
I'm not sure what is the searched result of this code, but if the problem is that the binding stops working, the reason for this is that the RadPaneGroup changes the IsSelected property of the RadPane. Because of these reason you need to change the mode of the binding to TwoWay - to receive the changes in the ViewModel as well.
Hope this helps!
Miroslav Nedyalkov
the Telerik team
Do you want to have your say when we set our development plans?
Do you want to know when a feature you care about is added or when a bug fixed?
Explore the
Telerik Public Issue Tracking
system and vote to affect the priority of the items