Search found 83 matches

  • 1
  • 2
  • 3
  • 4
  • 5
  • 9
by darthmaule2
13 Sep 2019, 17:30
Forum: General Discussion
Replies: 0
Views: 6

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 CurrentDirectoryContents}" TouchDown="OnTouchDown...
by darthmaule2
13 Sep 2019, 12:08
Forum: General Discussion
Replies: 3
Views: 14

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 ...
by darthmaule2
11 Sep 2019, 22:08
Forum: General Discussion
Replies: 3
Views: 14

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:
new FileStream(path, FileMode.Open, FileAccess.Read, FileShare.Delete);
by darthmaule2
11 Sep 2019, 22:03
Forum: General Discussion
Replies: 3
Views: 14

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 ...
by darthmaule2
22 Aug 2019, 22:43
Forum: General Discussion
Replies: 1
Views: 24

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...
by darthmaule2
21 Aug 2019, 21:01
Forum: General Discussion
Replies: 1
Views: 30

Any way to know if a UIElement is visible in the window?

I have a ListView bound to an ObservableCollection of 100s of items, each of which has an associated Noesis.BitmapImage that must be displayed as a thumbnail on the screen. I can't load them all at once or the UI thread pauses for a long time. So, I only want to load the ones that are visible in the...
by darthmaule2
15 Aug 2019, 19:11
Forum: General Discussion
Replies: 1
Views: 72

Are custom RoutedEvents supported in the Managed SDK?

I'm not having much luck with my custom RoutedEvents and thought I saw somewhere they were only in the native SDK...? public static readonly RoutedEvent TapDownEvent = EventManager.RegisterRoutedEvent( "TapDown", RoutingStrategy.Bubble, typeof(RoutedEventHandler), typeof(SBToggleButton)); public sta...
by darthmaule2
15 Aug 2019, 19:09
Forum: General Discussion
Replies: 1
Views: 65

Can't get TranslateTransform to animate

I'm trying to animate the Y property of a RenderTransform... <Rectangle.RenderTransform> <TranslateTransform x:Name="ToggleButtonTransform"/> </Rectangle.RenderTransform> Like this... <EventTrigger RoutedEvent="FrameworkElement.PreviewMouseUp"> <BeginStoryboard> <Storyboard> <DoubleAnimationUsingKey...
by darthmaule2
08 Aug 2019, 01:04
Forum: General Discussion
Replies: 4
Views: 125

Re: Trouble porting a custom Button from WPF to Noesis

That fixed it, thanks. You mention the XamlPlayer... is there a standard way to integrate Noesis Xaml parsing output into a build? My current setup provides no debug output on Xaml parsing which makes it very difficult to debug Xaml issues. I can drag & drop a xaml into the XamlPlayer, but it would ...
  • 1
  • 2
  • 3
  • 4
  • 5
  • 9