This is a migrated thread and some comments may be shown as answers.

Disable the possibility to let the user resize a RadPane

6 Answers 108 Views
Docking
This is a migrated thread and some comments may be shown as answers.
Meik Schuetz
Top achievements
Rank 1
Meik Schuetz asked on 12 May 2010, 11:37 PM
Dear Sirs,
  is there any way that I can disable the possibility to let the user resize the radpane?

Thanks
Best regards
Meik

6 Answers, 1 is accepted

Sort by
0
Konstantina
Telerik team
answered on 13 May 2010, 05:22 PM
Hi Meik,

Thank you for contacting us.

This is not possible as actually the Pane is only the Tab.
Sorry if that causes you any inconvenience.

If you have any other concerns about our controls please feel free to contact us again.

Best wishes,
Konstantina
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
Meik Schuetz
Top achievements
Rank 1
answered on 13 May 2010, 06:46 PM
Thanks for the information; I did manage by customizing the template and collapsing the resizer.
0
Nicolas
Top achievements
Rank 1
answered on 12 Jun 2010, 09:40 AM
Hi,

I need this feature too - not allow to resize one specific RadPane. How can this be managed?

Additionally, is it possible that its size remain unchanged when docked? If I dock a pane to the left and it's the only one docked, it takes the full available height. I guess what I need is the same behavior as the ASP.NET RadDock. Is this doable?

Thanks
0
Konstantina
Telerik team
answered on 17 Jun 2010, 09:16 AM
Hi Nicolas,

Thank you for your questions.

To make the Pane stay the same size when it is docked you will have to apply a custom theme for the Docking control. After that you will have to set the MaxWidth and MaxHeight of the PaneGroup and of the ToolWindow, which holds the floating Pane.
Attached you will find a sample project in which the above mentioned approach is illustrated. Please mind for the "NOTE:" comments which point the places where changes have been made.

If you need further assistance please do not hesitate to contact us again.

All the best,
Konstantina
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
Nicolas
Top achievements
Rank 1
answered on 17 Jun 2010, 11:47 AM
Hi,

thanks for the response.

If I choose to implement this, will I be able to have, within the same RadDocking control, several docks with different behaviors? To be more precise, I have 3 Docks - 2 are resizable, the 3rd has a fixed size. I still want the 3 docks to be docked in the same DockZone (say, Left) but with just one keeping its fixed size. An acceptable alternative would be that they all keep the size they had before they got docked (or more exactly, their height if docked on left/right, their width if docked on top/left).

Also, the users can change the Theme of the RadDocking control. If I understand correctly, the MyTheme theme of your sample project is based on Office Black. Does this mean that I would need to redefine all the available Themes?

