I’m new to WPF, so I apologise if this is an obvious question.
I’m trying to publish a WPF application. I’ve gone through the publish process and published it to my local host (http:/localhost/app). Once it was published, it gave me the published URL: http://MyNetworkID/ProgramName/publish.htm. There is a run icon here, but when I cl...
Hi,
I'm looking for a grid control that works like UniformGrid, except that it should have dynamically sized cell sizes (as you probably know, uniformgrid keeps all row heights equal and all column widths equal). Does this exist at all?
UniformGrid works fine for some purposes (when controls are roughly the same size, so it won't look l...
The background: I have arbitrary query that is executed and then I fetch data -- array of records = arrays of objects. I would like to view them using DataGrid.
The problem: It does not feel that app is responsive enough. Switching from query to query is slow, it takes around 1-2 seconds to switch, and there are only ~20 records to disp...
It looks like there is an AutoComplete box in Expression Blend 4, but it looks like it doesn't let you use it on a regular WPF application. Can this be true? Is it only available for Silverlight applictions? If so, is there one I can use in a WPF application written for .Net 4?
...
I can load images in WPF by using the BitmapImage class. My code works perfectly when I drag an image within a WrapPanel but its throwing an exception while I'm going to drop that dragged image on another image within the same WrapPanel.Can anybody suggest me for good code else rectify it plz
My XAML is:
<Window x:Class="WpfApplication...
Hi
I have a WPF Grid and a list of values. The list of values have a row and column property and the content value. There are between 200 and 14,000 values to be displayed in a formatted grid.
I have added rows and columns to the grid then added text blocks to the grid in the correct row/column positions.
This works great till I have ...
Hi,
I am able to aassign a playlist to MediaPlayer like follwoing:
myMediaElement.Playlist = playList;
Where playList is the collection of PlaylistItem.
But here my question is how can we assign just a playListItem to myMediaElement. For Example:
myMediaElement.Playlist = playList.Items[0];
I don not want to used myMediaElement.Go...
I'm using WPF 4.0. I have a WPF Datagrid. One of my column in a datagrid is a template column. In that template column I have used Win forms Textbox and my problem is that,
How to bind that win forms texbox control in WPF?
How to access that control or column in Code behind (c#)?
...
How can i change the background color of the header section of the WPF toolkit datepicker control?
Since the Default color is dark blue and the foreground is in black, it seems a bit difficult to read the text.
Thanks in advance.
...
I want to have childGrid in second column of parentGrid (in chilGrid I want to have two columns: first for labels, second for textboxs)
How can I do Something like that:
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Height="*"/>
<ColumnDefinition Height="*"/>
<RowDefinition Height="*"/>
...
Hi.
I'm trying to turn some text to Hyperlink while a user is typing in WPF RichTextBox.
My first attempt at it involves running this code at each KeyUp:
Regex r = new Regex("[A-Z]{3}");
FlowDocument doc = this.inputBox.Document;
String text = new TextRange(doc.ContentStart, doc.ContentEnd).Text;
foreach (Match m in r.Mat...
Hi.
I have a WPF application in Expression Blend.
In the application I want to have a listbox on the right side that lists words.
When the user clicks on a word, I want to appear on the left a bigger text of the word, description, and some other text.
I understand that to list all the words in the listbox I need to databind data that...
Please, let's focus on the horizontal size (width).
I have horizontal StackPanel which auto-resizes to occupy entires space (it "expands"). Within it I have Grid (with 3 columns) and a scrollbar. The scrollbar width should be fixed, but Grid should expand. How can I force it to do it?
Current code:
<StackPanel Orientation="Horizontal"...
Is there any time entry/picker control Available in WPF like Date picker?
Thanks
...
Hi,
I have a WPF application which has a main window composed from several custom UserControls placed in AvalonDock containers.
I want some of the UserControls' functionality to be accessible from a toolbar and menubar in the main window. I have a command defined as this in the control like this:
public ICommand UnfoldAllCommand
...
I have the following XML being set on my treeview:
<Root Value="YES">
<Child Name="Test">
<Sibling Data="Yes">
<Last UserData="1"/>
</Sibling>
<Sibling Data="No"/>
</Child>
<Child Name="Test2"/>
</Root>
and then I have set the following code in my window:
<Window.Resources>
<XmlDataProvider x:Key="dataProvider" XPath="R...
I'm rendering a WPF canvas to an image and sticking it on the clipboard.
If the canvas is small (< 900px square) it all works fine.
I have a larger canvas (3000+px square) and the clipboard is empty (paste option disabled in photoshop/word etc)
var transform = canvas.LayoutTransform;
canvas.LayoutTransform = null;
var size = new Size...
I have a List<T> bound to a datagrid and am trying to figure out how to save all the changes to the database (using Entity Framework), not just one row at a time; OR, at least a better way to commit changes from the datagrid to the database. I am using the MVVM pattern.
Here is what I have as far as saving one row:
private static P...
I'm looking for an example of a 'device ring', somewhat like the one used in Live Mesh (anything in a ring will do) in XAML (WPF/Silverlight). Preferably with demo code or open-source so I can have a look at how things work under the cover. Other animations, like resizing of the elements if they move around the ring, are a nice extra, bu...
How can I create an instance of my UserControl dynamically (in code behind) and display it on the Canvas?
...