Hey Guys,
I saw something about this, but I've lost it now, and can't find it again. What I need is to know which ListViewItem a checkbox exists in, when the checkbox is checked (Which will eventually lead to its deletion),
I tried getting the parent, but apparently that doesn't work.
XAML:
<ListView Name="incomingMessages" Extensio...
Somewhere I read that ExpressionBlend can create copies of the default style of a wpf control for the developer to edit.
However, VisualStudio can not. (At least I haven't found a way...)
Is it possible to access/view the default styles (and templates) of wpf controls.
A Gui would be nice, but a (web)-resource to view the styles would ...
Hi,
I've got a WPF Window, and somewhere there is a ListView where I bing a List<string> to.
Now somewhere in my listview there is a TextBox and the Content property is set to {Binding}
But this is the shorthand. How do I write the full binding to bind to itself?
{Binding Path=Self} doesn't work, neither does {Binding Self} (where ...
Hi Folks.
I've some trouble with binding images from XML doc.
My XML doc is:
string xml = "< ?xml version=\"1.0\" standalone=\"yes\"? > < Citizens > " +
"< Citizen >" +
"< fname > Aziz < /fname >" +
"< lname>Mirzaev< /lname>" +
"< pname>Ibrakhimovich< /pname>" +
"< bday>25.01.1986< /bday>" + ...
I have code looks like below:
ResourceDictionary res = (ResourceDictionary)Application.LoadComponent(new Uri("Style.xaml", UriKind.Relative));
Style style = new Style();
style.Resources = (Style)res["ComboBoxTextBox"];
VS2008 retuns error:
style.Resources = (Style)res["ComboBoxTextBox"];
Cannot implicitly convert type 'System.Windo...
Hi
I have a xml file which I want to edit using automatic data binding in my wpf application.
Can anyone lead me into this please? For example, can I add all the xml contents into a treeview? More...if I modify the xml by hand, will the treeview auto-refresh with the new values?
Thanks
...
Hello,
i want to create a Window in an ControlLibrary called MyWindow so that i can define a Standard Look for all my new Applications (for example i want to put an Icon in the MyWindow) and some basic logic so i can inherit from that window in other Wpf-Applications.
But if i try to inherit MyWindow in another application i get an err...
Hi,
I've got a window which opens a borderless dialog where you select some options. Once the options are set the dialog closes and the main window is enabled again. Not too difficult.
But due to the changed options in the option screen I need to refresh the main window and prevent changes from beeing made before the refresh.
So now ...
I want to display a simple .SWF file on my WPF Form. It's a simple animation on loop.
Is there a control "box" type element I can place on my form and just load the .swf file to it so it can play?
Thank you for the help. :D
...
I'm working on a WPF app and I understand the command pattern pretty well, but I've found that there are several different implementations of the command pattern for MVVM. There's Josh Smith's implementation in his WPF sample app, the DelegateCommand from Prism, and the CommandBindings implementation.
My question is, what is the general...
How would one remove all the forward entries in a navigation service?
I tried this but it is crashing.
while (NavigationService.CanGoForward) NavigationService.RemoveBackEntry();
I know "RemoveBackEntry()" seems odd but there is no RemoveForwardEntry() method.
Any ideas?
Thanks,
Kohan
Edit 1:
Im a little closer, i can access t...
This is a two part question from a WPF animation newbie. First, here is my code:
public void AnimatePaneBox(ContentControl destination,
UIElementCollection source)
{
// Create a NameScope for this page so that
// Storyboards can be used.
NameScope.SetNameScope(this, new NameScope());
Canvas ...
I've got a basic spinner type control I've whipped up, and it works reasonably well, but there's a massive amount of repeated code throughout it. It's essentially the same element over and over again except for two properties, and one of those properties is the BeginTime for the Storyboard - each line just endlessly repeats its animati...
I've seen this question asked numerous times and have gone over my code over and over. But when I assign to my SelectedItem-bound property with an object, it does not update the display's selected item. It appears that the ListBox thinks the object I assign is not a member of its items.
public class MainViewModel : ViewModelBase
{
/...
I have the following XML (simplified example) which should have a parent/child relationship between two ComboBox's. The parent binds correctly but the child does not bind to the parents SelectedItem.
When I set xmlns against the foobar XML and remove all namespace references it works as expected. Also if I set ItemsSource="{Binding XPat...
I have an animation that I have setup on a transparent canvas. I set that canvas to be the content of a button and then run the animation. (See this question for the code.)
The problem is that sometimes the animation gets put behind other UI elements of my app (I am using Avalon Dock and it is in front of the DockableContent it is in,...
I just want a sound to play whenever a user clicks a button. Said sound is in OGG format.
Any help? :D
I tried using MediaPlayer, but that seems to be only for videos.
...
What's the best control to arrange buttons horizontally across a window in WPF?
I am having trouble arranging the buttons evenly while resizing the window. I tried to use the stack panel but the buttons just stay at their position and do not space out to fill up the window space. Tried to use the dock panel as well but no luck yet.
Can ...
I have developed an application that looks great on my computer but when I install it on other computers with different resolutions and DPI settings, it looks terrible. Controls overlap eachother and it's just miserable. Does anyone have any suggestions on how to avoid this?
...
In our WPF applicaiton, we're using WindowStyle="None" in order to give our application a more custom look. The maximize/minimize buttons are in the same place, but styled the way we want them.
As such, we're hijacking the maximize and minimize behavior and doing it manually. We're doing the following:
this.Top = myScreen.WorkingArea...