xaml

Manually add rows in WPF DataGrid

折月煮酒 提交于 2021-01-27 04:06:52
问题 I have the following XAML Code: <sdk:DataGrid Margin="58,8,52,18" Name="dataGridTickets"> <sdk:DataGrid.Columns> <sdk:DataGridTextColumn x:Name="ticketNoColumn" Header="Ticket No." IsReadOnly="True" Width="SizeToHeader"/> <sdk:DataGridTextColumn x:Name="seatRowColumn" Header="Seat Row" IsReadOnly="True" Width="SizeToHeader"/> <sdk:DataGridTextColumn x:Name="seatNumberColumn" Header="Seat Number" IsReadOnly="True" Width="SizeToHeader"/> </sdk:DataGrid.Columns> </sdk:DataGrid> I would like to

Manually add rows in WPF DataGrid

倖福魔咒の 提交于 2021-01-27 04:06:37
问题 I have the following XAML Code: <sdk:DataGrid Margin="58,8,52,18" Name="dataGridTickets"> <sdk:DataGrid.Columns> <sdk:DataGridTextColumn x:Name="ticketNoColumn" Header="Ticket No." IsReadOnly="True" Width="SizeToHeader"/> <sdk:DataGridTextColumn x:Name="seatRowColumn" Header="Seat Row" IsReadOnly="True" Width="SizeToHeader"/> <sdk:DataGridTextColumn x:Name="seatNumberColumn" Header="Seat Number" IsReadOnly="True" Width="SizeToHeader"/> </sdk:DataGrid.Columns> </sdk:DataGrid> I would like to

Manually add rows in WPF DataGrid

早过忘川 提交于 2021-01-27 04:06:35
问题 I have the following XAML Code: <sdk:DataGrid Margin="58,8,52,18" Name="dataGridTickets"> <sdk:DataGrid.Columns> <sdk:DataGridTextColumn x:Name="ticketNoColumn" Header="Ticket No." IsReadOnly="True" Width="SizeToHeader"/> <sdk:DataGridTextColumn x:Name="seatRowColumn" Header="Seat Row" IsReadOnly="True" Width="SizeToHeader"/> <sdk:DataGridTextColumn x:Name="seatNumberColumn" Header="Seat Number" IsReadOnly="True" Width="SizeToHeader"/> </sdk:DataGrid.Columns> </sdk:DataGrid> I would like to

How to align multiple StatusBarItems to the right side in XAML?

风流意气都作罢 提交于 2021-01-26 03:07:58
问题 I have a StatusBar with 4 items in it on my C# application. I basically want to float the last two StatusBarItems to the right. I've tried it by setting them both with HorizontalAlignment="Right" , but that did only work for the last item. <StatusBar Name="statusBar1" Height="23" HorizontalAlignment="Stretch" VerticalAlignment="Bottom"> <StatusBarItem /> <StatusBarItem /> <StatusBarItem HorizontalAlignment="Right" /> <StatusBarItem HorizontalAlignment="Right" /> </StatusBar> I started

WPF Custom Window Template No Content

自古美人都是妖i 提交于 2021-01-24 18:57:34
问题 We are about to move to WPF and are currently working on a templated window. After hours of reading and following tutorials on CodeProject and StackOverflow I am struggling with a, what I believe rather simple, problem in regards of transparency. When I run the app, there is no "content" in my window. I have my Style defined in Generic.xaml, which is located in the Themes folder. <ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas

WPF Custom Window Template No Content

对着背影说爱祢 提交于 2021-01-24 18:57:16
问题 We are about to move to WPF and are currently working on a templated window. After hours of reading and following tutorials on CodeProject and StackOverflow I am struggling with a, what I believe rather simple, problem in regards of transparency. When I run the app, there is no "content" in my window. I have my Style defined in Generic.xaml, which is located in the Themes folder. <ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas

WPF Custom Window Template No Content

谁说我不能喝 提交于 2021-01-24 18:56:43
问题 We are about to move to WPF and are currently working on a templated window. After hours of reading and following tutorials on CodeProject and StackOverflow I am struggling with a, what I believe rather simple, problem in regards of transparency. When I run the app, there is no "content" in my window. I have my Style defined in Generic.xaml, which is located in the Themes folder. <ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas

WPF: Filtering a dataGrid on the fly

无人久伴 提交于 2021-01-24 18:09:45
问题 In my WPF Window I have a DataGrid control, with its ItemsSource bound to an ObservableCollection of items (let's say a simple object with a couple properties): XAML: (Removed some xmlns stuff for brevity) <Window> <Window.Resources> <CollectionViewSource x:Key="MyViewSource" Source="{Binding MyItemList}" Filter="MyItemList_Filter"/> </Window.Resources> <Window.DataContext> <!-- Some Ioc stuff --> </Window.DataContext> <StackPanel> <TextBox Text="{Binding TextFilter}" /> <DataGrid Grid.Row="1

WPF: Filtering a dataGrid on the fly

China☆狼群 提交于 2021-01-24 18:05:53
问题 In my WPF Window I have a DataGrid control, with its ItemsSource bound to an ObservableCollection of items (let's say a simple object with a couple properties): XAML: (Removed some xmlns stuff for brevity) <Window> <Window.Resources> <CollectionViewSource x:Key="MyViewSource" Source="{Binding MyItemList}" Filter="MyItemList_Filter"/> </Window.Resources> <Window.DataContext> <!-- Some Ioc stuff --> </Window.DataContext> <StackPanel> <TextBox Text="{Binding TextFilter}" /> <DataGrid Grid.Row="1

WPF: Filtering a dataGrid on the fly

妖精的绣舞 提交于 2021-01-24 18:04:48
问题 In my WPF Window I have a DataGrid control, with its ItemsSource bound to an ObservableCollection of items (let's say a simple object with a couple properties): XAML: (Removed some xmlns stuff for brevity) <Window> <Window.Resources> <CollectionViewSource x:Key="MyViewSource" Source="{Binding MyItemList}" Filter="MyItemList_Filter"/> </Window.Resources> <Window.DataContext> <!-- Some Ioc stuff --> </Window.DataContext> <StackPanel> <TextBox Text="{Binding TextFilter}" /> <DataGrid Grid.Row="1