Hi,
I am searching about how to create the columns of the DataGrid from the ToolKit dynamic in MvvM way. But looks like it is impossible !
Is there some one that had to do the samething ?
there is no need to create a usercontrol or another control that comes from DataGrid, I just want to set de ItemSource of the grid to my custom obje...
I tried something like this:
var attrs = typeof(System.Windows.Controls.ComboBox).GetCustomAttributes(typeof(System.Drawing.ToolboxBitmapAttribute), true);
...but attrs is empty collection. I also tried to look up for icons resources in assemblies and nothing found.
...
Given a reference to an object defined in XAML, is it possible to determine what (if any) x:Name the object has, or can I only do this by accessing the FrameworkElement.Name property (if the object is a FrameworkElement)?
...
How can you make the content of a ListBoxItem copyable? not editable.
...
I am making my first WPF application, where I use the Youtube .NET API to upload a video to Youtube using the ResumableUploader.
This ResumableUploader works asynchronously and provides an event AsyncOperationProgress to periodically report its progress percentage.
I want a ProgressBar that will display this progress percentage. Here i...
Hi All,
I have just start to learn wpf. Can anybody clear me the following to give a presentation on WPF.
What is WPF?
Why we need it.
Difference b/w Win form and wpf.
windowsform vs WPF.
Geetha.
...
How to use margin as property of WPF usercontrol?
public Double pCusSPAge
{
get
{
return btnCusSPAge.Margin.Left;
}
set
{
btnCusSPAge.Margin = new Thickness(value);
if (PropertyChanged != null)
PropertyChanged(this, new PropertyChangedEve...
Hello,
I have a TextBlock on my main window.
I would like to bind it's text to the window's title .. eg: myWindow.Title.
This has been bugging me all night, and I have Googled to death, any help is appreciated.
Thanks.
...
The title pretty much explains the question. I have a user control loaded into the main window when the application is first run. What I want to do is to raise an event on parent window when a button on the user control is clicked, so how can I raise a parent event from button1_Click on the user control?
...
Hi Guys
In my WPF App I've got a ListBox. This ListBox is bound to a Dataset(i used the Click-Drag Method onto the Window).
The Listbox has a DataTemplate, and the Elements(TextBox's) of this DataTemplate is Bound to the Columns of the Dataset.
All works well, the ListBox displays the information correctly. The Problem i'm having is w...
I have this situation:
<Button MouseDown="Button_MouseDown" Click="Button_Click">
<TextBlock MouseDown="Inner_MouseDown">Button</TextBlock>
</Button>
Method Inner_MouseDown is completely empty. .Handled is NOT set to true.
But Button_Click is not executed. If I remove the MouseDown="Inner_MouseDown",button clicks without problems....
I've created a dataset that contains 2 tables:
Users (userID, UserName, other user details)
Emails (Id, UserId, UserEmail)
I populate the dataset using 2 DataAdapters (one for each table)
I have a listbox, a few textboxes and a grid.
listbox gets all the users, the few textboxs displays the user details when picked in the list box (thi...
Hi,
How can I force the mouse to move along a specific axis while the user keeps the left button down?
I would like the user to be able to move the mouse along the X axis while any movement on the Y axis would be "canceled".
thanks
Eden
...
I've got a problem with binding in XAML/WPF.
I created Action class which extends FrameworkElement. Each Action has list of ActionItem. The problem is that the Data/DataContext properties of ActionItem are not set, so they are always null.
XAML:
<my:Action DataContext="{Binding}">
<my:Action.Items>
<my:ActionItem DataContex...
Hi all,
I have a UserControl called Beetle.xaml which has animation makeing the legs move. So far so good. I added this to my Background.xaml page by decaring the xmlns and xaml as:
xmlns:my="clr-namespace:Intellident.Liber8.GUI.Theme.Jungle"
and
<my:Beetle VerticalAlignment="Bottom" HorizontalAlignment="Left" Margin="180,...
Hi Experts,
I have created a WPF Tab Control in a user control and trying to use the Tab control in other user control. But the Tab Control appear very small. I tried to set the horizontalcontentalignment and verticalcontentalignment property to stretch but still no effect. I do not want to hard code the height and width as might have s...
I would like to align elements inside a row details template, with a column position.
user can move columns so this value would be changing during runtime.
Is it possible to pass a columns position properties to Row Details elements so that they can position accordingly?
...
I have a WPF application that gets installed on the client machine through the Windows Installer. This application also registers a file extension (.xyz), so when the user double clicks a file, it opens my WPF application and displays the file (like Microsoft Word). This program also has a ton of files that are not marked as resource or ...
I have a custom control in WPF. In this I have a DependencyProperty of the type integer. In the template for the custom control I have a TextBlock, I and would like to show the value of the integer in the TextBlock. But I can't get it to work.
I'm using TemplateBinding. If I use the same code but change the type of the DependencyPropert...
Can somebody tell me when to use a Dispatcher and when to use the SynchronizationContext class. For a while now I had been using the Dispatcher to queue up tasks from a background thread then I discovered the SynchronizationContext.
...