Hey guys I'm fairly green when it comes to wpf, so I need a little help, here is what im looking to do.
I want to create a custom media element, I want to be able to load a video and play any where from 15 secs to 1 min of the video, I want to be able to dynamically set this on load up based on user settings. I'm loading tons of videos...
How do I make games in WPF and in C#? Is there a document in PDF format that explains this?
...
I havve WPF APP I want to use SQLite How to do such thing?
(BTW I understend how to do such thing in adobe Air but in WPF it's a beeg Question for me so some explanation made on\with comparing how to's is Big +...)
...
I have a ListView in my WPF UserControl using an ItemTemplate to display the items. Within the template is a button. When I select one item and then click on the button of another item, the previously selected item is still selected. I wonder how to automatically select the item the button is in when the button is clicked.
Xaml
<UserCo...
I'm creating a folder in my Solution Explorer and in that folder I have all the images I need.
I'm guessing in XML all I have to do is (pseudo):
<xml>
<TestItem>
<Name>Orange</Name>
<Image>Images/FruitPictures/Orange.jpg</image>
</TestItem>
</xml>
Correct?
So in my XAML code, how can I call upon that elemen...
I am tired of creating the same image+text button over and over again, and I would like to move the markup to a control template. Here is my problem: I need to provide template bindings to add the image and text to the templated button, and the Button control doesn't seem to have properties that I can bind to.
My template looks like thi...
(Note: I have seen this question and it uses a cursor not an animation.)
I have a wait animation (that I did not make but found on the internet). I want to show it while my app is doing some processing.
However, it gets stuck while my app is processing. Is there a way to make it keep going smooth? I usually think of a thread for t...
Inside my user control I have a collection call Solutions
public List<string> Solutions { get; set; }
I want to bind that property to a combobox in xaml of that same user control?
I tried
<ComboBox HorizontalAlignment="Left" Margin="21,0,0,41" Name="cbAddSolution" Width="194" Height="21" VerticalAlignment="Bottom"
It...
Wpf 4.0 is a buzzword these days which is the latest version of Wpf, I want to know what is the current version of xaml? and what was the previous version of xaml as well as Wpf?
...
Hello
My application looks like this:
1 Window
2 Frame
3 Page
4 Control
In Control (4) I have a custom routed event, which i want Frame (2) to handle.
The event:
public static readonly RoutedEvent PreviewArtistLinkClickedEvent = EventManager.RegisterRoutedEvent(
"PreviewArtistLinkClicked", RoutingStrategy...
Here's my XML file:
<?xml version="1.0" encoding="utf-8" ?>
<Hero>
<Legion>
<Andromeda>
<HeroType>Agility</HeroType>
<Damage>39-53</Damage>
<Armor>3.1</Armor>
<MoveSpeed>295</MoveSpeed>
<AttackType>Ranged(400)</AttackType>
<AttackRate>.75</AttackRate>
<Strength>16</Strength>
<Agility...
Hello WPF experts:
I have the next code where I defined a WPF toolkit datagrid control called dgQuery; I filled this one with information of a dataset, then I inserted a new checkbox column in dgQuery to check/uncheck some of the rows, I show part of my C# code:
dgQuery.DataContext = dS.Tables[0];
DataGridTemplateColumn cbCol = new D...
How do I go about hosting a silverlight 3.0 application inside of a wpf application in which I can pass data between the two? It needs to run without internet connectivity.
...
public class Hero
{
XPathNavigator Navigator;
XPathDocument HeroInformation;
public string GetHeroIcon(string Name)
{
XDocument HeroInformation = XDocument.Load("InformationRepositories/HeroRepository/HeroInformation.xml");
return HeroInformation.Descendants(Name).Single().Element("Ic...
When should I use one or the other?
I'd like all of the files I use in my app (images, sound, xml file, etc.) to be inside of the .exe file so I don't deploy with a bunch of folders and files.
Thanks for the info.
...
I'm using the MVVM design pattern, with a ListView bound to a ListCollectionView on the ViewModel. I also have several comboboxes that are used to filter the ListView. When the user selects an item from the combobox, the ListView is filtered for the selected item. Whenever I want to filter on top of what is already filtered, it undoes...
I am having problems with hosting a WPF prism app in an ElementHost control and am desparate for help.
The PRISM app runs fine in silverlight and in a standalone WPF.
The main Shell seems to setup fine in the elementHost on a WinForm however other views only load with the “RegisterViewWithRegion” and not the “Add,Activate” procedure. I...
Hello everyone,
I'm simply running a small piece of code in a button click event of a WPF application.
The code simply connects to the database to retrieve images and display on the form.
But,I get this Request for the permission of type 'System.Web.AspNetHostingPermission Exception..
Please help me with this....
Thanks so much...
...
I recently learned that Embedded Resource means that assets are saved to an external .resx file.
Setting assets to Resource makes them join the .exe file simply.
Now, I'm confused of when to use Content and Resource.
Any info?
...
I am creating a WPF custom control, a button with an image and text. I have added two dependency properties to the control, ImagePath and Text, and the control template (in Themes\Generic.xaml) is a simple stack panel that arranges the image and text horizontally.
The Text property works fine. But for some reason, the sample image in my...