Also, I can't run the sample project you attached. I'm getting the following error when compiling:
Error   1   The "ValidateXaml" task failed unexpectedly. 
System.TypeLoadException: Could not load type 'System.ComponentModel.DefaultPropertyAttribute' from assembly 'System, Version=2.0.5.0, Culture=neutralPublicKeyToken=7cec85d7bea7798e'. 
   at System.ModuleHandle.ResolveType(Int32 typeToken, RuntimeTypeHandle* typeInstArgs, Int32 typeInstCount, RuntimeTypeHandle* methodInstArgs, Int32 methodInstCount) 
   at System.ModuleHandle.ResolveTypeHandle(Int32 typeToken, RuntimeTypeHandle[] typeInstantiationContext, RuntimeTypeHandle[] methodInstantiationContext) 
   at System.Reflection.Module.ResolveType(Int32 metadataToken, Type[] genericTypeArguments, Type[] genericMethodArguments) 
   at System.Reflection.CustomAttribute.FilterCustomAttributeRecord(CustomAttributeRecord caRecord, MetadataImport scope, Assembly& lastAptcaOkAssembly, Module decoratedModule, MetadataToken decoratedToken, RuntimeType attributeFilterType, Boolean mustBeInheritable, Object[] attributes, IList derivedAttributes, RuntimeType& attributeType, RuntimeMethodHandle& ctor, Boolean& ctorHasParameters, Boolean& isVarArg) 
   at System.Reflection.CustomAttribute.GetCustomAttributes(Module decoratedModule, Int32 decoratedMetadataToken, Int32 pcaCount, RuntimeType attributeFilterType, Boolean mustBeInheritable, IList derivedAttributes) 
   at System.Reflection.CustomAttribute.GetCustomAttributes(RuntimeType type, RuntimeType caType, Boolean inherit) 
   at System.RuntimeType.GetCustomAttributes(Type attributeType, Boolean inherit) 
   at MS.Internal.Xaml.Schema.ClrType.GetCustomAttribute(Type attrType) 
   at MS.Internal.Xaml.Schema.ClrType.LookupRuntimeNameProperty() 
   at MS.Internal.Xaml.Schema.ClrType.LookupPropertyValue(NonBoolTypeValidBits typeBit) 
   at MS.Internal.Xaml.Schema.ClrType.get_RuntimeNamePropertyCore() 
   at MS.Internal.Xaml.Parser.XamlAttribute.Initialize(XamlParserContext context, XamlType ownerType, XamlNamespace ownerNamespace) 
   at MS.Internal.Xaml.Parser.XamlScanner.PostprocessAttributes(XamlScannerNode node) 
   at MS.Internal.Xaml.Parser.XamlScanner.ReadObjectElement(XamlName name, Boolean isEmptyTag) 
   at MS.Internal.Xaml.Parser.XamlScanner.ReadElement() 
   at MS.Internal.Xaml.Parser.XamlScanner.DoXmlRead() 
   at MS.Internal.Xaml.Parser.XamlPullParser.<P_StartElement>d__1d.MoveNext() 
   at MS.Internal.Xaml.Parser.XamlPullParser.<P_Element>d__7.MoveNext() 
   at MS.Internal.Xaml.Parser.XamlPullParser.<P_ElementContent>d__39.MoveNext() 
   at MS.Internal.Xaml.Parser.XamlPullParser.<P_ElementBody>d__23.MoveNext() 
   at MS.Internal.Xaml.Parser.XamlPullParser.<P_Element>d__7.MoveNext() 
   at MS.Internal.Xaml.Parser.XamlPullParser.<P_ElementContent>d__39.MoveNext() 
   at MS.Internal.Xaml.Parser.XamlPullParser.<P_ElementBody>d__23.MoveNext() 
   at MS.Internal.Xaml.Parser.XamlPullParser.<P_Element>d__7.MoveNext() 
   at MS.Internal.Xaml.Parser.XamlPullParser.<P_ElementContent>d__39.MoveNext() 
   at MS.Internal.Xaml.Parser.XamlPullParser.<P_ElementBody>d__23.MoveNext() 
   at MS.Internal.Xaml.Parser.XamlPullParser.<P_Element>d__7.MoveNext() 
   at MS.Internal.Xaml.Parser.XamlPullParser.<P_PropertyContent>d__4a.MoveNext() 
   at MS.Internal.Xaml.Parser.XamlPullParser.<P_PropertyElement>d__31.MoveNext() 
   at MS.Internal.Xaml.Parser.XamlPullParser.<P_ElementBody>d__23.MoveNext() 
   at MS.Internal.Xaml.Parser.XamlPullParser.<P_Element>d__7.MoveNext() 
   at MS.Internal.Xaml.Parser.XamlPullParser.<P_ElementContent>d__39.MoveNext() 
   at MS.Internal.Xaml.Parser.XamlPullParser.<P_ElementBody>d__23.MoveNext() 
   at MS.Internal.Xaml.Parser.XamlPullParser.<P_Element>d__7.MoveNext() 
   at MS.Internal.Xaml.Parser.XamlPullParser.<P_ElementContent>d__39.MoveNext() 
   at MS.Internal.Xaml.Parser.XamlPullParser.<P_ElementBody>d__23.MoveNext() 
   at MS.Internal.Xaml.Parser.XamlPullParser.<P_Element>d__7.MoveNext() 
   at MS.Internal.Xaml.Parser.XamlPullParser.<Parse>d__0.MoveNext() 
   at MS.Internal.Xaml.TextReaderEnumerator.MoveNext() 
   at MS.Internal.Xaml.XamlTextReader.Read() 
   at MS.MarkupCompiler.ValidationPass.ValidateXaml(String fileName, Assembly[] assemblies, Assembly callingAssembly, TaskLoggingHelper log, Boolean shouldThrow) 
   at Microsoft.Silverlight.Build.Tasks.ValidateXaml.XamlValidator.Execute(ITask task) 
   at Microsoft.Silverlight.Build.Tasks.ValidateXaml.XamlValidator.Execute(ITask task) 
   at Microsoft.Silverlight.Build.Tasks.ValidateXaml.Execute() 
   at Microsoft.Build.BuildEngine.TaskEngine.ExecuteInstantiatedTask(EngineProxy engineProxy, ItemBucket bucket, TaskExecutionMode howToExecuteTask, ITask task, Boolean& taskResult)   CustomTheme 
 

I'm getting this for each Project, followed by a dozen errors "The type 'CornerRadius' does not support direct content.". I'm using the Q1 SP2 release.

Thanks!
0
Konstantina
Telerik team
answered on 23 Jun 2010, 07:34 AM
Hello Nicolas,

Thank you for your questions.

When you apply the custom theme, it will apply for all Panes. Unfortunately, there is no way to set different styles for each Pane, as when the Pane is floating it is in an ToolWindow which actually get customized in the custom theme. There is no property for the ToolWindow's style.
Yes, if you are going to change the themes, you will need to make the changes in each theme.
The sample project is built with VS 2008, SL3 and assembly version 2010.1.309.1030. If you are using something different that might cause the problem. Please make sure that you are using the assemblies for SL3. They have version that ends with .1030 (2010.1.603.1030 - 3 here means that this assembly is build for SL3). If not, you need to download Silverlight 3 assemblies (version xxxx.1030) from your account.

If you need further assistance please let us know.

Kind regards,
Konstantina
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
Tags
Docking
Asked by
Meik Schuetz
Top achievements
Rank 1
Answers by
Konstantina
Telerik team
Meik Schuetz
Top achievements
Rank 1
Nicolas
Top achievements
Rank 1
Share this question
or