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