Search results for query: *

  1. J

    Coverflow like animating grids or contentcontrol

    The problem is that I first viewed that page on a computer at school..not my home computer!
  2. J

    Coverflow like animating grids or contentcontrol

    Hi, That's really frustrating, some days ago I felt on a tutorial page on how to animate grids (or contentcontrol...I don't remember). ...and now that I need this page I can't find it again ;-) There was an illustration like this (light blue squares) The principle being to animate scale in/out...
  3. J

    Dynamic ContentControl > Style > DataTemplate....binding problem!

    Hi, I have to create some ContentControl code behind and be able to change their content and their DataTemplate according to their data type (image or text) (So, I've created a ContentControl code behind, given it (code-behind too) a style from the XAML. In this style I've set DataTemplates)...
  4. J

    Read (and traverse) XAML file from MemoryStream

    Thanks for your help!! Here's a working solution: StreamReader mysr = new StreamReader("example.xaml"); XmlDocument doc = new XmlDocument(); doc.Load(mysr); XmlNamespaceManager nsmgr = new XmlNamespaceManager(doc.NameTable); nsmgr.AddNamespace("def"...
  5. J

    Read (and traverse) XAML file from MemoryStream

    Thanks for your reply! What should I then do please? Add nsmgr.AddNamespace("ns", "http://schemas.microsoft.com/winfx/2006/xaml/presentation") nsmgr.AddNamespace("x", "http://schemas.microsoft.com/winfx/2006/xaml") ? I've done it but 'node' is still 'Null'
  6. J

    Read (and traverse) XAML file from MemoryStream

    Hi, I have an XAML document that I have to read from a MemoryStream (for the purpose of the example, I load a XAML file to a memorystream) Here is a shortened version of the XAML file: <Grid xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"...
  7. J

    Question Loading resources from XAML, problem with fonts!

    I am (I have to) using an XAML file as a resource from my main window. In this simplified example, the XAML file looks like this <Grid xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Name="themeGrid"> <Image...
  8. J

    Binding to Elementname within resource

    Hi, I can't get to bind to an element name inside a Windows.Resources I have a grid (with elements inside) in Windows resources. Among the elements I have a border with an image inside and another border whose background visualbrush visual is binded to the first border (with a render transform...
  9. J

    Question Setting Primary Display

    Hi, I'm trying to set the Primary Display...without success! Here's the code I'm working on, would you please help me see what I'm doing wrong there? There's no compilation error...it simply doesn't give the expected result! Thank you!! Imports System.Runtime.InteropServices Class MainWindow...
  10. J

    Drag and Drop (and re-order) to ListBox binded to XML

    Would you please help me with this scenario: On stage, 2 listboxes and a textbox. 1.The first listbox lists all the items available, the list is grouped by 'Type' and its source is a binded XML file (read only). 2.The second listbox list all the items the user has dropped into from ListBox#1...
  11. J

    Trouble setting cooperative level [SharpDX]

    I've 3 different gamepads here. Two of them, which are generic joypad, are recognized in the control panel and in games..but don't work with this code. The third one is a XBox 360 controller..and works with this code!! Don't know why...I will have to investigate (these 2 controllers 'works' fine...
  12. J

    Trouble setting cooperative level [SharpDX]

    Yes Herman, the joystick is recognized and properly configured! (I've double checked this)
  13. J

    Trouble setting cooperative level [SharpDX]

    Herman, Thank you so much for taking time to write me all this example!! Thanks, really!! That's true that there's no error anymore...but for now I (I don't know for you) get this in the immediate window: Initialized 0 joysticks/gamepads
  14. J

    Trouble setting cooperative level [SharpDX]

    Herman, Thank you very much for your reply!! Unfortunately, Dim hwnd As IntPtr = New WindowInteropHelper(Me).EnsureHandle() joystick.SetCooperativeLevel(hwnd, CooperativeLevel.Foreground) gives an error with: 'Me' is valid only within an instance method. Then I discover that 'Me' cannot be...
  15. J

    Trouble setting cooperative level [SharpDX]

    Hi, I'm using SharpDX for DirectInput joystick management...and I can't resolve the problem I get while setting cooperative level Imports SharpDX Imports SharpDX.DirectInput Imports System.Windows.Interop Class MainWindow Private Sub Window_Loaded(ByVal sender As System.Object, ByVal e As...
  16. J

    Question Setting BitmapImage.UriSource in a XAML file read with XamlReader

    Hello, My WPF application (WpfApplication1) is, for its XAML part, composed of an single empty grid. Elements are loaded inside this grid from an external XAML file, read through XamlReader. This external Xaml file contains (for the purpose of this example) a URL to an image which should be...
  17. J

    Question PathListBox animation by code

    Hi, I'm creating a carousel using a PathListBox. Everything's working fine..if I use buttons (and Interaction.Behaviors) <Window xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"...
  18. J

    interpreting debug output?

    Hi, One of the users of my application is complaining that he can't open the application. He gave me the debug output of the crashed application...unfortunately I'm not an expert and have difficulties to manage it...would you please give me some help and help me understand why the...
  19. J

    Sound doesn't play instantly...but wait for next operation to complete!

    Ian, Thanks so much for your help..and patience!! Really!! Unfortunately, even if I do exactly what you submitted to me, it doesn't work for me! Sure, I can see that it works when I copy/paste your code in a test window...but once I insert your code in mine the result stay the same: the sound is...
Back
Top