I am using RealTimeStylus to get Ink data in a WPF application. This works fine until the window on which I collect the ink loses focus. When I draw on the window after that, the AsyncStylusPlugin does not receive Packets, StylusUp or StylusDown events, even if it get the focus again.
The curious thing is that this problem only occurs o...
I'm experimenting with WPF animations, and I'm a bit stuck. Here's what I need to do:
MouseOver:
Fade In (0% to 100% opacity in 2 seconds)
MouseOut:
Pause for 2 seconds
Fade Out (100% to 0% opacity in 2 seconds)
I've got the Fade In and Fade Out effects, but I can't figure out how to implement the Pause, or even if it's possible.
...
Up to now when I wanted to update an UI control from a non UI thread I used syntax like:
Dispatcher.Invoke(DispatcherPriority.Normal,
new Action(()=>Label1.Content="New Content"));
Now I am reading some more about it I keep finding the following syntax:
Label1.Dispatcher.Invoke(//same arguments;
Is the latter bett...
When I choose an Icon for a wpf Window through the designer I get the following XAML:
<Window Icon="/MyNameSpace;component/myIcon.ico">
Please explain this notation for me!
Say I want to set the Icon in the code behind. How do I translate the XAML to C#?
...
I'm using the Infragistics WPF controls in a new project, and I'd like to take advantage of their themes support. I'm able to change the theme of my window (and toolbars) via the OnThemeChanged event, but I can't figure out how to change the theme of child controls (such as the XamDockManager), as they're added at runtime.
I'm new to WP...
I am using Microsoft.Build.BuildEngine.Engine to build a WPF application. This has been working successfully for class libraries and web applications, but now trying to use it to build a WPF application I am getting the following error:
Target MarkupCompilePass1:
c:\Windows\Microsoft.NET\Framework\v3.5\Microsoft.WinFX.targets(...
Hi All,
I have a need to have hidden items in my WPF app and when the users moves their mouse, a torch light style of control is shown (which is just a basic path shared like a cone on its side at the moment).
What I would like is to add an effect to the hidden controls (which are buttons) when the torch light is over them to give the...
If I wanted to determine if a user had a genuine copy of windows, how could I do that in C#? Can I integrate with Windows Genuine Advantage?
...
Hi,
In WPF, is it possible to bind a property of class which is other assembly to the control which is in different assembly .Please help.
Thanks
...
Hi,
How to decide the type of a custom lookless control on run time.I have to decide the controls type(ie,whether textbox or combo) on runtime(actually when some Dependency property is bound).How can i do it? Can i define where to inherit from on run time..?
...
I have a dialog that lets the user pick a custom icon. Loaded icons are displayed in a combobox in which the user makes the selection. Here is the XAML code for the combobox:
<ComboBox
Style="{DynamicResource IconComboBox}"
ItemTemplate="{StaticResource IconTemplate}"
ItemsSource="{Binding Icons,
RelativeSource={RelativeSource Fin...
For the life of me, I can't seem to bind to my viewmodel using multibindings. All of the examples on the net bind to gui elements directly, but whenever I try with a viewmodel object exceptions are thrown.
My question is, how do I add a multibinding to several viewmodel objects in xaml?
I need to bind the IsEnabled property of a contex...
Hi!
My application uses a WPF DataGrid. One of the columns is a template column that containts a combobox bound to an ObservableCollection of the entity which feeds the row. When I add a value to the ObservableCollection, a NullReferenceException is thrown.
Has anybody an idea why this happens? Here is the stacktrace of the exception:
...
Hello,
I applied BureauBlue.xaml theme to my application and it wreck my all alignment. Is there any solution to apply theme without destroying my alignment???
Place your theme in "Themes" Folder.
application
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
x:Cl...
I've almost got this working apart from one little annoying thing...
Because the ListBox selection happens on mouse down, if you start the drag with the mouse down when selecting the last item to drag it works fine, but if you select all the items to drag first and then click on the selection to start dragging it, the one you click on g...
As we all know, if the icon for a wpf window is undefined then the default icon is displayed. I want to display a window without any icon in the title bar. I realise that I could use a blank image, however this would cause the text in the title bar to be offset to the right.
Does anyone know of a way to completely remove the icon?
(I t...
private TextBlock _caption = new TextBlock();
public TextBlock Caption
{
get { return _caption; }
set { _caption = value; }
}
<l:CustomPanel>
<l:CustomPanel.Caption Text="Caption text" FontSize="18" Foreground="White" />
</l:CustomPanel>
Gives me the following error:
Cannot set properties on property elements....
I have a ListBox with a DataTemplate that looks like this:
<ListBox Name="listBox">
<ListBox.ItemTemplate>
<DataTemplate DataType="x:Type local:NumericIconDefinition">
<Grid>
<ComboBox Name="IconComboBox"/>
</Grid>
</DataTemplate>
</ListBox.ItemTemplate>...
I have an Image control that contains a path to an embedded image (build action 'resource').
<Image Source="Assets/images/image.png" Stretch="None" />
If I add that to a container in my MainPage.xaml the image appears fine. When having the same image in a UserControl as shown below, and then adding an instance of that UserControl on M...
I am writing a designer that enables the user to drag controls around the screen.
What would be the best way of detecting if a control is overlapping another control while i am dragging the one control around?
Should i just get the dimensions of the FrameworkElement and keep on checking the dimensions of the other elements?
Thanks.
Eli...