mirror of
https://github.com/ckaczor/FeedCenter.git
synced 2026-01-14 01:25:38 -05:00
- Modernize old async code - Update to .NET 10 - Adjust namespace - Bypass update check when debugging
55 lines
2.9 KiB
XML
55 lines
2.9 KiB
XML
<Window x:Class="FeedCenter.Options.CategoryWindow"
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:properties="clr-namespace:FeedCenter.Properties"
|
|
xmlns:feedCenter="clr-namespace:FeedCenter"
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
mc:Ignorable="d"
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
xmlns:controls="clr-namespace:ChrisKaczor.Wpf.Windows;assembly=ChrisKaczor.Wpf.Windows.ControlBox"
|
|
xmlns:mah="http://metro.mahapps.com/winfx/xaml/controls"
|
|
xmlns:options="clr-namespace:FeedCenter.Options"
|
|
xmlns:feeds="clr-namespace:FeedCenter.Feeds"
|
|
d:DataContext="{d:DesignInstance Type=feeds:Category}"
|
|
Title="CategoryWindow"
|
|
Width="300"
|
|
ResizeMode="NoResize"
|
|
SizeToContent="Height"
|
|
WindowStartupLocation="CenterOwner"
|
|
Icon="/FeedCenter;component/Resources/Application.ico"
|
|
FocusManager.FocusedElement="{Binding ElementName=NameTextBox}"
|
|
controls:ControlBox.HasMinimizeButton="False"
|
|
controls:ControlBox.HasMaximizeButton="False">
|
|
<Window.Resources>
|
|
<ResourceDictionary>
|
|
<ResourceDictionary.MergedDictionaries>
|
|
<ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Controls.xaml" />
|
|
<ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Fonts.xaml" />
|
|
<ResourceDictionary
|
|
Source="pack://application:,,,/MahApps.Metro;component/Styles/Controls.FlatButton.xaml" />
|
|
<ResourceDictionary
|
|
Source="pack://application:,,,/MahApps.Metro;component/Styles/Themes/light.cobalt.xaml" />
|
|
</ResourceDictionary.MergedDictionaries>
|
|
</ResourceDictionary>
|
|
</Window.Resources>
|
|
<StackPanel Margin="6"
|
|
options:Spacing.Vertical="5">
|
|
<TextBox Name="NameTextBox"
|
|
mah:TextBoxHelper.UseFloatingWatermark="True"
|
|
mah:TextBoxHelper.Watermark="{x:Static properties:Resources.categoryNameLabel}"
|
|
mah:TextBoxHelper.SelectAllOnFocus="True"
|
|
Text="{Binding Path=Name, UpdateSourceTrigger=Explicit, ValidatesOnExceptions=True}" />
|
|
<StackPanel
|
|
options:Spacing.Horizontal="5"
|
|
Orientation="Horizontal"
|
|
HorizontalAlignment="Right">
|
|
<Button Content="{x:Static properties:Resources.OkayButton}"
|
|
Width="75"
|
|
IsDefault="True"
|
|
Click="HandleOkayButtonClick" />
|
|
<Button Content="{x:Static properties:Resources.CancelButton}"
|
|
Width="75"
|
|
IsCancel="True" />
|
|
</StackPanel>
|
|
</StackPanel>
|
|
</Window> |