我正在开发基于OptiTrack SDK(来自NaturalPoint)的应用程序.我需要将应用程序窗口作为"Always on Top"运行.该窗口是在XAML中设计的,并在"CameraView"类中进行控制,但它似乎不包含"TopMost"属性或等效属性.附件是"CameraView.xaml.cs"的代码和"CameraView.xaml"的代码,它们是OptiTrack SDK(NaturalPoint)的一部分,称为"Single_Camera_CSharp_.NET_3.0".
人们可以期望CameraView类包含属性或成员来设置窗口在屏幕上的位置或将其设置为TopMost但是在搜索时我什么都没发现.我不知道该怎么做.
谢谢你,Brian
================
using System;
using System.IO;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Navigation;
using System.Drawing.Imaging;
using System.Drawing.Drawing2D;
using System.Windows.Threading;
namespace TestProject
{
public partial class CameraView
{
private const int NP_OPTION_OBJECT_COLOR_OPTION = 3;
private const int NP_OPTION_VIDEO_TYPE = 48;
private const int NP_OPTION_NUMERIC_DISPLAY_ON = 71;
private const int NP_OPTION_NUMERIC_DISPLAY_OFF = 72;
private const int NP_OPTION_FETCH_RLE = 73;
private const int NP_OPTION_FETCH_GRAYSCALE = 74;
private const int …Run Code Online (Sandbox Code Playgroud)