Skip to content

Commit 07d1b74

Browse files
Merge pull request #328 from microsoft/user/t-limay/StyleTransfer-cpp
clean up project structure
2 parents 7187482 + 267af8b commit 07d1b74

File tree

14 files changed

+1063
-1099
lines changed

14 files changed

+1063
-1099
lines changed

Samples/StyleTransfer/App.xaml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
<Application
2-
x:Class="StyleTransfer.App"
3-
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
4-
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
5-
xmlns:local="using:StyleTransfer">
6-
7-
<Application.Resources>
8-
<XamlControlsResources xmlns="using:Microsoft.UI.Xaml.Controls" />
9-
</Application.Resources>
10-
11-
</Application>
1+
<Application
2+
x:Class="StyleTransfer.App"
3+
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
4+
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
5+
xmlns:local="using:StyleTransfer">
6+
7+
<Application.Resources>
8+
<XamlControlsResources xmlns="using:Microsoft.UI.Xaml.Controls" />
9+
</Application.Resources>
10+
11+
</Application>
Lines changed: 31 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,31 @@
1-
using System;
2-
using System.Collections.Generic;
3-
using System.Linq;
4-
using System.Text;
5-
using System.Threading.Tasks;
6-
using Windows.UI.Xaml;
7-
using Windows.UI.Xaml.Data;
8-
9-
namespace StyleTransfer
10-
{
11-
public class BooleanToVisibilityConverter : IValueConverter
12-
{
13-
public BooleanToVisibilityConverter()
14-
{
15-
}
16-
17-
public object Convert(object value, Type targetType, object parameter, string language)
18-
{
19-
if (value is bool && (bool)value)
20-
{
21-
return Visibility.Visible;
22-
}
23-
return Visibility.Collapsed;
24-
}
25-
26-
public object ConvertBack(object value, Type targetType, object parameter, string language)
27-
{
28-
return (value is Visibility && (Visibility)value == Visibility.Visible);
29-
}
30-
}
31-
}
1+
using System;
2+
using System.Collections.Generic;
3+
using System.Linq;
4+
using System.Text;
5+
using System.Threading.Tasks;
6+
using Windows.UI.Xaml;
7+
using Windows.UI.Xaml.Data;
8+
9+
namespace StyleTransfer
10+
{
11+
public class BooleanToVisibilityConverter : IValueConverter
12+
{
13+
public BooleanToVisibilityConverter()
14+
{
15+
}
16+
17+
public object Convert(object value, Type targetType, object parameter, string language)
18+
{
19+
if (value is bool && (bool)value)
20+
{
21+
return Visibility.Visible;
22+
}
23+
return Visibility.Collapsed;
24+
}
25+
26+
public object ConvertBack(object value, Type targetType, object parameter, string language)
27+
{
28+
return (value is Visibility && (Visibility)value == Visibility.Visible);
29+
}
30+
}
31+
}

0 commit comments

Comments
 (0)