Add settings button
This commit is contained in:
@@ -15,7 +15,10 @@
|
|||||||
<x:Double x:Key="ButtonWidth">40</x:Double>
|
<x:Double x:Key="ButtonWidth">40</x:Double>
|
||||||
<x:Double x:Key="ButtonHeight">40</x:Double>
|
<x:Double x:Key="ButtonHeight">40</x:Double>
|
||||||
</UserControl.Resources>
|
</UserControl.Resources>
|
||||||
<ItemsControl ItemTemplateSelector="{Binding Converter={windows:DataTemplateConverter}}" ItemsSource="{Binding}">
|
<ItemsControl
|
||||||
|
Margin="6,0,6,0"
|
||||||
|
ItemTemplateSelector="{Binding Converter={windows:DataTemplateConverter}}"
|
||||||
|
ItemsSource="{Binding}">
|
||||||
<ItemsControl.ItemsPanel>
|
<ItemsControl.ItemsPanel>
|
||||||
<ItemsPanelTemplate>
|
<ItemsPanelTemplate>
|
||||||
<Grid>
|
<Grid>
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||||
xmlns:windows="using:Hyperbar.UI.Windows">
|
xmlns:windows="using:Hyperbar.UI.Windows">
|
||||||
<Grid Width="300" Background="red">
|
<Grid>
|
||||||
<ItemsControl ItemTemplateSelector="{Binding Converter={windows:DataTemplateConverter}}" ItemsSource="{Binding}">
|
<ItemsControl ItemTemplateSelector="{Binding Converter={windows:DataTemplateConverter}}" ItemsSource="{Binding}">
|
||||||
<ItemsControl.ItemsPanel>
|
<ItemsControl.ItemsPanel>
|
||||||
<ItemsPanelTemplate>
|
<ItemsPanelTemplate>
|
||||||
|
|||||||
@@ -3,5 +3,22 @@
|
|||||||
x:Class="Hyperbar.Windows.SettingsButtonView"
|
x:Class="Hyperbar.Windows.SettingsButtonView"
|
||||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
|
||||||
<Button Content="dfffffff" />
|
<UserControl.Resources>
|
||||||
|
<SolidColorBrush x:Key="ButtonBackground" Color="Transparent" />
|
||||||
|
<SolidColorBrush x:Key="ButtonBorderBrush" Color="Transparent" />
|
||||||
|
<SolidColorBrush x:Key="ButtonBorderBrushPointerOver" Color="Transparent" />
|
||||||
|
<SolidColorBrush x:Key="ButtonBorderBrushPressed" Color="Transparent" />
|
||||||
|
<SolidColorBrush x:Key="ButtonBackgroundDisabled" Color="Transparent" />
|
||||||
|
<SolidColorBrush x:Key="ButtonBorderBrushDisabled" Color="Transparent" />
|
||||||
|
<Thickness x:Key="ButtonPadding">0</Thickness>
|
||||||
|
<x:Double x:Key="ButtonWidth">40</x:Double>
|
||||||
|
<x:Double x:Key="ButtonHeight">40</x:Double>
|
||||||
|
</UserControl.Resources>
|
||||||
|
<Button
|
||||||
|
Width="{ThemeResource ButtonWidth}"
|
||||||
|
Height="{ThemeResource ButtonHeight}"
|
||||||
|
Padding="{ThemeResource ButtonPadding}"
|
||||||
|
Content=""
|
||||||
|
FontFamily="{ThemeResource SymbolThemeFontFamily}"
|
||||||
|
FontSize="16" />
|
||||||
</UserControl>
|
</UserControl>
|
||||||
|
|||||||
Reference in New Issue
Block a user