<telerik:RadTransitionControl ClipToBounds="False" Content="[Bound to data]" Margin="30" Duration="0:0:0.2"
VerticalContentAlignment="Center" HorizontalContentAlignment="Center">
<telerik:RadTransitionControl.Transition>
<telerik:MotionBlurredZoomTransition />
</telerik:RadTransitionControl.Transition>
<telerik:RadTransitionControl.RenderTransform>
<TranslateTransform Y="Some value, i.e. -200" />
</telerik:RadTransitionControl.RenderTransform>
</telerik:RadTransitionControl>
The style can define:
- Text Font style, size, color and alignment.
- Background / Foreground colors.
- Tooltip style (font, background and foreground).
- Image (size and position).
- Style of the associated button.
Hello,
We are using the PrintExtensions class as mentioned in Vlad's post 9 months ago.
Our application is a WinForms app that has an ElementHost we use to load the control. It has started crashing on the following line:
element.Arrange(new Rect(new Point(0, 0), element.DesiredSize));It doesn't even throw an exception in Debug mode (F5), it just crashes to desktop. We stepped through the code to identify where the exception occurs and found it on that line. The only other thing I see is some first chance exceptions in the Debug Output window like so right after the exception occurs:
Step into: Stepping over non-user code 'System.Windows.Point.Point' A first chance exception of type 'System.InvalidOperationException' occurred in PresentationFramework.dll Step into: Stepping over non-user code 'System.Windows.Threading.ExceptionWrapper.TryCatchWhen' A first chance exception of type 'System.Reflection.TargetInvocationException' occurred in mscorlib.dll Step into: Stepping over non-user code 'System.Windows.RoutedEventArgs.InvokeEventHandler' Step into: Stepping over non-user code 'System.Windows.RoutedEventArgs.InvokeHandler' Step into: Stepping over non-user code 'System.Windows.UIElement.RaiseEventImpl' Step into: Stepping over non-user code 'System.Windows.RoutedEventArgs.InvokeHandler' Step into: Stepping over non-user code 'System.Windows.UIElement.ReRaiseEventAs' Step into: Stepping over non-user code 'System.Windows.RoutedEventArgs.InvokeHandler' Step into: Stepping over non-user code 'System.Windows.UIElement.RaiseEventImpl' Step into: Stepping over non-user code 'System.Windows.UIElement.RaiseEvent' Step into: Stepping over non-user code 'System.Windows.Threading.Dispatcher.InvokeImpl' Step into: Stepping over non-user code 'System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop' Step into: Stepping over non-user code 'System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner' Step into: Stepping over non-user code 'SchedApp.SchedAppFrame.Dispose' Step into: Stepping over non-user code 'System.ComponentModel.Component.Dispose' Step into: Stepping over non-user code 'System.Windows.Forms.ApplicationContext.Dispose' Step into: Stepping over non-user code 'System.Windows.Forms.Application.ThreadContext.DisposeThreadWindows' Step into: Stepping over non-user code 'System.Windows.Forms.Application.ThreadContext.Dispose'I'm not quite sure where to look for more information. So the FrameworkElement coming into the FixedDocument is of type Telerik.Windows.Controls.RadGridView, is the Arrange method being overridden? How would I troubleshoot what looks like an exception in the System.Windows.Point.Point structure?

<telerik:RadGridView x:Name="grdList" ItemsSource="{Binding }">
<telerik:RadGridView.Columns>
<telerik:GridViewDataColumn Header="角色代码" DataMemberBinding="{Binding Code}"/>
<telerik:GridViewDataColumn Header="角色名称" DataMemberBinding="{Binding Name}"/>
<telerik:GridViewDataColumn Header="最后编辑人员" DataMemberBinding="{Binding LastEditBy}"/>
<telerik:GridViewDataColumn Header="最后编辑时间" DataMemberBinding="{Binding LastEditDate}"/>
<telerik:GridViewCheckBoxColumn Header="是否禁用" DataMemberBinding="{Binding Disable}"/>
<telerik:GridViewColumn Header="操作">
<telerik:GridViewColumn.CellTemplate>
<DataTemplate>
<telerik:RadButton Content="设置成员" x:Name="btn" CommandParameter="{Binding Code}" Click="RadButton_Click" Height="25" Margin="3"/>
</DataTemplate>
</telerik:GridViewColumn.CellTemplate>
</telerik:GridViewColumn>
</telerik:RadGridView.Columns>
</telerik:RadGridView>
this.AddHandler(RadComboBox.GotFocusEvent, new RoutedEventHandler(comboGotFocus));void comboGotFocus(object sender, RoutedEventArgs args) { GridViewCell cell = args.OriginalSource as GridViewCell; if (cell != null && cell.Column.UniqueName == "RegionId") { District district = cell.DataContext as District; if (district != null && cell.Content is LookupElement) { string countryId = district.CountryId; RadGridView gridView = (RadGridView)this.districtRegistryControl.ChildrenOfType<RadGridView>().First(); RadComboBox comboBox = (cell.Content as LookupElement).ComboBox; if (comboBox != null) { comboBox.ItemsSource = null; if (string.IsNullOrEmpty(countryId) == false) comboBox.ItemsSource = from r in iGasContext.Context.Regions where r.CountryId == countryId select r; else comboBox.ItemsSource = iGasContext.Context.Regions; } } } }