Quantcast
Channel: Extended WPF Toolkit™ Community Edition
Viewing all articles
Browse latest Browse all 4964

Commented Issue: Zoombox.Scale throws NullReferenceException [18713]

$
0
0
Setting Zoombox.Scale through XAML throws a NullReferenceException, whether thru a binding or literal value, and will crash the Visual Studio 2010 designer.
Comments: ** Comment from web user: cube45 **

Hi, I have the same problem that causes a crash in VS2012.
Here is a sample code I made to be sure the issue was in Zoombox and not in my code.
```
<Window x:Class="ZoomboxBug.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:xctk="http://schemas.xceed.com/wpf/xaml/toolkit"
Title="MainWindow" Height="350" Width="525">
<Grid>
<xctk:Zoombox x:Name="Zoom">
<TextBlock Foreground="Black">Hello World</TextBlock>
</xctk:Zoombox>
</Grid>
</Window>
```

```
using System.Windows;

namespace ZoomboxBug {
/// <summary>
/// Interaction logic for MainWindow.xaml
/// </summary>
public partial class MainWindow : Window {
public MainWindow() {
InitializeComponent();
this.Zoom.Scale = 1;
}
}
}
```

Extended.Wpf.Toolkit v 2.2.1 installed via NuGet

Regards,
cube45


Viewing all articles
Browse latest Browse all 4964

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>