hI,
I am working in wpf - mvvm model.
I have a textbox which holds- "marketName". In xaml I am binding the property - "newmarketname"(which is defined in my viewmodel) to this textbox. Once if user enter a new market name in that text box, the "set" method of the "newmarketname" get called.
In set method of the "newmarketname", I cal...
can i use wpf for importing 3d character and manually animate it like skinned model
in xna???????
...
As part of a diagram, I am drawing a few overlapping Shapes, each with Opacity=0.5, like here:
<Grid>
<Rectangle Fill="Blue" Opacity="0.5" MouseEnter="Rectangle_MouseEnter" />
<Rectangle Fill="Red" Opacity="0.5" />
</Grid>
private void Rectangle_MouseEnter(object sender, MouseEventArgs e)
{
MessageBox.Show("Entered");
...
Hi!
When using custom dialog windows in a MVVM application, do you think it´s Ok to use the code behind to handle properties, events etc.? Or should I always have a ViewModel binded to every dialog view? What´s your thought?
...
I am learning WPF, and I've run into a term called "Attached Event". I have not been able to find a good resource that isn't confusing.
Can anyone tell me what an attached event is and what it does?
...
I have a button that loads XAML from a file, creates a control from it and adds this control as a child to a canvas that is part of a template present in the resources of a dockpanel on the window. The window also has a combobox named cboTColour and a combobox named cboBColour which I use to set a simple gradient background on my loaded ...
I am attempting to use the WrapPanel and two TextBlocks to append an asterisk (*) to the left side of some text, allow the text to wrap, and force the text to be right aligned. I have successfully done so by creating a WrapPanel with the FlowDirection set to RightToLeft and adding my text, followed by the asterisk. However, if the text...
Hello
I have a TreeView that I filled with a list of TreeViewItem from a collection (using the binding), I linked to a TreeView event "Expand" to expand it and display their childrens, my objective now is to get the last TreeViewItem accessed and to initialize the TreeView by the last treeViewItem consulted.
I can retrieve the last Tree...
Hello,
I would like to get into programming with C# and Silverlight. I have read up a lot on WPF and like it a lot (from my narrow viewpoint)
Here is the question I have: if I understand WPF principles correctly, then I can seperate UI from logic.
I also can seperate logic from animation in my app (using Silverlight for animation...
so here i come creating a user control. it consists of a treeview dropping down from a combobox.
actually there is a button with a control (DropTree) dropping down from it's contextmenu. so i have an control DropTree
public partial class DropTree : UserControl
{
public TreeView TreeView
{ get{return treeView;} }
public Dr...
After a few hours trying to reach some working sample i decided to try my luck here. I am a newbie to WPF, but things should get easier with time ...
I am trying to have a DataGrid showing an XML file i have. That's it.
I have in my application cars.xml
<cars>
<car type="Ford" size="4" />
<car type="Mercedes" size="2" />
...
I am trying to hide the window MainWindow from another window. I thought that the following code would work until I realised that it would just create another instance of MainWindow, and then hide that, and not the original window!
MainWindow MainWindow = new MainWindow();
MainWindow.Hide();
Then I tried to use just MainWindow.Hide() ...
Basically, how do I bind (one-way) to a textbox named txtFullName. Initially, any text in the text box gets cleared/blanked out since ToString returns "". But, when I make changes to FirstName or LastName it does not update the binding against FullName. Any way to do this?
Also, is there any way to bind to a method (not just a field)? T...
I am working with a FlowDocument in a WPF RichTextBox. Some of the flow document elements are created using subclasses of the System.Windows.Documents framework classes and all of the elements use the Tag property to store additional data.
If I use a XamlWriter to serialize a document tree, everything is correctly reflected in the resul...
I have a collection of objects which contains a child collection. I can get the parent collection to show properly on the tabs. But I cannot get the child collection to show in the content pane.
here is my XAML:
<d:DataContext>
<Binding Source="{StaticResource SearchResultsViewModel}" />
</d:DataContext>
<TabControl TabSt...
hello all,
Is there a way to bind an image into a button so that the users sees an image and then the text. In the past I have done this using templates within the xaml however this time I have built the button using styles defined within a resource dictionary. I did this mainly because I wanted to content presenter text to change color ...
I (believe) I'm wiring up DataBinding Validation in a textbook manner, but it just isn't working - at all.
In the debugger, the Validate(object value, CultureInfo cultureInfo) method is never called.
What gives? Also, for bonus points, any pointers on debugging WPF would be awesome.
I'm posting my XAML and the class in question
<Use...
Hello,
I have a thought provoking question, in relation to the use Entity Framework (EF) to persist data. My (intended) application is not a typical LOB scenario where the standard CRUD operations are done on individual records.
Instead, what I would like to use the data stored within my entities, create some Matrices by combining the ...
I have a brush that colors the background of a header. I like the way the brush looks but would like it to fade to transparent in the bottom third. Any ideas how to do this?
<LinearGradientBrush
x:Key="HeaderBackgroundBrush"
EndPoint=".5,1"
StartPoint="1,0">
<GradientStop Color="#006699" Offset="1"/>
<GradientStop Color="#8...