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...
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();
XmlNamespaceManager nsmgr = new XmlNamespaceManager(doc.NameTable);
Thanks for your reply! What should I then do please?
Add nsmgr.AddNamespace("ns", "http://schemas.microsoft.com/winfx/2006/xaml/presentation")
I've done it but 'node' is still 'Null'
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:
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">
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...
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!
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...
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
Thank you very much for your reply!!
Dim hwnd As IntPtr = New WindowInteropHelper(Me).EnsureHandle()
gives an error with: 'Me' is valid only within an instance method.
Then I discover that 'Me' cannot be...