I've made a Control in XAML and added it to the adornment layer, in the control I have a section that should spawn a context menu when right clicked (using TextBox.ContextMenu property). I've tested it in a regular WPF Window and it works great. However, when I tried the same in Visual Studio on an adornment layer I only got the VS2010 e...
Hi,
I have 2 servers. One is production and testing servers.
Now, I have a WPF application which sitting in both production and testing servers. How can i install the WPF app in my local machine with both from production and testing servers? I keep getting an error the same signature has been installed.
thanks
...
I have an observablecollection of datatype ViewModel.
In my data template - I have a ListBox that is bound to the observable collection. I then have a datatemplate defined for each ListBoxItem. In that template, I have a button, whose ToolTip consists of a Grid that contains an image, whose source is bound to a converter that will gen...
I'm trying to add a ContextMenu to items in a ListBox in WPF;
<ListBox.ItemTemplate>
<DataTemplate>
<Border>
<Grid>
<Grid.ContextMenu>
<ContextMenu>
<MenuItem Header = "Menu item 1"/>
...
Everything compiles, but at run time a blank row is displayed. If I try to edit an entry, it says "No XPath set". What am I doing wrong? I tried a ton of variations, not having the INotifyPropertyChanged interface etc.
The base class is:
public class Variable : INotifyPropertyChanged
{
public string Name;
public st...
I am looking at using Sharepoint as a CMS for my WPF application, I was hoping to create some kind of a repository and access that using .NET web services. The repository would simply be some images and perhaps some meta-data about the images (name, description, etc...)
Im am stuck to Sharepoint, so another system is not really an optio...
What is the coding to check whether the nested if statement is true or not?
if (treeViewItem.IsSelected == true)
{
img3_a.Visibility = Visibility.Hidden;
img3_b.Visibility = Visibility.Hidden;
Video.Source = new Uri(@".\step_3.wmv", UriKind.Relative);
Video.Play();
...
i am finding some example source codes for the MSIEmbeddedChainer & MSIEmbeddedUI. wix v3.0 has <EmbeddedChainer> command, but there's no info of how to use (or probably incomplete implementation). i want to chain my msis. however, there are very little details to this topic. msi 4.5 has very nice features with MSIEmbeddedChainer & MSIEm...
[C#] How to write this statement into coding?
I declare my Video Time Value as "VideoTime.Value"
**if (Video Time Value is equal to 4 sec)
{
MessageBox.Show("Video Paused");
}**
...
Hello
I put some data access logic in my default construct of ViewModel class.
However, whenever try to open xaml designer window, visualstudio try to execute default constructor of ViewModel, then popup error window from this.
How can I prevent execution of default constructor in ViewModel class.
I know GetIsInDesignModel() method ca...
Do we have Activator.CreateInstance available in DotNet 3.5 ?
...
Hi,
Please look into this question.
http://stackoverflow.com/questions/3795737/issue-with-mvvm-view-first-approach
But I'm unable to find "x:Shared" attribute.
Please help.
...
Hi All,
Hi I am using Control template to display listbox items. I want to set the visibility of the control based on the item value.
I need the same http://efreedom.com/Question/1-424562/Can-Replace-Image-WPF-Grid-Another-Control-Depending-Source-Data
How to include this option in my code. (If the image source [ImgUrl] value is null ...
Possible Duplicate:
[C#] How to write this statement into coding?
[C#] How to write this statement into coding?
I declare:
MediaElement as "Video"
Slider as "VideoTime"
if (The video has played until 4 sec out of 10sec of that video)
{
*video will be stopped
}
Thanks
...
Hello!
I have a Shell class with one region. I created a module which shows,for example, a list of offices. When I choose one of offices I want to show another module where I want to transfer information about chosen office.
Questions:
what is better: to create another module or maybe to create just another view in existing?
(if I sti...
I've got a combo box, which allows user to select the FontFamily for some control. The combo box is populated using FrameworkElementFactory, which essentially creates a text box for each font family. Each text box print the font family name, using that font typeface. The combo box data is tied to the Fonts.SystemFontFamilies for the list...
hi friends,upto now i am using mysql database using c# to a edit a row to the table.Bu now i have implemented LinqToMySql for wpf.Bu i can insert a row to the table through linq but i cannot edit that row .my edit code is as follows.
Order row;
public EditOrder(Order row1)
{
InitializeComponent();
this.row = row1;
...
I have a usercontrol with a dependencyproperty that takes oen UIElement. So fare so good, the problem is I can not find the element's children.
I think the problem is my lack of knowledge, could anyone tell me what the problem is and a possible solution?
I have made a small test-program like this
Usercontrol codebehinde:
public UIEle...
I want to change Button drawing based on button size using XAML.
I know it is possible using c# code not sure about XAML
Thanks
Update :
my code is like
<Grid Width="60" Height="60">
<Ellipse Width="57" Height="57" StrockThickness="1">
</Ellipse>
</Grid>
I am applying above style to Button control. but here Width/Height...
I am making a project that draw Numbers in multicolored random dots. If you type in a 1,000,000 the scree will slowly paint with 1M dots that look like the number. I'm migrating to WPF and wanted known if there is an easy wat to pain on top of a text block as that will save a lot of hit testing for me.
...