Quantcast
Channel: Windows Presentation Foundation (WPF) forum
Browsing all 18858 articles
Browse latest View live

Rotate vector by a quaternion

hi allIs it possible to rotate a Vector3D by a given quaternion in WPF?I found the following:v' = qr * v * qr<sup>-1</sup>but I can't multiply a vector with a quaternionany ideas?

View Article


Lazy Parent Data Binding!

Hi Everyone,I have a UserControl (extended as MyControl) which displays a list of views (UserControls).The child controls expanders and I want to control them from the parent window.(More on the code...

View Article


Help with Quaternion Structure

Hi,I have a model called in C# from a file path, and I want to make it rotate using this example.Quaternion StructureMy Questions are:How and where"QuaternionWText" is declared?What Should I include...

View Article

Get mouse position within a control during Drag/Drop

I have been trying to get this to work for a while now.  While in the Drop method I want to get the mouse position relative to the control that was dropped on.  I only get negative numbers in the point...

View Article

How to debug DataTransferManager? It works inside debugger and fails outside...

 I am adding a Share feature to a WPF app on Windows 10 based on the MSDN blog post here (Sharing Content from your Win32, WinForms or WPF App -- Nice post, Arun. Thanks!)  I downloaded the sample and...

View Article


How to get a horizontal SimpleListBox

Hi Guys.The following does not work for SimpleListBox. So, How to get a horizontal SimpleListBox<ListBox>    <ListBox.ItemsPanel>        <ItemsPanelTemplate>            <StackPanel...

View Article

FontStretch does not work for buttons

Hi Guys,How to get the text on a button expanded or condensed?ThanksRichard

View Article

Canvas WPF: Zoom on pointer and Pan (again)

Hi,after two days lost by attempting to resolve this problem, I think that i need help to solve it... ;)I've made a simple application with a Canvas into the main window. For testing, this Canvas is...

View Article


screen appears blank

while launching the wpf windows application blank screen appears, unable to find the root cause, only a specific person faces this issue, he have upgaded java version from 1.7, 32 bit to 1.8, 32 bit.Is...

View Article


Binding data to dialog

hello,my VM open a dialog thougth message :public void AddAssociationCommandExecute() { Messenger.Default.Send(new NotificationMessage<DictionaryEntry>(new DictionaryEntry("0", "FALSE"),...

View Article

How to avoid memory leak in code of Win 7 - Onscreen keyboard while clicking...

Hello Team,I am developing WPF - Web browser based kiosk application.I have implemented the feature like when somebody clicks on any textbox inside the page rendered in web browser control then...

View Article

Aligning & scaling a nested ItemsControl's content relative to parent

I've got a ScrollViewer that is the content of an Expander, which is the template of an ItemsControl that is the content of another ScrollViewer. I'd like to stretch the inner-most ScrollViewer to the...

View Article

wondering about MouseBinding/KeyBinding and Command

Msdn does not say InputBinding.Command or MouseBinding.Command is dependency property.Some peoples use binding like <KeyBinding Command="{Binding MyCommand}" Key="N"/>(Refer to...

View Article


How to databind image file names without extention?

Hi Guys,When databind image file names (Text="{Binding XPath=Image}" ) The entire XPath shows up, for example, "Images/Cat.jpg" How to just get "Cat" only?Here is the XML file:<?xml version="1.0"...

View Article

How remove focus on edit cell after click reset button

First, try to input invalid value in datagrid cell, then click reset button. After that you will see although values are being reset however the focus still on the datagrid cell and still blocking to...

View Article


Image may be NSFW.
Clik here to view.

2 data grid combined as 1 and how to set the data grid editable when another...

I have create 2 data grid and locate both of it side by side. The data grid allows user to edit and when the value range "0 > input" or "100 < input", error icon will be displayed. However, when...

View Article

Very strange behavior DIALOG

hello,After close dialog thougth close button, sometimes it reopens inexplicably.Dialog is open thougth message. It is reopened when the message is sent, however, only once.public partial class...

View Article


Multiple HwndHost not getting seperate HWND

I'm rendering video with OpenGL in WPF with a HwndHost-class. It works really well until I create a second instance of my HwndHost-host element. What happens is that the two elements gets the same HWND...

View Article

Hosting WPF control in Windows Forms Application

Hi,In my WPF control, i have implemented asynchronous pattern to perform non UI tasks by the following way.        internal static void Execute(Action action)        {            if...

View Article

How to change the size of triangle shape next to TreeViewItem in WPF

 I need to increase the size of triangle shape in the TreeViewItem from c# code behind in WPF.Thanks in advance.

View Article
Browsing all 18858 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>