wpf

    0热度

    1回答

    <Page x:Class="ManufacturingWPF.ShowHardware" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:mc="http://s

    3热度

    1回答

    我想使用Glyph来渲染从右向左的语言文本(例如阿拉伯语或混合英语和阿拉伯语)。 我使用这个代码: Typeface typeface = new Typeface(new FontFamily("Arial"), FontStyles.Italic, FontWeights.Normal, FontStretches.Normal);

    -1热度

    1回答

    我有三个按钮的形式: 1.主菜单(DataGridView中) 2.设置(标签,按钮等) 3.信息(只是多标签)形式的 截图: 我希望每一个菜单按钮,点击后改变我的WPF应用程序的右侧部分的内容。 我该如何认识它?

    3热度

    3回答

    我试图在WPF中实现正确的MVVM体系结构。 我有一个玩,在“模型”部分有一个布尔属性,说如果我们现在“玩”。 public bool IsPlaying { get { return isPlaying; } set { isPlaying = value; OnPropertyCha

    3热度

    1回答

    我使用F#类型,并用它在WPF窗口 的数据源,也产生从它的JSON: type Customer = { mutable Name: string ; mutable Phone: PhoneNumber list } and PhoneNumber = { mutable Number

    0热度

    1回答

    在我的WPF应用程序中,我正在为ComboBox编写一个自定义模板。我想组合框获得提升的阴影效果,当用户将鼠标放在它,所以我尝试写这样的代码: <ControlTemplate TargetType="{x:Type ComboBox}"> <Border x:Name="templateRoot" Background="{TemplateBinding Backgrou

    0热度

    2回答

    在我的WPF应用程序使用MVVM,我有一个DataGrid(dgSelectCase)从我的ViewModel充满了绑定ObservableCollection。一个按钮出现在第一列中,单击时,应该将选定的行添加到第二个DataGrid(dgCaseSelected)。 View DataContext绑定到ViewModel后面的代码中,我知道它可以工作,因为页面上的其他控件(组合框,文本框等)

    0热度

    1回答

    我是WPF的新手,我试图制作一个控件,它会在每次打到特定控件时扩展我的表单,直到它达到最多7次。 这是形式: https://i.imgur.com/50tzCSy.png <Border Padding="10"> <StackPanel> <TextBlock Text="Insert a file or expand to insert more file at onc

    0热度

    1回答

    我想创建一个触发时Panel.OnVisualChildrenChanged被称为附着面板事件: public class PanelObserver { public static readonly RoutedEvent VisualChildrenChangedEvent; static PanelObserver() { VisualChildrenCha

    0热度

    2回答

    我的应用程序基于WPF。 任务是我需要显示一个自定义的繁忙指标,而一些工作在主窗口(因为应用程序的用户界面将冻结,直到它完成任务)。所以我特别想是如下 // Code in main window CustomBusyIndicator.ShowDialog(); //.... //..code that takes time //.... CustomBusyIndicator.Clo