I am looking for a good (excellent?) WPF/XAML book. A couple of things would be preferable:
Oriented largely towards programming on the desktop.
In depth and digs into advanced topics.
Can you give a recommendation and tell why?
...
I'm needing to create a UserControl, that has a portion of the control's background transparent. The transparent portion is cutout in the shape of a Border with CornerRadius of 2--it's required because of the design.
Here is my code that is not working:
<UserControl Margin="1" x:Name="Box">
<UserControl.Resources>
...
Hi,
I've got a custom control which has a DependencyProperty MyAnimal - I'm binding an Animal Property on my ViewModel to the MyAnimal DependencyProperty.
I've stuck a TextBox on the Control so I can trigger an Event - whenever I trigger the event the MyAnimal property has been set - however if I put a break point on the Setter of the ...
I would like to be able to create a DataTemplate to be used when a collection is passed into a control.
I am building a single control, that when passed an object, or a collection of objects, the view of the user control conforms to the template defined for the object type.
for example, this is a user control I have, that switches view...
hello everyone it is me again! i've got few problems too. i am deveoping an training software that's why i am asking lots of questions.i hope you help me. thanks in advance.
my problems are as follows:
First of all: i have a register window that has a combobox. i have binded it an access datasource. the problem is when i select an it...
Hi all,
I have menu item on my WPF form that runs a import routine, I have bound the command property to a ICommand property in my view model but for some reason the method won't fire.
This is the xaml:
<Menu Height="21"
Margin="0,-2,0,0"
VerticalAlignment="Top"
Grid.ColumnSpan="2">
...
I was just wondering if there is a way to disable controls such as ctr Left/Right arrows or Alt+left/right arrows in AxWindowsMediaPlayer. I am using it in WindowsFormsHost in my WPF project. I would like to capture these controls and handle them myself. When I use this block, I don't have any way to prevent it by using e.handeld =true o...
I have added one combo box on form and written Got focus event for that as DroppedDown=True.
But when I click on the combobox first that gotfocus event get call and items list get pop up. But after that due to mouse up event that list again pop down so i cann't see the pop up list.
How to tackle this??
Can low level event or global hooks...
Recently our application encountered a strange problem.
The application has a win32 window in the WPF window,
when resize the WPF window, the problem occurred.
StackTrace:
Exception object: 0000000002ab2c78
Exception type: System.OutOfMemoryException
InnerException: <none>
StackTrace (generated):
SP IP Function
00...
I'm using custom Scrollbars we created using standard ControlTemplates, however when I apply them to a ListBox there is a corner in the bottom right which I am unable to find any way to override.
Unfortunately I can't post a picture until I get more points. But the corner I'm referring to is when both a vertical and horizontal scrollbar...
is their any way to render the canvas or rectangle in wpf in asp.net mvc as an image.
I need to render the wpf control in mvc as an image.
I have tried and only blank image is rendering..
...
Hi.
I am using Lesters DragAndDropManager
to get the drag and drop function in my application and i really like the way it's implemented, but I have one small problem and that is that I want to show the mouse cordination during the drag in my statusbar, so how do I send the mouseposition from the DropManager to my xaml code.
I have tr...
My question is how to decrease deployed xbap application size?
...
I am kind of new to the whole MVVM pattern, and am trying to wrap my head around it. What I am currently trying to figure out is: in a well structured solution where do the ViewModels live?
Currently my design looks something like this (sort of):
Application (The view)
DomainSpecificCode (ClassLibrary)
Gateways (ClassLibrary)
If ...
I am trying to modify App.cs and load the WPF XAML files from code behind but its not working as it should.
No matter whatever I try to set as StartupUri it doesnt start, the program quits after this.
public partial class App : Application
{
protected override void OnStartup(StartupEventArgs e)
{
base.OnStartup(e);
...
Hi,
At our work we have a controversy going on where some people want to create user controls that combine frequently used controls like a label and a text box, or a label and a image control. That is, something like this:
<StackPanel Orientation="Horizontal">
<Image Source="/Someimage/Somewhere.gif"/>
<Label>Some text, hyperli...
Hey pals,
let's put it short: I'm trying to create a WPF custom control that inherits from WPF Image. I have added a dependency property called "Source Type" to my control so that when databound it sets the "Source" property of the image to what I want.
But the problem is that my method to perform the source changing task (i.e "OnSourc...
Is it possible to use multiple brushes within a single GeometryDrawing? I have several geometries that I want to draw with different brushes, and it's rather verbose to have to declare an individual GeometryDrawing for each. I'm looking for a more concise way to express the following:
<DrawingImage x:Key="SomeDrawingImage">
<Drawing...
I'm creating a WPF application using the MVVM design pattern that consists of a ListView and some ComboBoxes. The ComboBoxes are used to filter the ListView. What I am trying to accomplish is populating the combobox with items in the related ListView column. In other words, if my ListView has Column1, Column2, and Column3, I want Comb...
Always annoyed me how C# wants to do the startup for you. So now I am trying to make my own main method. It's not working:
I have provided this main method:
[System.STAThreadAttribute()]
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public static void Main()
{
Model model= new Model();
Controller controller = new Controll...