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...
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)...
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"...
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'
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"...
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...
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...
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...
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...
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...
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
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...
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...
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...
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...
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...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.