Skip to content

Commit

Permalink
Remove all duplicate converters that have moved to UwCore
Browse files Browse the repository at this point in the history
  • Loading branch information
haefele committed Nov 3, 2016
1 parent 6f35b08 commit ac8b419
Show file tree
Hide file tree
Showing 11 changed files with 18 additions and 170 deletions.
5 changes: 0 additions & 5 deletions src/CTime2/CTime2.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -109,12 +109,7 @@
<Compile Include="Controls\SettingsItem.cs" />
<Compile Include="Controls\StampButton.cs" />
<Compile Include="Controls\UserImage.cs" />
<Compile Include="Converter\BooleanNegationConverter.cs" />
<Compile Include="Converter\BooleanToNullableBooleanConverter.cs" />
<Compile Include="Converter\BooleanToObjectConverter .cs" />
<Compile Include="Converter\ByteArrayToImageSourceConverter.cs" />
<Compile Include="Converter\FormatStringConverter.cs" />
<Compile Include="Converter\NullToVisibilityConverter.cs" />
<Compile Include="Converter\ThicknessToDoubleConverter.cs" />
<Compile Include="Converter\TimeStateToBrushConverter.cs" />
<Compile Include="CTimeStartupAction.cs" />
Expand Down
24 changes: 0 additions & 24 deletions src/CTime2/Converter/BooleanNegationConverter.cs

This file was deleted.

22 changes: 0 additions & 22 deletions src/CTime2/Converter/BooleanToNullableBooleanConverter.cs

This file was deleted.

33 changes: 0 additions & 33 deletions src/CTime2/Converter/BooleanToObjectConverter .cs

This file was deleted.

43 changes: 0 additions & 43 deletions src/CTime2/Converter/FormatStringConverter.cs

This file was deleted.

26 changes: 0 additions & 26 deletions src/CTime2/Converter/NullToVisibilityConverter.cs

This file was deleted.

7 changes: 4 additions & 3 deletions src/CTime2/Themes/generic.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:controls="using:CTime2.Controls"
xmlns:converter="using:CTime2.Converter">
xmlns:converter="using:CTime2.Converter"
xmlns:uwCoreConverter="using:UwCore.Converter">

<Style TargetType="controls:StampButton">
<Setter Property="Height" Value="40" />
Expand Down Expand Up @@ -67,7 +68,7 @@
<ControlTemplate TargetType="controls:SettingsGroup">
<Grid>
<Grid.Resources>
<converter:NullToVisibilityConverter x:Key="NullToVisibilityConverter" />
<uwCoreConverter:NullToVisibilityConverter x:Key="NullToVisibilityConverter" />
</Grid.Resources>
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
Expand Down Expand Up @@ -112,7 +113,7 @@
<ControlTemplate TargetType="controls:SettingsItem">
<Grid Background="{TemplateBinding Background}">
<Grid.Resources>
<converter:NullToVisibilityConverter x:Key="NullToVisibilityConverter" />
<uwCoreConverter:NullToVisibilityConverter x:Key="NullToVisibilityConverter" />
</Grid.Resources>
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
Expand Down
6 changes: 3 additions & 3 deletions src/CTime2/Views/AttendanceList/AttendanceListView.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="using:CTime2.Views.AttendanceList"
xmlns:converter="using:CTime2.Converter"
xmlns:controls="using:CTime2.Controls"
xmlns:windowsStateTriggers="using:WindowsStateTriggers"
xmlns:interactivity="using:Microsoft.Xaml.Interactivity"
xmlns:behaviors="using:UwCore.Behaviors"
xmlns:core="using:Microsoft.Xaml.Interactions.Core"
xmlns:data="using:CTime2.Core.Data"
xmlns:ctimeBehaviors="using:CTime2.Behaviors"
xmlns:uwCoreConverter="using:UwCore.Converter"

xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
Expand All @@ -22,11 +22,11 @@
Source="{x:Bind ViewModel.Users, Mode=OneWay}"
IsSourceGrouped="True"
ItemsPath="Users" />
<converter:BooleanToObjectConverter x:Key="BooleanToAttendingStringConverter"
<uwCoreConverter:BooleanToObjectConverter x:Key="BooleanToAttendingStringConverter"
x:Uid="BooleanToAttendingStringConverter"
TrueValue="~Anwesend"
FalseValue="~Abwesend" />
<converter:BooleanToObjectConverter x:Key="BooleanToAttendingBrushConverter"
<uwCoreConverter:BooleanToObjectConverter x:Key="BooleanToAttendingBrushConverter"
TrueValue="{StaticResource CTimeGreen}"
FalseValue="{StaticResource CTimeRed}" />
</Page.Resources>
Expand Down
4 changes: 2 additions & 2 deletions src/CTime2/Views/AttendanceList/AttendingUserDetailsView.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:controls="using:CTime2.Controls"
xmlns:converter="using:CTime2.Converter"
xmlns:uwCoreConverter="using:UwCore.Converter"

xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
Expand All @@ -12,7 +12,7 @@
MaxWidth="320"
MaxHeight="346">
<Page.Resources>
<converter:BooleanToObjectConverter x:Key="BooleanToAttendingBrushConverter"
<uwCoreConverter:BooleanToObjectConverter x:Key="BooleanToAttendingBrushConverter"
TrueValue="{StaticResource CTimeGreen}"
FalseValue="{StaticResource CTimeRed}" />
</Page.Resources>
Expand Down
12 changes: 6 additions & 6 deletions src/CTime2/Views/Statistics/StatisticsView.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,18 @@
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="using:CTime2.Views.Statistics"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:interactivity="using:Microsoft.Xaml.Interactivity"
xmlns:core="using:Microsoft.Xaml.Interactions.Core"
xmlns:uwCoreConverter="using:UwCore.Converter"
xmlns:converter="using:CTime2.Converter"
xmlns:uwp="using:FontAwesome.UWP"

xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d"
DataContextChanged="StatisticsView_OnDataContextChanged"
>

DataContextChanged="StatisticsView_OnDataContextChanged">
<Page.Resources>
<converter:NullToVisibilityConverter x:Key="NullToVisibilityConverter" />
<uwCoreConverter:NullToVisibilityConverter x:Key="NullToVisibilityConverter" />
</Page.Resources>

<Grid Background="{ThemeResource ApplicationPageBackgroundThemeBrush}">
Expand Down
6 changes: 3 additions & 3 deletions src/CTime2/Views/YourTimes/YourTimesView.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="using:CTime2.Views.YourTimes"
xmlns:converter="using:CTime2.Converter"
xmlns:interactivity="using:Microsoft.Xaml.Interactivity"
xmlns:core="using:Microsoft.Xaml.Interactions.Core"
xmlns:uwCoreConverter="using:UwCore.Converter"

xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
Expand All @@ -17,9 +17,9 @@
Source="{x:Bind ViewModel.Times, Mode=OneWay}"
IsSourceGrouped="True"
ItemsPath="Times" />
<converter:FormatStringConverter x:Key="DateTimeToDayNumberConverter" FormatString="ddd dd. MMMM" />
<uwCoreConverter:FormatStringConverter x:Key="DateTimeToDayNumberConverter" FormatString="ddd dd. MMMM" />

<converter:FormatStringConverter x:Key="DateTimeToStringConverter" FormatString="t" PlaceholderString="?" />
<uwCoreConverter:FormatStringConverter x:Key="DateTimeToStringConverter" FormatString="t" PlaceholderString="?" />
<Style x:Key="DefaultListViewHeaderItemStyle"
TargetType="ListViewHeaderItem">
<Setter Property="HorizontalContentAlignment" Value="Stretch" />
Expand Down

0 comments on commit ac8b419

Please sign in to comment.