RadWindow NewWindow =
new
RadWindow();
NewWindow.ShowDialog();
e.NewObject = NewWindow.NewRow;
RadWindow NewWindow =
new
RadWindow();
NewWindow.Closed +=
delegate
{
e.NewObject = NewWindow.NewRow;
};
NewWindow.Show();
Public Class TimeZoneAppointment
Inherits Telerik.Windows.Controls.ScheduleView.Appointment
Private _myModelAppointment As ModelAppointment
Public Overloads Property Start As Date
Get
Return MyBase.Start
End Get
Set(ByVal value As Date)
'this will also modify the model appointment's start property
MyBase.Start = value
End Set
End Property
Public Overloads Property [End] As Date
Get
Return MyBase.End
End Get
Set(ByVal value As Date)
'this will also modify the model appointment's end property
MyBase.End = value
End Set
End Property
Public Sub New(ByVal ma As ModelAppointment)
MyBase.New()
_myModelAppointment = ma
MyBase.Start = _myModelAppointment.startDate
MyBase.End = _myModelAppointment.endDate
Dim recurrencePattern As New RecurrencePattern()
recurrencePattern.Frequency = RecurrenceFrequency.Weekly
Dim recurrenceRule As New RecurrenceRule(recurrencePattern)
MyBase.RecurrenceRule = recurrenceRule
End Sub
End Class
<
Window
x:Class
=
"WPFprismMEFRadDockingTest.Views.ShellView"
xmlns:prism
=
"http://www.codeplex.com/prism"
xmlns:controls
=
"clr-namespace:WPFprismMEFRadDockingTest.Controls"
xmlns:telerik
=
"http://schemas.telerik.com/2008/xaml/presentation"
xmlns:telerikControls
=
"clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls"
Title
=
"Prism Shell"
WindowStartupLocation
=
"CenterScreen"
Height
=
"620"
Width
=
"850"
Icon
=
"../Images/PnPIcon.ico"
mc:Ignorable
=
"d"
d:DesignHeight
=
"720"
d:DesignWidth
=
"900"
>
<
Window.Background
>
<
ImageBrush
ImageSource
=
"/Images/background.jpg"
Stretch
=
"UniformToFill"
/>
</
Window.Background
>
<
Window.Resources
>
</
Window.Resources
>
<
Grid
x:Name
=
"LayoutRoot"
>
<
Grid.RowDefinitions
>
<
RowDefinition
Height
=
"100"
/>
<
RowDefinition
Height
=
"*"
/>
</
Grid.RowDefinitions
>
<
Grid.ColumnDefinitions
>
<
ColumnDefinition
Width
=
"1*"
MinWidth
=
"25"
/>
<
ColumnDefinition
Width
=
"Auto"
/>
<
ColumnDefinition
Width
=
"3*"
/>
</
Grid.ColumnDefinitions
>
<!-- When minimizing the 2 panes, they will be showed at the left site -->
<!-- but the area (defined by the grid) is not minimized, too. And the -->
<!-- control in the right grid-area did not use the full space. Seems, -->
<!-- that the gridsplitter did not "follow" the minimized panes... -->
<
telerik:RadDocking
x:Name
=
"LeftRadDocking"
telerikControls:StyleManager.Theme
=
"Transparent"
HasDocumentHost
=
"False"
Grid.Row
=
"1"
Grid.Column
=
"0"
Margin
=
"10,5,5,10"
Padding
=
"0"
>
<
telerik:RadDocking.Background
>
<
SolidColorBrush
/>
</
telerik:RadDocking.Background
>
<
telerik:RadDocking.BorderBrush
>
<
SolidColorBrush
/>
</
telerik:RadDocking.BorderBrush
>
<
telerik:RadSplitContainer
Name
=
"LeftRadSplitContainer"
Background
=
"#99FFFFFF"
Opacity
=
"0.5"
InitialPosition
=
"DockedLeft"
>
<
telerik:RadPaneGroup
Opacity
=
"1"
>
<
telerik:RadPaneGroup.Background
>
<
SolidColorBrush
/>
</
telerik:RadPaneGroup.Background
>
<
telerik:RadPane
Header
=
"Pane Left 1"
>
<
telerik:RadPane.Content
>
<
TextBlock
TextWrapping
=
"Wrap"
Text
=
"This is Pane Left 1 to fill the area with some senseless text."
/>
</
telerik:RadPane.Content
>
</
telerik:RadPane
>
<
telerik:RadPane
Header
=
"Pane Left 2"
Content
=
"Pane Left 2"
>
</
telerik:RadPane
>
</
telerik:RadPaneGroup
>
</
telerik:RadSplitContainer
>
</
telerik:RadDocking
>
<
GridSplitter
Grid.Row
=
"1"
Grid.Column
=
"1"
HorizontalAlignment
=
"Center"
VerticalAlignment
=
"Stretch"
Width
=
"5"
ShowsPreview
=
"True"
ResizeDirection
=
"Columns"
Background
=
"Transparent"
/>
<
ContentControl
x:Name
=
"DesktopRegion"
Grid.Row
=
"1"
Grid.Column
=
"2"
Margin
=
"5,5,15,10"
>
<
ContentControl.Template
>
<
ControlTemplate
TargetType
=
"ContentControl"
>
<
Grid
>
<
controls:RoundedBox
/>
<
ContentPresenter
Margin
=
"10,0,10,0"
Content
=
"{TemplateBinding Content}"
/>
</
Grid
>
</
ControlTemplate
>
</
ContentControl.Template
>
</
ContentControl
>
</
Grid
>
</
Window
>
<
DataTemplate
x:Key
=
"ChartDataTemplate"
>
<
telerik:RadChart
x:Name
=
"Chart"
UseDefaultLayout
=
"False"
>
<
Grid
>
<
Grid.RowDefinitions
>
<
RowDefinition
Height
=
"1*"
/>
<
RowDefinition
Height
=
"19*"
/>
</
Grid.RowDefinitions
>
<
Grid.ColumnDefinitions
>
<
ColumnDefinition
Width
=
"19*"
/>
<
ColumnDefinition
Width
=
"1*"
/>
</
Grid.ColumnDefinitions
>
<
telerik:ChartLegend
x:Name
=
"LegendArea"
Grid.Row
=
"1"
Grid.Column
=
"0"
HorizontalAlignment
=
"Right"
VerticalAlignment
=
"Top"
/>
<
telerik:ChartArea
LegendName
=
"LegendArea"
/>
</
Grid
>
</
telerik:RadChart
>
</
DataTemplate
>
Hi,
We've had issues with horizontal scrolling in our RadGridViews with the Q1 2011 version of the WPF package for .NET 3.5 (both the first one and SP 1).
In our grids that reside inside RadExpanders (if that matters) we have several columns which in lower resolutions requires scrolling horizontally. We bind them as GridViewDataColumns. In some we have DataTemplates, but in most we just do a normal bind using the DataMemberBinding.
Until you start scrolling everything looks fine like it did in Q3 2010 and earlier versions, but when scrolling horizontally by dragging the scrollbar with the mouse especially the smaller columns tend to grow and be very wide instead of keeping the preferred width according to the content of the columns.
So now for the second time we have to revert to Q3 2010 until this gets fixed.
Has something changed which require us to add something to the XAML to make them keep the preferred width or is this a bug that will be fixed in future versions?
<
telerik:RadTreeListView.RowStyle
>
<
Style
TargetType
=
"{x:Type telerik:TreeListViewRow}"
>
<
Setter
Property
=
"IsExpandable"
Value
=
"True"
/>
<
Setter
Property
=
"IsExpanded"
Value
=
"{Binding IsExpanded, Mode=TwoWay}"
/>
<
Setter
Property
=
"IsSelected"
Value
=
"{Binding IsSelected, Mode=TwoWay}"
/>
<
Setter
Property
=
"FontWeight"
Value
=
"Normal"
/>
<
Style.Triggers
>
<
Trigger
Property
=
"IsSelected"
Value
=
"True"
>
<
Setter
Property
=
"FontWeight"
Value
=
"Bold"
/>
</
Trigger
>
</
Style.Triggers
>
</
Style
>
</
telerik:RadTreeListView.RowStyle
>