material-design-in-xaml

WPF: Make simple highlight on mouse

隐身守侯 提交于 2021-02-19 08:33:10
问题 I try to write code to make simple highlight on mouse I make a full window and making it transparent it's working but i can't click through i searched for solution i find This Solution but the eclipse doesn't move and whole events doesn't work XMAL Code: <Window x:Class="ChangeMousePosition.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Title="MainWindow" Topmost="True" AllowsTransparency="True" WindowStyle=

WPF MaterialDesignInXamlToolkit Dialog expand to full width

妖精的绣舞 提交于 2021-02-11 15:14:44
问题 I'm trying to get the dialog in DialogHost to be horizontally stretched as much as possible, without hardcoding the size of the control that I'm displaying. Tried the following: setting the UserControl.HorizontalAligment to Stretch setting HorizontalContentAligment to Stretch on DialogHost I noticed that if set the Width to something like 6000, the dialog fills the DialogHost with some nice padding, but the content overflows and things on the right side are not visible. Is there some standard

Caliburn Micro void function can't be triggered inside DialogHost

烂漫一生 提交于 2021-01-29 08:33:05
问题 Normally you can call void function(from ViewModel) in View by simply: Button Name = VoidFunctionInViewModel Button Command={Binding Path=VoidFunctionInViewModel} But when accessing this function inside a DialogHost, the void function isn't triggered. I have tried retrieving a string field to the DialogHost and it works fine, but when it comes to commands on buttons it doesn't work. MainViewModel.cs Commands: public async void OpenDialog() { var confirm = new ConfirmationView{DataContext =

How to use click event in MaterialDesign:PackIcon in WPF?

☆樱花仙子☆ 提交于 2020-07-22 21:37:00
问题 I used materialDesign:PackIkon in my WPF application. this is my code at xaml for the PackIcon <ListViewItem Background="White" Height="55" > <StackPanel Orientation="Horizontal"> <materialDesign:PackIcon Kind="CardMembership" MouseDown="PackIconMember_MouseDown" Height="40" Width="25" Foreground="#FF0959A8" /> <Button x:Name="btnMember" Click="btnMember_Click" Content="Member" Background="{x:Null}" BorderBrush="{x:Null}" Foreground="Black" FontSize="10" /> </StackPanel> </ListViewItem> I

How to include MaterialDesignXamlToolkit to WPF class library?

≡放荡痞女 提交于 2020-06-27 12:00:57
问题 I'm trying to use MaterialDesignXamlToolkit in my WPF class library (.NET framework). I'm following their official quick start tutorial, but since i do not have App.xaml, i had to make some adjustments. Apperently some step was wrong, but i do not know which one. 1) I installed MaterialDesignXamlToolkit using Nuget. 2) I created ResourceDictionary with the following code: (i specified the key because there is an error if i don't) <ResourceDictionary xmlns="http://schemas.microsoft.com/winfx

MessageBox in material design wpf c#

被刻印的时光 ゝ 提交于 2020-04-30 04:33:09
问题 I’m using Material Design In XAML Toolkit C# ,MessageBox in material design WPF C# , I need like this or better Design for MessageBox 👌 I’ve tried use DialogHost but this Error happens No loaded DialogHost instances. private async void MenuPopupButton_OnClick(object sender, RoutedEventArgs e) { var sampleMessageDialog = new SampleMessageDialog { Message = {Text = "Goodbye"} }; await DialogHost.Show(sampleMessageDialog, "RootDialog"); } No loaded DialogHost instances. 回答1: I have developed one

MessageBox in material design wpf c#

空扰寡人 提交于 2020-04-30 04:33:06
问题 I’m using Material Design In XAML Toolkit C# ,MessageBox in material design WPF C# , I need like this or better Design for MessageBox 👌 I’ve tried use DialogHost but this Error happens No loaded DialogHost instances. private async void MenuPopupButton_OnClick(object sender, RoutedEventArgs e) { var sampleMessageDialog = new SampleMessageDialog { Message = {Text = "Goodbye"} }; await DialogHost.Show(sampleMessageDialog, "RootDialog"); } No loaded DialogHost instances. 回答1: I have developed one

MessageBox in material design wpf c#

时间秒杀一切 提交于 2020-04-30 04:31:05
问题 I’m using Material Design In XAML Toolkit C# ,MessageBox in material design WPF C# , I need like this or better Design for MessageBox 👌 I’ve tried use DialogHost but this Error happens No loaded DialogHost instances. private async void MenuPopupButton_OnClick(object sender, RoutedEventArgs e) { var sampleMessageDialog = new SampleMessageDialog { Message = {Text = "Goodbye"} }; await DialogHost.Show(sampleMessageDialog, "RootDialog"); } No loaded DialogHost instances. 回答1: I have developed one

How to use a validation between two datepicker?

谁说我不能喝 提交于 2019-12-11 15:18:59
问题 Suppose I have two DatePicker , I want that the first DatePicker date must be less to the second DatePicker . The date of the second DatePicker must be greather then the first. If the first DatePicker have a date greather than the second, then a validation error should appear on the datepicker. These are my DatePickers : <DatePicker x:Name="StartPeriod" SelectedDate="{Binding PeriodStartDate}"> </DatePicker> <DatePicker x:Name="EndPeriod" SelectedDate="{Binding PeriodEndDate}"> </DatePicker>

How to override ListViewItem style?

我与影子孤独终老i 提交于 2019-12-11 07:33:49
问题 I'm trying to override the ListViewItem style using this code: <ListView.ItemContainerStyle> <Style TargetType="{x:Type ListViewItem}" BasedOn="{StaticResource MaterialDesignListViewItem}"> <EventSetter Event="PreviewMouseLeftButtonDown" Handler="ListViewItem_PreviewMouseLeftButtonDown" /> </Style> </ListView.ItemContainerStyle> unfortunately seems that MaterialDesignListViewItem isn't included in the MaterialDesignInXaml so I got the StaticResource underlined for not found. My goal is change