Search results

  1. 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...
  2. 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)...
  3. 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"...
  4. 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...
  5. 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...
  6. 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...
  7. 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...
  8. 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...
  9. 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...
  10. 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"...
  11. 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...
  12. J

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

    I've a big interrogation concerning sound playback (WMP.lib)! This code should play a sound, then compute...but it computes then play the sound! Class MainWindow Dim writingPath As String = Environment.GetFolderPath(Environment.SpecialFolder.DesktopDirectory) & "\_UI Sounds\" Dim...
  13. J

    Using Directory.GetFiles() WITH multiple extensions AND sort order

    Hi, I have to get a directory file list, filtered on multiple extensions...and sorted! I use this, which is the fastest way I've found to get dir content filtered on multiple extensions: Dim ext As String() = {"*.jpg", "*.bmp","*png"} Dim files As String() = ext.SelectMany(Function(f)...
  14. J

    Question Control storyboard inside custom control...by code

    Hello, How do I please control (start, stop, pause, go to specific time) a controltemplate storyboard inside a custom control..by code? The XAML: <Window xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"...
  15. J

    Question Loading XAML at runtime

    Hi, I'm working on loading xaml code at runtime. Until now, I can do it with XAML files which are set as "Resource"...but I would like to load it from a user's folder (let's say the "Desktop Folder" for example) How should I please proceed? The XAML example file, loaded as resource file in my...
  16. J

    Simulate keypress by code

    Hi, I have an application which is entirely driven by keyboard (no mouse!). In that application there's a "complex" menu where people browse buttons with...the keyboard. Until then, browsing the buttons was done with the arrows key. I had nothing to code as, by default, this is properly managed...
  17. J

    Question [WPF] XML Binding

    I have an XML file structured this way: <Emulators> <Settings> <vol name="10"/> <Volume>10</Volume> <Keys name="key1" value="1" /> <Keys name="key2" value="2" /> <Keys name="key3" value="3" /> <Keys name="key4" value="4" /> </Settings> <System>...
  18. J

    XML file source from users/appdata/roaming folder

    <Window x:Class="MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Title="MainWindow" Height="350" Width="525"> <Grid> <Grid.Resources> <DataTemplate x:Key="SystemTemplate">...
  19. J

    Loading XAML graphics dynamically

    Hi, I've got a lot of XAML (vector) graphic elements. I would like 1 graphic to be loaded dynamically, according to conditions met in the program. In clear, I would like "GraphA" to be displayed if user has chosen "A", "GraphB" displayed if user has chosen "B"...etc My question is: How can I...
  20. J

    Overriding the default keys used to navigate in RadioButtons [WPF] [VB]

    Hi, In my application, the user has to navigate through RadioButton's group using the keyboard By default, the arrow keys are used to navigate and the space bar used to select the radio button. I would like the 'select' key to be another keyboard key! How should I please process to switch the...
Top Bottom