Search found 98 matches
- 17 Oct 2019, 16:15
- Forum: General Discussion
- Replies: 5
- Views: 1828
Re: Binding errors when clearing a bound ObservableCollection [Manage C# SDK 2.2.4]
This also happens if I just set "MyCollection" to another ObservableCollection.
- 17 Oct 2019, 00:36
- Forum: General Discussion
- Replies: 5
- Views: 1828
Binding errors when clearing a bound ObservableCollection [Manage C# SDK 2.2.4]
If I have a List with a bunch of elements... List<string> TestSet1 = new List<string>() { "one", "two", "three", "four", "five", }; And an ObservableCollection initialized to that List of items... public ObservableCollection<string> MyCollection { ge...
- 22 Sep 2019, 12:07
- Forum: General Discussion
- Replies: 2
- Views: 1306
Re: Crash when trying to attach command to storyboard completed event [Managed SDK version 2.2.4]
Here's the stack trace: Fatal error. System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt. at Noesis.View.Noesis_View_Find(System.Runtime.InteropServices.HandleRef) at Noesis.View.Noesis_View_Find(System.Runtime.Intero...
- 22 Sep 2019, 12:06
- Forum: General Discussion
- Replies: 6
- Views: 1940
Re: BitmapImage resources created from images in the filesystem cannot be deleted
I opened a ticket for a way the framework could tell me when it's safe/OK to dispose the FileStream object.
https://noesisengine.com/bugs/view.php?id=1554
https://noesisengine.com/bugs/view.php?id=1554
- 22 Sep 2019, 11:50
- Forum: General Discussion
- Replies: 2
- Views: 1306
Crash when trying to attach command to storyboard completed event [Managed SDK version 2.2.4]
First I tried it this way, as per another forum post I saw: <UserControl x:Class="Controls.SoftButton.SoftButtonControl" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:local="clr-namesp...
- 13 Sep 2019, 17:30
- Forum: General Discussion
- Replies: 1
- Views: 537
Touch events not working for me in managed SDK
I have a ListView control defined like this: <ListView x:Name="CurrentDirectoryListView" SelectionMode="Single" Style="{StaticResource FileManagerListViewStyle}" ItemContainerStyle="{StaticResource FileManagerListViewItemStyle}" ItemsSource="{Binding Curr...
- 13 Sep 2019, 12:08
- Forum: General Discussion
- Replies: 6
- Views: 1940
Re: BitmapImage resources created from images in the filesystem cannot be deleted
Actually no... I'm getting periodic IOExceptions when I try to delete files which I'm displaying as thumbnails in my file manager view. I think you have to explicitly Dispose the stream. Normally I would wrap this line in a using block to ensure it's Disposed when out of scope, but if I do that, it ...
- 11 Sep 2019, 22:08
- Forum: General Discussion
- Replies: 6
- Views: 1940
Re: BitmapImage resources created from images in the filesystem cannot be deleted
And 2 minutes later I realized I could add "FileShare.Delete" to the FileStream call:
Code: Select all
new FileStream(path, FileMode.Open, FileAccess.Read, FileShare.Delete);
- 11 Sep 2019, 22:03
- Forum: General Discussion
- Replies: 6
- Views: 1940
BitmapImage resources created from images in the filesystem cannot be deleted
So we have this custom FileTextureProvide which can create resources from the filesystem public class FileSystemTextureProvider : FileTextureProvider { ... public override Stream OpenStream(string path) { ... return new FileStream(path, FileMode.Open, FileAccess.Read); } That code is triggered when ...
- 22 Aug 2019, 22:43
- Forum: General Discussion
- Replies: 1
- Views: 710
Can an attached property be defined in a different assembly than the one it is used in?
I have the following attached property which works fine if it's defined locally... public static class FocusExtension { public static bool GetIsFocused(DependencyObject obj) { return (bool)obj.GetValue(IsFocusedProperty); } public static void SetIsFocused(DependencyObject obj, bool value) { obj.SetV...