Hỏi đáp
Chia sẻ kiến thức, cùng nhau phát triển
Sao cái Button của mình nó không nhận Style của Material vậy mọi người.
Sao cái Button của mình nó không nhận Style của Material vậy mọi người.
<Window x:Class="TestUI.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:local="clr-namespace:TestUI"
xmlns:materialDesign="http://materialdesigninxaml.net/winfx/xaml/themes"
TextElement.Foreground="{DynamicResource MaterialDesignBody}"
TextElement.FontWeight="Regular"
TextElement.FontSize="13"
TextOptions.TextFormattingMode="Ideal"
TextOptions.TextRenderingMode="Auto"
Background="{DynamicResource MaterialDesignPaper}"
FontFamily="{DynamicResource MaterialDesignFont}"
mc:Ignorable="d"
Title="MainWindow" Height="550" Width="900" WindowStartupLocation="CenterScreen" KeyDown="Window_KeyDown">
<Grid>
<Button Content="My Button"/>
</Grid>
</Window>
12345678910111213141516171819202122
Để sử dụng tính năng này, Bạn cần đăng nhập bằng tài khoản Howkteam.
Đăng nhập
Để xem được nội dung và giúp Kteam duy trì hoạt động.
Bạn vui lòng tắt Adblock trên website howkteam.vn nhé!
Bạn thêm đoạn code bên dưới vào App.xaml nha.