Câu hỏi được gắn thẻ «wpf»

Windows Presentation Foundation, hay WPF, là một hệ thống con để hiển thị giao diện người dùng trong các ứng dụng dựa trên Windows.

7
WPF ListView: Đính kèm sự kiện nhấp đúp (vào một mục)
Tôi có những thứ sau ListView: <ListView Name="TrackListView"> <ListView.View> <GridView> <GridViewColumn Header="Title" Width="100" HeaderTemplate="{StaticResource BlueHeader}" DisplayMemberBinding="{Binding Name}"/> <GridViewColumn Header="Artist" Width="100" HeaderTemplate="{StaticResource BlueHeader}" DisplayMemberBinding="{Binding Album.Artist.Name}" /> </GridView> </ListView.View> </ListView> Làm cách nào tôi có thể đính kèm một sự kiện vào mọi mục liên kết sẽ kích hoạt khi nhấp đúp …
85 c#  wpf  xaml 


3
Làm cách nào để ẩn tiêu đề của WPF ListView?
Tôi muốn có thể ẩn tiêu đề ở đầu mỗi cột lưới trong WPF ListView. Đây là XAML cho ListView của tôi: <Window x:Class="ListViewTest.Test0.ListViewTest" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Title="Empty ListView Grid" Height="216" Width="435" FlowDirection="LeftToRight" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Grid.IsSharedSizeScope="False"> <Window.Resources> <XmlDataProvider x:Key="CustomersDS" Source="C:\data.xml"/> </Window.Resources> <ListView Margin="0,0,0,50" ItemTemplate="{DynamicResource CustomerTemplate}" ItemsSource="{Binding Source={StaticResource CustomersDS}, XPath=/Customers/Customer}"> <ListView.View> <GridView> …




4
WPF: Tạo hộp thoại / lời nhắc
Tôi cần tạo Hộp thoại / Lời nhắc bao gồm TextBox để người dùng nhập. Vấn đề của tôi là, làm thế nào để lấy văn bản sau khi đã xác nhận hộp thoại? Thông thường, tôi sẽ tạo một lớp cho lớp này sẽ lưu văn bản trong một …
84 wpf  xaml  dialog  prompt 


2
Bộ chuyển đổi IValue WPF tích hợp
Ok, thật bất ngờ (sau khi viết nhiều lần) khi thấy rằng đã có BooleanToVisibilityConverter trong không gian tên System.Windows.Controls . Có lẽ có nhiều tiết kiệm thời gian ẩn như vậy. Bất cứ ai có một số?
84 wpf  converters 







Khi sử dụng trang web của chúng tôi, bạn xác nhận rằng bạn đã đọc và hiểu Chính sách cookieChính sách bảo mật của chúng tôi.
Licensed under cc by-sa 3.0 with attribution required.